MC9S12XE-Family Reference Manual , Rev. 1.19
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.
A full access for the counter registers or the input capture/output compare registers should take place in
one clock cycle. Accessing high byte and low byte separately for all of these registers may not yield the
same result as accessing them in one word.
22.1.1
Features
The TIM16B8CV2 includes these distinctive features:
Table 22-1. Revision History
Revision
Number
Revision Date
Sections
Affected
Description of Changes
V02.00
15 Nov 2005
- Moved OCPD from offset $2F to $2C.
- Updated OC7 diagram, memory map, and regsiter description location for
OCPD
V02.01
03 Aug 2006
- Replaced TPORTE with OCPD in page 8, and added descriptionof OCPD
V02.02
03 Apr 2007
- Removed redundant memory map table
V02.03
14 Sep 2007
- Replaced typo OPCD with OCPD
V02.04
1 Jul 2008
- Revised flag clearing procedure, whereby TEN bit must be set when clearing
flags.
Because
of
an
order
from
the
United
States
International
Trade
Commission,
BGA-packaged
product
lines
and
part
numbers
indicated
here
currently
are
not
available
from
Freescale
for
import
or
sale
in
the
United
States
prior
to
September
2010:
S12XE
products
in
208
MAPBGA
packages