Sunday, March 27, 2011

Timer is a clock that controls the sequence of an event while counting in fixed intervals of time. A Timer in a Microcontroller is used for producing precise time delay. Secondly, it can be used to repeat or initiate an action after/at a known period of time which is a forehead application of the same. An example could be setting up an alarm which triggers at a point of time or after a period of time.

Timers in a controller: Why to use them

Most of the microcontrollers have inbuilt Timers. Timers in a controller not only generate time delays but they can also be used as counters. They are used to count an action or event. The value of counter increases by one, every time its corresponding action or event occurs. Timers in a controller are inbuilt chips that are controlled by special function registers (SFRs) assigned for Timer operations. These SFRs are used to configure Timers in different modes of operations.


8051 Timer Issues
While using 8051 Timers certain factors need to be considered, like whether the Timer is to be used for time keeping or for counting; whether the source for time generation is external clock or the controller itself; how many bits of Timer register are to be used or left unused.

No comments:

Post a Comment