English
Language : 

XC164-16 Datasheet, PDF (191/417 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC164-16 Derivatives
Peripheral Units (Vol. 2 of 2)
Capture/Compare Unit 6 (CAPCOM6)
18.4
Multi-Channel Mode
The Multi-Channel mode offers the possibility to modulate all six T12-related output
signals with one instruction. The bits in bitfield MCMOUT.MCMP are used to specify the
outputs which may become active. If Multi-Channel mode is enabled (bit
MODCTR.MCMEN = 1), only those outputs may become active, which have a 1 at the
corresponding bit position in bitfield MCMP.
This bitfield has its own shadow bitfield, MCMPS, which can be written by software. The
transfer of the new value in MCMPS to the bitfield MCMP can be triggered by, and
synchronized to, T12 or T13 events. This structure permits the software to write the new
value, which is then taken into account by the hardware at a well-defined moment and
synchronized to a PWM signal. This avoids unintended pulses due to unsynchronized
modulation sources (T12, T13, software).
SW Update, STRMCM
T12_ZM
T13_ZM
0
MUX
Corr. Hall Evt. CM_CHE
T13_PM
T12_OM
CM_61_UP
T12_PM
SWSEL
SWSYN
Shadow Register
MCMOUTS.MCMPS
Shadow Transfer
Switching
Synchro-
MCM_ST
nization
Register
MCMOUTS.MCMP
State Bit
Outputs
Modulation Control
Output Pins CC6x/COUT6x
MCB05535
Figure 18-31 Multi-Channel Mode Block Diagram
Figure 18-31 shows the modulation selection for the Multi-Channel mode. The event
that triggers the update of bitfield MCMP is chosen by SWSEL. In order to synchronize
the update of MCMP to a PWM generated by T12 or T13, bitfield SWSYN allows the
selection of the synchronization event, which leads to the transfer from MCMPS to
MCMP. Due to this structure, an update takes place with a new PWM period. A reminder
flag, bit R, is set when the selected switching event occurs, and is reset when the transfer
takes place. This flag can be monitored by software to check for the status of this logic.
User’s Manual
CAPCOM6_X, V2.0
18-47
V2.1, 2004-03