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

no-image

SAF-C164SM

Manufacturer Part Number
SAF-C164SM
Description
16-Bit CMOS Microcontroller
Manufacturer
Infineon Technologies
Datasheet
Compare Mode 3
Compare mode 3 is selected for register CCx by setting bit field CCMODx of the
corresponding mode control register to ‘111
event will be generated per timer period.
When the first match within the timer period is detected, the interrupt request flag CCxIR
is set to ‘1’ (where connected) and the output pin CCxIO (alternate port function) will be
set to ‘1’. The pin will be reset to ‘0’, when the allocated timer overflows.
If a match was found for register CCx in this mode, all further compare events during the
current timer period are disabled for CCx until the corresponding timer overflows. If, after
a match was detected, the compare register is reloaded with a new value, this value will
not become effective until the next timer period.
To use the respective port pin as compare signal output pin CCxIO for compare register
CCx in compare mode 3, this port pin must be configured as output: the corresponding
direction control bit must be set to ‘1’. With this configuration, the initial state of the output
signal can be programmed or its state can be modified at any time by writing to the port
output latch.
In compare mode 3, the port latch is set upon a compare event and cleared upon a timer
overflow (see
However, when compare value and reload value for a channel are equal, the respective
interrupt requests will be generated. Only the output signal is not changed in this case
(set and clear would coincide).
Note: If the port output latch is written to by software at the same time it would be altered
User’s Manual
by a compare event, the software write will have priority. In such a case, the
hardware-triggered change will not become effective.
Only capture/compare channels 16 … 19 and 24 … 31 are connected to pins,
capture/compare channels 16 … 19 and 24 … 27 are connected to interrupt
nodes.
Figure
16-9).
16-18
B
’. In compare mode 3, only one compare
Capture/Compare Unit CAPCOM2
C164CM/C164SM
Derivatives
V1.0, 2002-02

Related parts for SAF-C164SM