ST10F269-T3
9 - CAPTURE/COMPARE (CAPCOM) UNITS
The ST10F269-T3 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
250ns at 32MHz 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
Reload Register TxREL
x = 0, 7
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.
CPU
Clock
2
n
n = 3...10
Tx
Input
Control
Interrupt
Request
CAPCOM Timer Tx
TxIN
Pin
GPT2 Timer T6
Over / Underflow
Pin
Mode
Control
(Capture
or
Compare)
16
Capture inputs
Compare outputs
Sixteen 16-bit
(Capture/Compare)
Registers
16
Capture / Compare*
Interrupt Requests
Pin
CPU
Clock
2
n
n = 3...10
Ty
Input
Control
GPT2 Timer T6
Over / Underflow
Interrupt
Request
CAPCOM Timer Ty
Reload Register TyREL
y = 1, 8
* The CAPCOM2 unit provides 16 capture inputs, but only 12 compare outputs. CC24I to CC27I are inputs only.
48/160