![](http://datasheet.mmic.net.cn/370000/-PD78078Y_datasheet_16681036/-PD78078Y_20.png)
20
μ
μ
PD78076Y, 78078Y
5. PERIPHERAL HARDWARE FUNCTIONS
5.1 Ports
Input/output ports are classified into three types.
CMOS input (P00, P07)
CMOS input/output (P01 to P06, Port 1 to 5, P64 to P67, Port 7,
Port 8, P94 to P96, Port 10, Port 12, Port 13)
N-ch open-drain input/output (P60 to P63, P90 to P93)
: 2
: 78
: 8
Total
: 88
Table 5-1. Functions of Ports
Port Name
Pin Name
Function
Port 0
P00, P07
Input only.
P01 to P06
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 1
P10 to P17
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 2
P20 to P27
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 3
P30 to P37
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 4
P40 to P47
Input/output port. Input/output can be specified in 8-bit units.
When used as an input port, an on-chip pull-up resistor can be used by means of 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, an on-chip pull-up resistor can be used by means of software.
LEDs can be driven directly.
Port 6
P60 to P63
N-ch open-drain input/output port. Input/output can be specified bit-wise.
An on-chip pull-up resistor can be used by mask option
.
LEDs can be driven directly.
P64 to P67
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 7
P70 to P72
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 8
P80 to P87
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 9
P90 to P93
N-ch open-drain input/output port. Input/output can be specified bit-wise.
An on-chip pull-up resistor can be used by mask option.
LEDs can be driven directly.
P94 to P96
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 10
P100 to P103
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 12
P120 to P127
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.
Port 13
P130, P131
Input/output port. Input/output can be specified bit-wise.
When used as an input port, an on-chip pull-up resistor can be used by means of software.