user85588: I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.

user7508: Yes, we can.
(stackexchange wants the body of the answer to be at least 30 characters, so I have to add some filler. Truth is, for answering the question as asked, there is nothing more to say.)

85588: <p>I tried to do a simple program using the ATmega16 microcontroller, the program is to toggle two LEDs the first one by using timer0 interrupt and the other using timer2 interrupt.</p>
 7508: <p>Yes, we can.</p>
<p>(stackexchange wants the body of the answer to be at least 30 characters, so I have to add some filler. Truth is, for answering the question <em>as asked</em>, there is nothing more to say.)</p>
