Datasheet

MC9S12XE-Family Reference Manual Rev. 1.25
Freescale Semiconductor 787
Chapter 22
Timer Module (TIM16B8CV2) Block Description
22.1 Introduction
The basic timer consists of a 16-bit, software-programmable counter driven by a enhanced programmable
prescaler.
This timer can be used for many purposes, including input waveform measurements while simultaneously
generating an output waveform. Pulse widths can vary from microseconds to many seconds.
This timer contains 8 complete input capture/output compare channels and one pulse accumulator. The
input capture function is used to detect a selected transition edge and record the time. The output compare
function is used for generating output signals or for timer software delays. The 16-bit pulse accumulator
is used to operate as a simple event counter or a gated time accumulator. The pulse accumulator shares
timer channel 7 when in event mode.
Table 22-1. Revision History
Revision
Number
Revision Date
Sections
Affected
Description of Changes
V02.05 9 Jul 2009 22.3.2.12/22-
803
22.3.2.13/22-
803
22.3.2.15/22-
805
22.3.2.16/22-
806
22.3.2.19/22-
808
22.4.2/22-811
22.4.3/22-811
- Revised flag clearing procedure, whereby TEN or PAEN bit must be set
when clearing flags.
- Add fomula to describe prescaler
V02.06 26 Aug 2009 22.1.2/22-788
22.3.2.15/22-
805
22.3.2.2/22-794
22.3.2.3/22-795
22.3.2.4/22-796
22.4.3/22-811
- Correct typo: TSCR ->TSCR1
- Correct reference: Figure 1-25 -> Figure 1-31
- Add description, “a counter overflow when TTOV[7] is set”, to be the
condition of channel 7 override event.
- Phrase the description of OC7M to make it more explicit
V02.07 04 May 2010 22.3.2.8/22-799
22.3.2.11/22-
802
22.4.3/22-811
- Add Table 22-10
- in TCRE bit description part,add Note
- Add Figure 22-31