SAF-C164SM Infineon Technologies, SAF-C164SM Datasheet - Page 268

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
C164CM/C164SM
Derivatives
Capture/Compare Unit CAPCOM2
The CAPCOM2 unit is typically used to handle high speed IO tasks such as pulse and
waveform generation, pulse width modulation, or recording of the time at which specific
events occur. It also allows the implementation of up to 16 software timers. The
maximum resolution of the CAPCOM2 unit is 8 CPU clock cycles (= 16 TCL).
The CAPCOM2 unit consists of a bank of 16 dual-purpose 16-bit capture/compare
registers (CC16 through CC31) and two 16-bit timers (T7/T8). Each has its own reload
register (TxREL).
The input clock for the CAPCOM2 timers is programmable to several prescaled values
of the CPU clock, or it can be derived from an overflow/underflow of timer T3 in block
GPT1. T7 may also operate in counter mode (from an external input) where it can be
clocked by external events.
Each capture/compare register may be programmed individually for the capture or
compare function, and each register may be allocated to either timer. Eight capture/
compare registers have an associated port pin which serves as an input pin for the
capture function or as an output pin for the compare function. The capture function
causes the current timer contents to be latched into the respective capture/compare
register triggered by an event (transition) on its associated port pin. The compare
function may cause an output signal transition on that port pin whose associated
capture/compare register matches the current timer contents. Specific interrupt requests
are generated upon each capture/compare event or upon timer overflow.
Figure 16-2
shows the basic structure of the CAPCOM2 unit.
User’s Manual
16-2
V1.0, 2002-02

Related parts for SAF-C164SM