CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U16846EJ1V0UD
65
Table 4-2. Port Functions
Pin Name
I/O
Function
After Reset
Alternate Function
P00
TI000
P01
TI010/TO00
P02
P03
I/O
Port 0.
4-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Input
−
P10
SCK10/TxD0
Note
P11
SI10/RxD0
Note
P12
SO10
P13
TxD6
P14
RxD6
P15
TOH0
P16
TOH1/INTP5
P17
I/O
Port 1.
8-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Input
TI50/TO50
P20 to P23
Input
Port 2.
4-bit input-only port.
Input
ANI0 to ANI3
P30 to P33
I/O
Port 3.
4-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Input
INTP1 to INTP4
P120 I/O
Port 12.
1-bit I/O port.
Input/output can be specified in 1-bit units.
Use of an on-chip pull-up resistor can be specified by a
software setting.
Input INTP0
P130 Output
Port 13.
1-bit output-only port.
Output
−
Note TxD0 and RxD0 are available only in the
µ
PD78F0102H and 78F0103H.
4.2 Port Configuration
A port includes the following hardware.
Table 4-3. Port Configuration
Item Configuration
Control registers
Port mode register (PM0, PM1, PM3, PM12)
Port register (P0 to P3, P12, P13)
Pull-up resistor option register (PU0, PU1, PU3, PU12)
Port
Total: 22 (CMOS I/O: 17, CMOS input: 4, CMOS output: 1)
Pull-up resistors
Total: 17 (software control only)