XC886/888CLM
Capture/Compare Unit 6
User’s Manual
14-4
V1.3, 2010-02
CCU6, V 1.0
14.1.1.1
Timer Configuration
Register T12 represents the counting value of timer T12. It can be written only while timer
T12 is stopped. Write actions while T12 is running are not taken into account. Register
T12 can always be read by software.
In edge-aligned mode, T12 only counts up, whereas in center-aligned mode, T12 can
count up and down.
Timer T12 can be started and stopped by using bit T12R by hardware or software.
•
Bit field T12RSEL defines the event on pin T12HR: rising edge, falling edge, or either
of these two edges, that can set the run bit T12R by hardware.
•
If bit field T12RSEL = 00
B
, the external setting of T12R is disabled and the timer run
bit can only be controlled by software. Bit T12R is set/reset by software by setting bit
T12RS or T12RR.
•
In single-shot mode, bit T12R is reset by hardware according to the function defined
by bit T12SSC. If bit T12SSC = 1, the bit T12R is reset by hardware when:
– T12 reaches its period value in edge-aligned mode
– T12 reaches the value 1 while counting down in center-aligned mode
Register T12 can be reset to zero by setting bit T12RES. Setting of T12RES has no
impact on run bit T12R.
14.1.1.2
Counting Rules
With reference to the T12 input clock, the counting sequence is defined by the following
counting rules:
T12 in edge-aligned mode (Bit CTM = 0)
The count direction is set to counting up (CDIR = 0). The counter is reset to zero if a
period-match is detected, and the T12 shadow register transfer takes place if STE12 = 1.
T12 in center-aligned mode (Bit CTM = 1)
•
The count direction is set to counting up (CDIR = 0) if a one-match is detected while
counting down.
•
The count direction is set to counting down (CDIR = 1) if a period-match is detected
while counting up.
•
If STE12 = 1, shadow transfer takes place when:
– a period-match is detected while counting up
– a one-match is detected while counting down
The timer T12 prescaler is reset when T12 is not running to ensure reproducible timings
and delays.
*
Содержание 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...