
CHAPTER 4 PORT FUNCTIONS
5 0
Table 4-1. Port Function
Pin Name
Function
Shared with:
P00
Port 0.
2-bit I/O port.
Can be set in input or output mode in 1-bit units.
Internal pull-up resistor can be used via software when this port is used as input port.
INTP0
P01
INTP1
P10-P17
Port 1.
8-bit input port.
ANI0-ANI7
P20
Port 2.
6-bit I/O port.
Can be set in input or output mode in 1-bit units.
Internal pull-up resistor can be used via software when this port is used as input port.
SCK
P21
SO
P22
SI
P23
TI1
P24
TIO50
P25
TIO51
P40-P47
Port 4.
8-bit I/O port.
Can be set in input or output mode in 1-bit units.
Can directly drive LED.
Internal pull-up resistor can be used via software when this port is used as input port.
—
P50-P57
Port 5.
N-ch open-drain 8-bit medium-voltage I/O port.
Can be set in input or output mode in 1-bit units.
Can directly drive LED.
Internal pull-up resistor can be used by mask option in 1-bit units (mask ROM models only).
m
PD78F0228 does not have pull-up resistors, however.
—
P60-P67
Port 6.
N-ch open-drain 8-bit medium-voltage I/O port.
Can be set in input or output mode in 1-bit units.
Can directly drive LED.
Internal pull-up resistor can be used by mask option in 1-bit units (mask ROM models only).
m
PD78F0228 does not have pull-up resistors, however.
—
P70-P77
Port 7.
P-ch open-drain 8-bit high-voltage I/O port.
Can be set in input or output mode in 1-bit units.
Internal pull-down resistor can be used by mask option in 1-bit units (mask ROM models
only).
m
PD78F0228 does not have pull-down resistors, however.
FIP16-FIP23
P80-P87
Port 8.
P-ch open-drain 8-bit high-voltage I/O port.
Can be set in input or output mode in 1-bit units.
Internal pull-down resistor can be used by mask option in 1-bit units (mask ROM models
only).
m
PD78F0228 does not have pull-down resistors, however.
FIP24-FIP31
P90-P97
Port 9.
P-ch open-drain 8-bit high-voltage I/O port.
Can be set in input or output mode in 1-bit units.
Internal pull-down resistor can be used by mask option in 1-bit units (mask ROM models only).
m
PD78F0228 does not have pull-down resistors, however.
FIP32-FIP39
P100-P107
Port 10.
P-ch open-drain 8-bit high-voltage output port.
Internal pull-down resistor can be used by mask option in 1-bit units (mask ROM models
only).
m
PD78F0228 does not have pull-down resistors, however.
FIP40-FIP47