
W79E804A/803A/802A
Publication Release Date: July 16, 2007
- 25 -
Revision A2
BIT
NAME
FUNCTION
7-0
SBUF.[7:0]
Serial data on the serial port is read from or written to this location. It actually
consists of two separate internal 8-bit registers. One is the receive resister, and
the other is the transmit buffer. Any read access gets data from the receive data
buffer, while write access is to the transmit data buffer.
PORT 2
Bit:
7
6
5
4
3
2
1
0
-
-
-
-
-
-
P2.1
P2.0
Mnemonic: P2
Address: A0h
BIT
NAME
FUNCTION
7-2
-
Reserved
1
P2.1
XTAL1 clock input pin.
0
P2.0
XTAL2 or CLKOUT pin by alternative.
Note:
The initial value of the port is set by CONFIG1.PRHI bit. The default setting for CONFIG1.PRHI =1 which the alternative
function output is turned on upon reset. If CONFIG1.PRHI is set to 0, the user has to write a 1 to port SFR to turn on the
alternative function output.
KEYBOARD INTERRUPT
Bit:
7
6
5
4
3
2
1
0
KBI.7
KBI.6
KBI.5
KBI.4
KBI.3
KBI.2
KBI.1
KBI.0
Mnemonic: KBI
Address: A1h
BIT
NAME
FUNCTION
7
KBI.7
1: Enable P0.7 as a cause of a Keyboard interrupt.
6
KBI.6
1: Enable P0.6 as a cause of a Keyboard interrupt.
5
KBI.5
1: Enable P0.5 as a cause of a Keyboard interrupt.
4
KBI.4
1: Enable P0.4 as a cause of a Keyboard interrupt.
3
KBI.3
1: Enable P0.3 as a cause of a Keyboard interrupt.
2
KBI.2
1: Enable P0.2 as a cause of a Keyboard interrupt.
1
KBI.1
1: Enable P0.1 as a cause of a Keyboard interrupt.
0
KBI.0
1: Enable P0.0 as a cause of a Keyboard interrupt.
AUX FUNCTION REGISTER 1
Bit:
7
6
5
4
3
2
1
0
KBF
BOD
BOI
LPBOV
SRST
-
0
DPS
Mnemonic: AUXR1
Address: A2h