CHAPTER 14 PORT FUNCTIONS
User’s Manual U14359EJ4V0UM
481
14.3.6 Port 5
Port 5 is a 3-bit I/O port that can be set to the input or output mode in 1-bit units.
7
6
5
4
3
2
1
0
Address
After reset
P5
–
–
–
–
–
P52
P51
P50
FFFFF40AH Undefined
Bit position
Bit name
Function
2 to 0
P5n
(n = 2 to 0)
Port 5
I/O port
In addition to their function as port pins, the port 5 pins can also operate as the real-time pulse unit (RPU) I/O and
external interrupt request inputs in the control mode.
(1) Operation in control mode
Port
Alternate Function
Remark
Block Type
P50
INTP030/TI030
External interrupt request input/
Real-time pulse unit (RPU) input
P51
INTP031
External interrupt request input
B
Port 5
P52
TO03
Real-time pulse unit (RPU) output
A
(2) I/O mode/control mode setting
The port 5 I/O mode setting is performed by the port 5 mode register (PM5), and the control mode setting is
performed by the port 5 mode control register (PMC5).
(a) Port 5 mode register (PM5)
This register can be read/written in 8-bit or 1-bit units.
7
6
5
4
3
2
1
0
Address
After reset
PM5
1
1
1
1
1
PM52
PM51
PM50
FFFFF42AH
FFH
Bit position
Bit name
Function
2 to 0
PM5n
(n = 2 to 0)
Port Mode
Specifies input/output mode for P5n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)