XC886/888CLM
Capture/Compare Unit 6
User’s Manual
14-22
V1.3, 2010-02
CCU6, V 1.0
This correct Hall event can be used as a transfer request event for register MCMOUTS.
The transfer from MCMOUTS to MCMOUT transfers the new CURH-pattern as well as
the next EXPH-pattern. In case the sampled Hall inputs were neither the current nor the
expected Hall pattern, the bit WHE (wrong Hall event) is set, which can also cause an
interrupt and set the IDLE mode to clear MCMP (modulation outputs are inactive). To
restart from IDLE, the transfer request of MCMOUTS must be initiated by software (bit
STRHP and bit fields SWSEL/SWSYN).
14.1.6.2
Brushless-DC Control
For
Brushless-DC
motors, there is a special mode (MSEL6x = 1000
B
) which is triggered
by a change of the Hall inputs (CCPOSx). In this case, T12’s channel 0 acts in capture
function, channel 1 and 2 act in compare function (without output modulation), and the
multi-channel-block is used to trigger the output switching together with a possible
modulation of T13.
After the detection of a valid Hall edge, the T12 count value is captured to channel 0
(representing the actual motor speed) and the T12 is reset. When the timer reaches the
compare value in channel 1, the next multi-channel state is switched by triggering the
shadow transfer of bit field MCMP. This trigger event can be combined with several
conditions which are necessary to implement noise filtering (correct Hall event) and to
synchronize the next multi-channel state to the modulation sources (avoiding spikes on
the output lines). This compare function of channel 1 can be used as a phase delay for
the position input to the output switching which is necessary if a sensorless back-EMF
technique is used instead of Hall sensors. The compare value in channel 2 can be used
as a time-out trigger (interrupt) indicating that the motor’s destination speed is far below
the desired value (which can be caused by an abnormal load change). In this mode, the
modulation of T12 must be disabled (T12MODENx = 0).
Figure 14-16 Timer T12 Brushless-DC Mode (all MSEL6x = 1000
B
)
capture
event resets
T12
Ch0
gets
captured
value for
act. speed
Ch1
compare
for phase delay
Ch2
compare
for timeout
CC6x
act. speed
CC60
phase delay
CC61
timeout
CC62
COUT6y
1
1
0
0
0
1
CCPOS2
CCPOS0
1
1
1
0
0
0
CCPOS1
0
0
1
1
1
0
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...