CHAPTER 14 PORT FUNCTIONS
User’s Manual U14359EJ4V0UM
450
(1) Function of each port
The port functions of this product are shown below.
8-bit and 1-bit operations are possible on all ports, allowing various kinds of control to be performed. In
addition to their port functions, these pins also function as internal peripheral I/O input/output pins in the
control mode. For the block types of each port, see (3) Block diagram of port.
Port Name
Pin Name
Port Function
Function in Control Mode
Block Type
Port 0
P00 to P07
8-bit I/O
Real-time pulse unit (RPU) I/O
External interrupt input
PWM output
DMA controller input
A, B, H
Port 1
P10 to P13
4-bit I/O
Real-time pulse unit (RPU) I/O
External interrupt input
PWM output
A, B
Port 2
P20 to P27
1-bit input,
7-bit I/O
NMI input
Real-time pulse unit (RPU) I/O
External interrupt input
DMA controller output
A, B, F, N
Port 3
P30 to P37
8-bit I/O
Serial interface I/O (CSI2, UART2)
External interrupt input
A/D converter external trigger input
B, H, I, L
Port 4
P40 to P45
6-bit I/O
Serial interface I/O (UART0/CSI0, UART1/CSI1)
H, G, M
Port 5
P50 to P52
3-bit I/O
Real-time pulse unit (RPU) I/O
External interrupt input
A, B
Port 7
P70 to P77
8-bit input
A/D converter input
C
Port AL
PAL0 to PAL15
16-bit I/O
External address bus (A0 to A15)
J
Port AH
PAH0 to PAH9
10-bit I/O
External address bus (A16 to A25)
J
Port DL
PDL0 to PDL15
16-bit I/O
External data bus (D0 to D15)
O
Port CS
PCS0 to PCS7
8-bit I/O
External bus interface control signal output
J, K
Port CT
PCT0, PCT1,
PCT4 to PCT7
6-bit I/O
External bus interface control signal output
J
Port CM
PCM0 to PCM5
6-bit I/O
Wait insertion signal input
Internal system clock output/Bus clock output
External bus interface control signal I/O
Self-refresh request signal input
D, E, J, K
Port CD
PCD0 to PCD3
4-bit I/O
External bus interface control signal output
J, K
Port BD
PBD0 to PBD3
4-bit I/O
DMA controller output
J
Caution
When switching the mode of a port that functions as an output or I/O pin to control mode, be sure
to follow the procedure below.
<1> Set the inactive level of the signals output in control mode to the appropriate bits in port n (n =
0 to 5, AL, AH, DL, CS, CT, CM, CD, and BD).
<2> The mode is switched to control mode by the port n mode control register (PMCn).
If <1> above is not performed, the contents of port n may be output for a moment when the mode is
switched from port mode to control mode.