![](http://datasheet.mmic.net.cn/370000/UPD780031AY_datasheet_16743890/UPD780031AY_17.png)
17
μ
PD780031AY, 780032AY, 780033AY, 780034AY
Data Sheet U14045EJ1V0DS00
5. PERIPHERAL HARDWARE FUNCTION FEATURES
5.1 Ports
The following 3 types of I/O ports are available.
CMOS input (Port 1):
CMOS input/output (Ports 0, 2 to 7, P34 to P36):
N-ch open-drain input/output (P30 to P33):
8
39
4
Total:
51
Table 5-1. Port Functions
Name
Pin Name
Function
Port 0
P00 to P03
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 1
P10 to P17
Dedicated input port pins.
Port 2
P20 to P25
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 3
P30 to P33
N-ch open-drain I/O port pins. Input/output can be specified in 1-bit units.
The mask option can be used to specify the connection of an on-chip pull-up resistor to P30, P31.
LEDs can be driven directly.
P34 to P36
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 4
P40 to P47
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
The interrupt request flag (KRIF) is set to 1 by falling edge detection.
Port 5
P50 to P57
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
LEDs can be driven directly.
Port 6
P64 to P67
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.
Port 7
P70 to P75
I/O port pins. Input/output can be specified in 1-bit units.
An on-chip pull-up resistor can be connected by means of software.