interrupt priority ?

so it's really simple , i want to use two timers that trigger two interrupts. each timer triggers an interrupt but the second interrupt has priority on the first like it stops the first interrupt then it continues and so on , is that possible

AFAIK one interrupt will not affect another that is already in progress because interrupts are disabled during an ISR. If another interrupt happens while the ISR is in progress it will be executed when the running ISR completes.

You need to study the Atmel datasheet for the MCU you are using.

…R

ok , thank you sir

Yes, it's possible. If you enable interrupts within an ISR another interrupt can occur. Usually you don't want to do it that way though.

amine2: so it's really simple , i want to use two timers that trigger two interrupts. each timer triggers an interrupt but the second interrupt has priority on the first like it stops the first interrupt then it continues and so on , is that possible

Why do you want to?