
CHAPTER 4 PORT FUNCTIONS
User’s Manual U17894EJ9V0UD
105
Table 4-2. Port Functions (1/2)
Function Name
I/O
Function
After Reset
Alternate Function
P00
TI00
P01
TO00
P02
SO10/TxD1
P03
SI10/RxD1/SDA10
P04
SCK10/SCL10
P05
CLKOUT
P06
I/O
Port 0.
7-bit I/O port.
Input of P03 and P04 can be set to TTL input buffer.
Output of P02 to P04 can be set to N-ch open-drain output
(VDD tolerance).
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 port
WAIT
P10
SCK00/EX24
P11
SI00/RxD0/EX25
P12
SO00/TxD0/EX26
P13
TxD3/EX27
P14
RxD3/EX28
P15
RTCDIV/RTCCL/EX29
P16
TI01/TO01/INTP5/
EX30
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 port
TI02/TO02/EX31
P20 to P27
I/O
Port 2.
8-bit I/O port.
Input/output can be specified in 1-bit units.
Digital input
port
ANI0 to ANI7
P30
RTC1HZ/INTP3
P31
I/O
Port 3.
2-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 port
TI03/TO03/INTP4
P40
Note
TOOL0
P41
TOOL1
P42
TI04/TO04
P43
SCK01
P44
SI01
P45
SO01
P46
INTP1/TI05/TO05
P47
I/O
Port 4.
8-bit I/O port.
Input of P43 and P44 can be set to TTL input buffer.
Output of P43 and P45 can be set to N-ch open-drain output
(VDD tolerance).
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 port
INTP2
P50 to P57
I/O
Port 5.
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 port
EX8 to EX15
Note If on-chip debugging is enabled by using an option byte, be sure to pull up the P40/TOOL0 pin externally
(see Caution in 2.2.5 P40 to P47 (port 4)).