English
Language : 

XC164-16 Datasheet, PDF (197/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.5.3 Brushless DC-Motor Control with Timer T12 Block
The CAPCOM6 provides a mode for the Timer T12 Block especially targeted for
convenient control of Brushless DC-Motors. This mode is selected by setting all MSELx
bitfields of the three T12 Channels to 1000B.
In this mode, illustrated in Figure 18-34, channel 0 is placed in capture mode, while
channels 1 and 2 are in compare mode.
f
T12
Counter Register Reset
T12
CM_CHE
CM_CHE
Comp.
=?
Comp.
=?
Capture Register
CC60R
Compare Register
CC61R
Compare Register
CC62R
Compare Shadow
Register CC61SR
Compare Shadow
Register CC62SR
CM_61
CM_62
CM_CHE
MCA05538
Figure 18-34 T12 Block in Hall Sensor Mode
The signal to transfer the new compare values from the shadow registers (CC6xSR) into
the actual compare registers (CC6xR) is now taken from the Correct Hall Event
Compare, CM_CHE. In addition, this signal triggers a capture of the current T12 contents
into register CC60R, and then forces a reset of T12 to 0000H. The same signal is also
used to perform the shadow transfer of the new T12 period value.
Note: In this mode, the shadow transfer signal T12_ST is not generated. Shadow bits,
such as the PSLy bits, will not be transferred to their main registers. To program
the main registers, SW needs to write to these registers while Timer T12 is
stopped. In this case, a SW write actualizes both registers.
User’s Manual
CAPCOM6_X, V2.0
18-53
V2.1, 2004-03