First page Back Continue Last page Overview Graphics
November 4, 2003 Lecture
Standard Timer Module (TIM) continued.
- 16-bit free-running up-counter ($0000 to $FFFF)
- Input capture
- Output compare
- Pulse Accumulator
Internal Resource Mapping
- Miscellaneous (includes Flash EEPROM)
In this lecture, we review the concepts and use of the M68HC12B Standard Timer Module (TIM). The primary references for this material are the M68HC12B Family Data Sheet and sections 7.5 through 7.8 (pp. 244-278) of the textbook by Pack and Barrett.
The heart of the timer module is the 16-bit free-running counter. The input and output capture functions capture the value of the couter at the occurrence of an input or output event. Events to be captured are specified using control registers.
After discussing the timer module, we'll go on to discuss mapping of internal (on-chip) resources. Addresses of RAM, EEPROM, and the register block can be changed from the defaults by writing to the appropriate initialization registers.