ST10F269Z2Qx
9 - CAPTURE/COMPARE (CAPCOM) UNITS
The ST10F269Z2Qx has two 16 channels
CAPCOM units as described in Figure 12. These
support generation and control of timing
sequences on up to 32 channels with a maximum
resolution of 200ns at 40MHz CPU clock. The
CAPCOM units are typically used to handle high
speed I/O tasks such as pulse and waveform
generation, pulse width modulation (PMW), Digital
to Analog (D/A) conversion, software timing, or
time recording relative to external events.
Four 16-bit timers (T0/T1, T7/T8) with reload
registers provide two independent time bases for
the capture/compare register array (See Figures
13 and 14).
The input clock for the timers is programmable to
several prescaled values of the internal system
clock, or may be derived from an overflow/
underflow of timer T6 in module GPT2. This
Figure 12 : CAPCOM Unit Block Diagram
provides a wide range of variation for the timer
period and resolution and allows precise
adjustments to application specific requirements.
In addition, external count inputs for CAPCOM
timers T0 and T7 allow event scheduling for the
capture/compare registers relative to external
events.
Each of the two capture/compare register arrays
contain 16 dual purpose capture/compare
registers, each of which may be individually
allocated to either CAPCOM timer T0 or T1 (T7 or
T8, respectively), and programmed for capture or
compare functions. Each of the 32 registers has
one associated port pin which serves as an input
pin for triggering the capture function, or as an
output pin to indicate the occurrence of a compare
event. Figure 12 shows the basic structure of the
two CAPCOM units.
Reload Register TxREL
x = 0, 7
CPU
Clock
2n n = 3...10
TxIN Pin
GPT2 Timer T6
Over / Underflow
Pin
16
Capture inputs
Compare outputs
CPU
Clock
Pin
2n n = 3...10
GPT2 Timer T6
Over / Underflow
Tx
Input
Control
Mode
Control
(Capture
or
Compare)
Ty
Input
Control
CAPCOM Timer Tx
Interrupt
Request
Sixteen 16-bit
(Capture/Compare)
Registers
16
Capture / Compare*
Interrupt Requests
CAPCOM Timer Ty
Interrupt
Request
Reload Register TyREL
* The CAPCOM2 unit provides 16 capture inputs, but only 12 compare outputs. CC24I to CC27I are inputs only.
48/161
y = 1, 8