help me tutorial overlap interrupt

Robin2:
I don't know if the problem is that you don't understand what I write because English is not your first language.

If you DO understand what I write then you seem to be deliberately ignoring what I (and others) say so that it seems I am just wasting my time.

I will not help any further until you provide a good description of your project so that I can understand the context of your questions. I have already asked for that in Replies #2 and #12. And if it is a secret project I have no interest in helping.

...R

i'm sorry for my bad english language, and not have secret project,
i'm not expert and not have any secret project,
you understand me? , i want learn how to interrupt? ,
i sorry for your wasting time,

If you want to learn how to use interrupts, start simple. And don't try to use them in a way that they are not intended to be used.

While an interrupt is being serviced, other interrupts are ignored. That's why you need to keep them short (to give other interrupts and the loop() also a chance). If you don't keep it short, the led thst is controlled in loop will mo longer flash.

There are some circumstances where you might want a multi level interrupt structure. It can be done if needed; this is the case if an interrupt is so important that the processor has to drop everything it's doing. I think thst thst is what you mean by overlap. In that case however the interrupt that is being serviced is no longer active and will only resume once the more important interrupt is fully being serviced. In your case that means that only one led will flash.

Thai100:
i want learn how to interrupt? ,

So please tell us what you have learned from the many replies you have already received. At the moment I am not even sure if you have read them or spent any time thinking about them.

Start learning with a simple program that uses one interrupt that is triggered by a button switch and which prints on the Arduino Serial monitor the number of millisecs between each press of the button.

...R

Robin2:
Start learning with a simple program that uses one interrupt that is triggered by a button switch and which prints on the Arduino Serial monitor the number of millisecs between each press of the button.

Hmmm, although you don't say it, the OP might understand it as using Serial.print in an ISR. Maybe not such a good idea :wink:

sterretje:
Hmmm, although you don't say it, the OP might understand it as using Serial.print in an ISR. Maybe not such a good idea :wink:

Don't worry about that at this stage. At least then we would be making some progress and would have something more tangible from which to advise him.

...R