CHAPTER 14 PORT FUNCTIONS
User’s Manual U14359EJ4V0UM
471
14.3.3 Port 2
Port 2 is an I/O port that can be set to the input or output mode in 1-bit units except for P20, which is an input-only
pin.
Caution
P20 is fixed to NMI input. The level of the NMI input can be read regardless of the PM2 and
PMC2 registers’ values.
7
6
5
4
3
2
1
0
Address
After reset
P2
P27
P26
P25
P24
P23
P22
P21
P20
FFFFF404H
Undefined
Bit position
Bit name
Function
7 to 1
P2n
(n = 7 to 1)
Port 2
I/O port
In addition to their function as port pins, the port 2 pins can also operate as the real-time pulse unit (RPU) I/O,
external interrupt request inputs, and the DMA end (terminal count) signal outputs in the control mode.
(1) Operation in control mode
Port
Alternate Function
Remark
Block Type
P20
NMI
Non-maskable interrupt request
input
F
P21
INTP020/TI020
External interrupt request input/
Real-time pulse unit (RPU) input
P22
INTP021
External interrupt request input
B
P23
TO02
Real-time pulse unit (RPU) output
A
Port 2
P24 to 27
TC0/INTP110 to
TC3/INTP113
DMA end signal outputs/External
interrupt request inputs
N