AVR MICROCONTROLLER Timer tutorial and example

Working with  AVR  timer  in first time maybe make us confuse . So i write this avr timer example and tutorial  as an effort for to make my understanding about AVR time more strongth reside in my memory.
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) 

1 comment:

  1. The best free casinos in New Jersey - drmcd
    Best Free 수원 출장마사지 Casino 익산 출장샵 Sites · 1. Unibet Casino NJ · 2. Bovada NJ · 동두천 출장마사지 3. Caesars 김포 출장안마 Casino PA · 4. BetMGM PA · 5. DraftKings NJ · 6. Unibet 의정부 출장안마

    ReplyDelete