CHAPTER 12 PORT FUNCTIONS
567
User’s Manual U15195EJ5V0UD
(b) Port 2 mode control register (PMC2)
This register can be read or written in 8-bit or 1-bit units.
Caution The PMC20, PMC25, and PMC26 bits also serve as external interrupts (INTP20, INTP25,
and INTP30). When not using them as external interrupts, mask interrupt requests
(refer to 7.3.4 Interrupt control registers (xxICn)).
7
PMC27
PMC2
6
PMC26
5
PMC25
4
PMC24
3
PMC23
2
PMC22
1
PMC21
0
PMC20
Address
FFFFF444H
After reset
00H
Bit position
Bit name
Function
7
PMC27
Specifies operation mode of P27 pin
0: I/O port mode
1: TO3 output mode or external interrupt request (INTP31) input mode
6
PMC26
Specifies operation mode of P26 pin
0: I/O port mode
1: TI3 and TCLR3 input mode or external interrupt request (INTP30) input mode
5
PMC25
Specifies operation mode of P25 pin
0: I/O port mode
1: TCLR2 input mode or external interrupt request (INTP25) input mode
4 to 1
PMC24 to
PMC21
Specify operation mode of P24 to P21 pins
0: I/O port mode
1: TO24 to TO21 output mode or external interrupt request (INTP24 to INTP21)
input mode
0
PMC20
Specifies operation mode of P20 pin
0: I/O port mode
1: TI2 input mode or external interrupt request (INTP20) input mode
(c) Port 2 function control register (PFC2)
This register can be read or written in 8-bit or 1-bit units. Write 0 in bits 0, 5, and 6.
Caution When port mode is specified by the port 2 mode control register (PMC2), the setting of
this register is invalid.
7
PFC27
PFC2
6
0
5
0
4
PFC24
3
PFC23
2
PFC22
1
PFC21
0
0
Address
FFFFF464H
After reset
00H
Bit position
Bit name
Function
7
PFC27
Specifies operation mode of P27 pin in control mode
0: External interrupt request (INTP31) input mode
1: TO3 output mode
4 to 1
PFC24 to
PFC21
Specify operation mode of P24 to P21 pins in control mode
0: External interrupt request (INTP24 to INTP21) input mode
1: TO24 to TO21 output mode