CHAPTER 14 PORT FUNCTIONS
696
User’s Manual U14492EJ3V0UD
14.3.3 Port 2
Port 2 is an 8-bit I/O port in which input or output can be specified in 1-bit units.
7
P27
P2
6
P26
5
P25
4
P24
3
P23
2
P22
1
P21
0
P20
Address
FFFFF404H
Initial value
Undefined
Bit Position
Bit Name
Function
7 to 0
P2n
(n = 7 to 0)
I/O port
Besides functioning as a port, in control mode, it also can operate as the real-time pulse unit (RPU) I/O and
external interrupt request input.
(1) Operation in control mode
Port
Alternate Pin Name
Remarks
Block Type
P20
TI2/INTP20
Real-time pulse unit (RPU) input or external interrupt
request input
B
P21 to P24
TO21/INTP21 to
TO24/INTP24
Real-time pulse unit (RPU) output or external interrupt
request input
N
P25
TCLR2/INTP25
P26
TI3/TCLR3/INTP30
Real-time pulse unit (RPU) input or external interrupt
request input
B
Port 2
P27
TO3/INTP31
Real-time pulse unit (RPU) output or external interrupt
request input
N
(2) Setting in I/O mode and control mode
Port 2 is set in I/O mode using the port 2 mode register (PM2). In control mode, it is set using the port 2
mode control register (PMC2) and port 2 function control register (PFC2).
(a) Port 2 mode register (PM2)
This register can be read/written in 8-bit or 1-bit units.
7
PM27
PM2
6
PM26
5
PM25
4
PM24
3
PM23
2
PM22
1
PM21
0
PM20
Address
FFFFF424H
Initial value
FFH
Bit Position
Bit Name
Function
7 to 0
PM2n
(n = 7 to 0)
Specifies input/output mode of P2n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...