English
Language : 

EZ-USB Datasheet, PDF (307/334 Pages) Cypress Semiconductor – The EZ-USB USB Integrated Circuit
Bit
T2CON.0
Table C-6. T2CON Register - SFR C8h
Function
CP/RL2 - Capture/reload flag. When CP/RL2 = 1, Timer 2
captures occur on high-to-low transitions of the T2EX pin, if
EXEN2 = 1. When CP/RL2 = 0, auto-reloads occur when
Timer 2 overflows or when high-to-low transitions occur on
the T2EX pin, if EXEN2 = 1. If either RCLK or TCLK is set
to 1, CP/RL2 will not function and Timer 2 will operate in
auto-reload mode following each overflow.
C.2.8.3 6-Bit Timer/Counter Mode with Capture
The Timer 2 capture mode (Figure C-4.) is the same as the 16-bit timer/counter mode, with the
addition of the capture registers and control signals.
The CP/RL2 bit in the T2CON SFR enables the capture feature. When CP/RL2 = 1, a high-to-
low transition on the T2EX pin when EXEN2 = 1 causes the Timer 2 value to be loaded into
the capture registers RCAP2L and RCAP2H.
CLK24
Divide by 12
Divide by 4
T2M
0
1
0
1
C/ T2
CLK 0
TL2
78
15
TH2
T2 pin
TR2
EXEN2
T2EX pin
CAPTURE
RCAP2L
RCAP2H
0
78
15
TF2
EXF2
INT
Figure C-4. Timer 2 - Timer/Counter with Capture
EZ-USB TRM v1.9
Appendix C: 8051 Hardware Description
C - 11