English
Language : 

W78ERD2_07 Datasheet, PDF (23/76 Pages) Winbond – 8-BIT MICROCONTROLLER
W78ERD2/W78ERD2A
Continued
BIT NAME
FUNCTION
Timer 2 External Enable: If Timer 2 is not in baud-rate generator mode (see RCLK
3 EXEN2 and TCLK above), set this bit to allow a negative transition on the T2EX pin to
capture/reload Timer 2 counter.
Timer 2 Run Control:
2
TR2 1 = Enable Timer 2.
0 = Disable Timer 2, which preserves the current value in TH2 and TL2.
Counter/Timer select:
1
C/T2 0 = Timer 2 operates as a timer at a speed controlled by T2M (CKCON.5)
1 = Timer 2 counts negative edges on the T2EX pin.
Capture/Reload Select: If EXEN2 is set to 1, this bit determines whether the
capture or auto-reload function is activated.
0 = auto-reload when timer 2 overflows or a falling edge is detected on T2EX
0 CP/RL2
1 = capture each falling edge is detected on T2EX
If either RCLK or TCLK is set, this bit has no function, as Timer 2 runs in auto-
reload mode.
Timer 2 Mode
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
-
-
T2OE DCEN
Mnemonic: T2MOD Address: C9h
BIT NAME
FUNCTION
7~2
- Reserved
1
T2OE Timer 2 Output Enable. This bit enables/disables the Timer 2 clock-out function.
0
DCEN
Down Count Enable: Setting DCEN to 1 allows T2EX pin to control the direction
that Timer 2 counts in 16-bit auto-reload mode.
Timer 2 Capture Low
Bit:
7
6
5
4
3
2
1
0
RCAP2L.7 RCAP2L.6 RCAP2L.5 RCAP2L.4 RCAP2L.3 RCAP2L.2 RCAP2L.1 RCAP2L.0
Mnemonic: RCAP2L Address: CAh
RCAP2L Timer 2 Capture LSB: In capture mode, RCAP2L is used to capture the TL2 value. In auto-
reload mode, RCAP2L is used as the LSB of the 16-bit reload value.
- 23 -
Publication Release Date: February 14, 2007
Revision A10