
CHAPTER 14 PORT FUNCTIONS
User’s Manual U14359EJ4V0UM
473
(b) Port 2 mode control register (PMC2)
This register can be read/written in 8-bit or 1-bit units.
7
6
5
4
3
2
1
0
Address
After reset
PMC2
PMC27
PMC26
PMC25
PMC24
PMC23
PMC22
PMC21
1
FFFFF444H
01H
Bit position
Bit name
Function
7 to 4
PMC2n
(n = 7 to 4)
Port Mode Control
Specifies operation mode of P2n pin in combination with the PFC2 register.
0: I/O port mode
1: External input request (INTP113 to INTP110) input mode/
DMA end signal (TC3 to TC0) output mode
3
PMC23
Port Mode Control
Specifies operation mode of P23 pin.
0: I/O port mode
1: TO02 output mode
2
PMC22
Port Mode Control
Specifies operation mode of P22 pin.
0: I/O port mode
1: External interrupt request (INTP021) input mode
1
PMC21
Port Mode Control
Specifies operation mode of P21 pin.
0: I/O port mode
1: External interrupt request (INTP020) input mode/
TI020 input mode
There is no register that switches between the external interrupt request
(INTP020) input mode and TI020 input mode.
•
When the TI020 input mode is selected:
Mask the external interrupt request (INTP020) or specify the CCC20 register as
a compare register.
•
When the external interrupt request (INTP020) input mode (including timer
capture input) is selected:
Set the ETI2 bit of the TMCC21 register to 0.