![](http://datasheet.mmic.net.cn/370000/UPD780016Y_datasheet_16740792/UPD780016Y_17.png)
μ
PD780016Y, 780018Y
17
5. PERIPHERAL HARDWARE FUNCTIONS
5.1 Ports
Input/output ports are classified into two types.
CMOS input (P00, Port 1)
CMOS input/output (P01 to P06, Port 2 to 6, Port 8 to 11, Port 15)
Total
: 9
: 79
: 88
Table 5-1. Functions of Ports
Port Name
Pin Name
Function
Port 0
P00
Input only.
P01 to P06
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 1
P10 to P17
Input only.
On-chip pull-up resistor can be used by software.
Port 2
P20 to P27
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 3
P30 to P37
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 4
P40 to P47
Input/output port. Input/output can be specified in 8-bit units.
When used as an input port, on-chip pull-up resistor can be used by software.
The test input flag (KRIF) is set to 1 by falling edge detection.
Port 5
P50 to P57
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
LED can be driven directly.
Port 6
P60 to P67
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 8
P80 to P87
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 9
P90 to P95
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 10
P100 to P103
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 11
P110 to P117
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.
Port 15
P150 to P156
Input/output port. Input/output can be specified bit-wise.
When used as an input port, on-chip pull-up resistor can be used by software.