English
Language : 

EZ-USB Datasheet, PDF (305/334 Pages) Cypress Semiconductor – The EZ-USB USB Integrated Circuit
C.2.8 Timer 2
Timer 2 runs only in 16-bit mode and offers several capabilities not available with Timers 0
and 1. The modes available with Timer 2 are:
• 16-bit timer/counter
• 16-bit timer with capture
• 16-bit auto-reload timer/counter
• Baud rate generator
The SFRs associated with Timer 2 are:
• T2CON - SFR C8h (Table C-6.)
• RCAP2L - SFR CAh - Used to capture the TL2 value when Timer 2 is configured for
capture mode, or as the LSB of the 16-bit reload value when Timer 2 is configured for
auto-reload mode.
• RCAP2H - SFR CBh - Used to capture the TH2 value when Timer 2 is configured for
capture mode, or as the MSB of the 16-bit reload value when Timer 2 is configured for
auto-reload mode.
• TL2 - SFR CCh - Lower 8 bits of the 16-bit count.
• TH2 - SFR CDh - Upper 8 bits of the 16-bit count.
C.2.8.1 Timer 2 Mode Control
Table C-5. summarizes how the SFR bits determine the Timer 2 mode.
Table C-5. Timer 2 Mode Control Summary
RCLK TCLK CP/RL2 TR2
Mode
0
0
1
1 16-bit timer/counter with capture
0
0
0
1 16-bit timer/counter with auto-reload
1
X
X
1 Baud rate generator
X
1
X
1 Baud rate generator
X
X
X
0 Off
X = Don’t care.
EZ-USB TRM v1.9
Appendix C: 8051 Hardware Description
C-9