AVR microcontroler has three timer :
a. Timer 0
b. Timer 1
and
c. Timer 2
These AVR timer has at least four operation mode :
1. Counter mode
2. Timer mode
3. input capture mode
4. PWM mode
To operate a timer we must deal with several register that govern these timer, below is register list that i pretend:
- Register TCNT = is counter register
- Register TCCR =register for operation mode ofsi Timer/Counter
- Register TIMSK =register to chose timer
- Register TIFR
- Register OC (output compare)