XC886/888CLM
Capture/Compare Unit 6
User’s Manual
14-10
V1.3, 2010-02
CCU6, V 1.0
CC6xSR registers. In order to work in capture mode, the capture pins must be configured
as inputs.
There are several ways to store the captured values in the registers. For example, in
double register capture mode, the timer value is stored in the channel shadow register
CC6xSR. The value previously stored in this register is simultaneously copied to the
channel register CC6xR. The software can then check the newly captured value while
still preserving the possibility of reading the value captured earlier.
Note: In capture mode, a shadow transfer can be requested according to the shadow
transfer rules, except for the capture/compare registers that are left unchanged.
14.1.1.8
Single-Shot Mode
The single-shot mode of timer T12 is selected when bit T12SSC is set to 1. In single-shot
mode, the timer T12 stops automatically at the end of its counting period.
shows the functionality at the end of the timer period in edge-aligned and center-aligned
modes. If the end of period event is detected while bit T12SSC is set, the bit T12R and
all CC6xST bits are reset.
Figure 14-7
End of Single-Shot Mode of T12
14.1.1.9
Hysteresis-Like Control Mode
The hysteresis-like control mode (MSEL6x = 1001
B
) offers the possibility of switching off
the PWM output, if the input CCPOSx becomes 0, by resetting bit CC6xST. This can be
used as a simple motor control feature by using a comparator to indicate, for example,
over-current. While CCPOSx = 0, the PWM outputs of the corresponding channel are
driving their passive levels. The setting of bit CC6xST is only possible while
CCPOSx = 1.
shows an example of hysteresis-like control mode.
T12P
T12P-1
0
T12P-2
T12
T12R
CC6xST
T12
1
2
0
T12R
if T12SSC = '1'
CC6xST
edge-aligned mode
center-aligned mode
period-match
while counting up
one-match while
counting down
if T12SSC = '1'
CCU6_T12_singleshot
*
Содержание 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...