English
Language : 

W78E054D Datasheet, PDF (31/89 Pages) List of Unclassifed Manufacturers – 8-bit microcontroller
W78E054D/W78E052D Data Sheet
2 TR2
Timer 2 Run Control. This bit enables/disables the operation of timer 2. Clear-
ing this bit will halt the timer 2 and preserve the current count in TH2, TL2.
1 C / T2
Counter/Timer Select. This bit determines whether timer 2 will function as a
timer or a counter. Independent of this bit, the timer will run at 2 clocks per tick
when used in baud rate generator mode.
0
CP / RL2
Capture/Reload Select. This bit determines whether the capture or reload
function will be used for timer 2. If either RCLK or TCLK is set, this bit will be
ignored and the timer will function in an auto-reload mode following each over-
flow. If the bit is 0 then auto-reload will occur when timer 2 overflows or a fall-
ing edge is detected on T2EX pin if EXEN2 = 1. If this bit is 1, then timer 2
captures will occur when a falling edge is detected on T2EX pin if EXEN2 =
1.
Timer 2 Mode Control
Bit: 7
6
5
4
3
2
1
0
-
-
-
-
-
-
DCEN
Mnemonic: T2MOD
Address: C9h
BIT NAME
FUNCTION
0 DCEN
Down Count Enable: This bit, in conjunction with the T2EX pin, controls the
direction that timer 2 counts in 16-bit auto-reload mode.
Timer 2 Capture LSB
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
BIT NAME
FUNCTION
7-0 RCAP2L.[7:0] This register is used to capture the TL2 value when a 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
Bit: 7
6
RCAP2h.7 RCAP2h.6
5
RCAP2h.5
4
RCAP2h.4
3
RCAP2h.3
2
RCAP2h.2
1
RCAP2h.1
0
RCAP2h.0
Mnemonic: RCAP2H
Address: CBh
BIT NAME
FUNCTION
7-0 RCAP2H.[7:0] This register is used to capture the TH2 value when a 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.
Timer 2 LSB
Bit: 7
6
5
4
3
2
1
0
- 31 -
Publication Release Date: Jun 9, 2015
Revision A13