English
Language : 

DS80C320-MCG Datasheet, PDF (47/175 Pages) Dallas Semiconductor – High-Speed Microcontroller User Guide
Timer 2 Mode (T2MOD)
High-Speed Microcontroller User’s Guide
7
6
5
4
3
2
1
0
SFR C9h
-
-
-
-
-
-
T2OE DCEN
RW-0 RW-0
R=Unrestricted Read, W=Unrestricted Write, -n=Value after Reset
Bits 7-2
T2OE
Bit 1
DCEN
Bit 0
Reserved. Read data will be indeterminate.
Timer 2 Output Enable. This bit enables/disables the clock output function of
the T2 pin (P1.0). 0 = The T2 pin functions as either a standard port pin or as a
counter input for timer 2. 1 = Timer 2 will drive the T2 pin with a clock output
if C/ T2 =0. Also, timer 2 rollovers will not cause interrupts.
Down Count Enable. This bit, in conjunction with the T2EX pin, controls the
direction that timer 2 counts in 16-bit auto-reload mode.
DCEN
1
1
0
T2EX
1
0
X
DIRECTION
Up
Down
Up
Timer 2 Capture LSB (RCAP2L)
7
6
5
SFR CAh RCAP2L.7 RCAP2L.6 RCAP2L.5
RW-0 RW-0 RW-0
4
RCAP2L.4
RW-0
3
RCAP2L.3
RW-0
2
RCAP2L.2
RW-0
1
RCAP2L.1
RW-0
0
RCAP2L.0
RW-0
R=Unrestricted Read, W=Unrestricted Write, -n=Value after Reset
RCAP2L.7-0
Bits 7-0
Timer 2 Capture LSB. This register is used to capture the TL2 value when
timer 2 is configured in capture mode. RCAP2L is also used as the LSB of a 16-
bit reload value when timer 2 is configured in auto-reload mode.
Timer 2 Capture MSB (RCAP2H)
7
6
5
4
SFR CBh RCAP2H.7 RCAP2H.6 RCAP2H.5 RCAP2H.4
RW-0 RW-0 RW-0 RW-0
3
RCAP2H.3
RW-0
2
RCAP2H.2
RW-0
1
RCAP2H.1
RW-0
0
RCAP2H.0
RW-0
R=Unrestricted Read, W=Unrestricted Write, -n=Value after Reset
RCAP2H.7-0
Bits 7-0
Timer 2 Capture MSB. This register is used to capture the TH2 value when
timer 2 is configured in capture mode. RCAP2H is also used as the MSB of a 16-
bit reload value when timer 2 is configured in auto-reload mode.
47 of 175