![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOefKjbXn3ViR6IOPkmWTCdUn95QKO4zw8WaDaiVePvWlDKG-GYpckfyCANQif-BbONWa5-WQgZsNHdhhNwWbyIDOF1e4hO3E_8W2SXdUuv4tDc2AM5Ij54WllDvSwgpDCT50PVJmU_akX/s320-rw/timer.jpg)
Timers
- Timers are there to count the internal clock Pulses of a Micro controller.
- Counters are there to count the external pulses.
- Reset
- Initial State
- Running
- Blocked
- Finished
- Overflow
- Event driven(initiate an event after a delay)
- Scheduling of Tasks in a System (by activating and running a timer)
- Watchdog Timer (Resets the system after a predefine time)
- Real Time clock (A clock that never stops and keeps on running and never be reset, Eg. Heart Beat)
- Time slicing of various tasks.
Hardware Timer
- Atleast one hardware should be available in a Microcontroller.
- The figure above shows the Hardware Timer has the control bits
- Timer Enable
- Timer Start
- Timer Stop
- Pre scaling bits
- Up count enable
- Down count disable
- Load Enable
- Timer Interrupt Enable
Comments
Post a Comment