58
CHAPTER 4 PORT FUNCTIONS
Table 4-1. Port Functions
Pin Name
Function
Dual-Function Pin
P00
Port 0.
Input only
INTP0/TI00
P01
7-bit input/output port.
Input/output mode can be specified bitwise.
INTP1/TI01
P02
If used as an input port, an internal pull-up
INTP2
P03
resistor can be used by software.
INTP3
P04
INTP4
P05
INTP5
P07
Input only
XT1
P10-P17
Port 1.
ANI0-ANI7
8-bit input/output port. Input/output mode can be specified bit-wise.
If used as an input port, an internal pull-up resistor can be used by software.
P25
Port 2.
SI0/SB0
P26
3-bit input/output port. Input/output mode can be specified bit-wise.
SO0/SB1
P27
If used as an input port, an internal pull-up resistor can be used by software.
SCK0
P30
Port 3.
TO0
P31
8-bit input/output port. Input/output mode can be specified bit-wise.
TO1
P32
If used as an input port, an internal pull-up resistor can be used by software.
TO2
P33
TI1
P34
TI2
P35
PCL
P36
BUZ
P37
—
P70
Port 7.
SI2/RxD
P71
3-bit input/output port. Input/output mode can be specified bit-wise.
SO2/TxD
P72
If used as an input port, an internal pull-up resistor can be used by software.
SCK2/ASCK
P80-P87
Port 8.
S39-S32
8-bit input/output port. Input/output mode can be specified bit-wise.
If used as an input port, an internal pull-up resistor can be used by software.
This port can be used as a segment signal output port or an I/O port in 2-bit units
by setting LCD display control register (LCDC).
P90-P97
Port 9.
S31-S24
8-bit input/output port. Input/output mode can be specified bit-wise.
If used as an input port, an internal pull-up resistor can be used by software.
This port can be used as a segment signal output port or an I/O port in 2-bit units
by setting LCD display control register (LCDC).
P100-P103
Port 10.
—
4-bit input/output port. Input/output mode can be specified bit-wise.
If used as an input port, an internal pull-up resistor can be used by software.
This port can directly drive LEDs.
P110-P117
Port 11.
—
8-bit input/output port. Input/output mode can be specified bit-wise.
If used as an input port, an internal pull-up resistor can be used by software.
Falling edge detection is possible.