
Preliminary W77LE532
- 30 -
RCAP2H: 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
TL2.7
TL2.6
TL2.5
TL2.4
TL2.3
TL2.2
TL2.1
TL2.0
Mnemonic: TL2
Address: CCh
TL2:
Timer 2 LSB
TIMER 2 MSB
Bit:
7
6
5
4
3
2
1
0
TH2.7
TH2.6
TH2.5
TH2.4
TH2.3
TH2.2
TH2.1
TH2.0
Mnemonic: TH2
Address: CDh
TH2:
Timer 2 MSB
PROGRAM STATUS WORD
Bit:
7
6
5
4
3
2
1
0
CY
AC
F0
RS1
RS0
OV
F1
P
Mnemonic: PSW
Address: D0h
CY:
Carry flag: Set for an arithmetic operation which results in a carry being generated from the
ALU. It is also used as the accumulator for the bit operations.
AC:
Auxiliary carry: Set when the previous operation resulted in a carry from the high order nibble.
F0:
User flag 0: General purpose flag that can be set or cleared by the user.
RS.1-0: Register bank select bits:
RS1 RS0
0
0
1
1
Register bank
0
1
2
3
Address
00-07h
08-0Fh
10-17h
18-1Fh
0
1
0
1
OV:
Overflow flag: Set when a carry was generated from the seventh bit but not from the 8th bit as
a result of the previous operation, or vice-versa.
F1:
User Flag 1: General purpose flag that can be set or cleared by the user by software.
P:
Parity flag: Set/cleared by hardware to indicate odd/even number of 1's in the accumulator.