XC886/888CLM
Timers
User’s Manual
13-19
V1.3, 2010-02
Timers, V 1.0
Figure 13-7
Capture Mode
13.2.4
Count Clock
The count clock for the auto-reload mode is chosen by the bit C/T2 in register T2CON.
If C/T2 = 0, a count clock of PCLK/12 (if prescaler is disabled) is used for the count
operation.
If C/T2 = 1, Timer 2 behaves as a counter that counts 1-to-0 transitions of input pin T2.
The counter samples pin T2 over 2 PCLK cycles. If a 1 was detected during the first clock
and a 0 was detected in the following clock, then the counter increments by one.
Therefore, the input levels should be stable for at least 1 clock.
If bit T2RHEN is set, Timer 2 can be started by the falling edge/rising edge on pin T2EX,
which is defined by bit T2REGS.
Note: The C501 compatible feature requires a count resolution of at least 24 clocks.
TF 2
EXF2
THL2
RC2
T2EX
OR
EXEN2
Overflow
Timer 2
Interrupt
TR2
f
PCLK
PREN
T2PRE
/12
0
1
T2
C/T2=0
C/T2=1
*
Содержание 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...