Pages

Micro Search Engine

Custom Search
Welcome To Microcontroller And Interfacing Programming

My Map

My Translator

Sunday, 4 January 2009

Timer/Counter Description

Before using Timer/Counter, we need to pay attention to configuration at bit microcontroller which will be applies, especially in this writing is AVR ATmega8535. Mistake of configuration can cause timer and counter cannot be implemented.


In AVR ATMEGA8535 there is 3 types Timer/Counter.

1. Timer/Counter 0.

2. Timer/Counter 1.

3. Timer/Counter 2.


Setting register haves no we to do when program writing. We earn direct to do setting when doing it with wizard new project. So, for explanation of more detail about register Timer/Counter there is in Datasheet AVR ATmega8535.


Timer/Counter 0 is 8 bit Timer/Counter having feature 8 bit Timer/Counter 1 canal. This Timer/Counter has feature Auto reload, namely timer would zero returning when match compare. Besides, this timer yields modulation PWM with glitch-free, Frequency generator, prescalar 10 bits for timer and awakens interrupt when timer overflow and match compare.


At Timer/Counter 1 is 16 bits Timer/Counter having 2 compare unit, 2 comparator register and has 1 input capture unit. At this timer also has auto system of reload at the time of match compare. Besides this timer also has feature Frequency generator and produce modulation PWM can with glitch-free and alterable period and has 4 fruit of source of interrupt.


At Timer/Counter 2 is 8 bit Timer/Counter with 1 canal and has auto feature of reload. Basically this timer has many equality with Timer/Counter 0.

My Ranks