English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Microcontrollers can perform many functions at a hardware level. A counter or timer function is just one of these. Many microcontrollers support one or more built in counter/timer functions. With these functions, a configuration register is usally written to set up the type and operation of the counter/timer. Another register may be loaded with the preload value or the count to value. Once enabled, the counter will run and when it hits the counted value or decrements to 0, it will cause an interrupt to occur. An interrupt service routine written by the firmware programmer will then take some action as a result, such as toggling an external pin (to blink an LED for example) and then restart the counter so that it begins the count again.

2006-10-07 17:04:07 · answer #1 · answered by SkyWayGuy 3 · 0 0

is it a timer or a tomer. here is my exp for a timer:

timer is a increment \ decrement counter used for timing and measurments. the increment or decrement unit is one clock tick duration of the system ( here the timer )

A Microcontroller Based Countdown Timer would be something similar. here the micro controller tick ( timing unit ) will be used . Usually Microcontroller can do a lot more than just increment or decrement a clock. It can be used to multiplex various activities based on the system ability and efficiancy.

Counters and Timers are present in almost all appliances. eg: off timer in TV sets, Alarm watch ( digital ) etc.

2006-10-08 05:56:50 · answer #2 · answered by kesav k 1 · 0 0

Check the below link for a simple PIC based count down timer.

2006-10-07 21:51:09 · answer #3 · answered by Chaudhry 2 · 0 0

fedest.com, questions and answers