I'm using ATmega32. This two timers looks very similar. What is a difference between them? When should I use Timer0, and when Timer2?
Electronic – the difference between Timer0 and Timer2 in AVR
atmegaavrtimer
Related Topic
- Electronic – Using both PWM and Timer2 interrupt in PIC18F25k50
- AVR TIMER0 treating with prescaler and without to blink a led
- Electronic – Is the datasheet of the AVR ATmega32 wrong
- Timer0 and Timer2 configuration on atmega1280
- Electrical – How to use two timers for one interrupt vector on avr
- Electronic – Generating 1 second with avr and timer 0 for Atmega32A
Best Answer
Timer2 is async timer. It means it can count when sleeping. But it's tricky to setup it when external clock is required. When external clock source is to be used a few pulses to setup it correctly is needed. I.e. it limits timer2 counter to be used as random pulse counter.