CHAPTER 12 PORT FUNCTIONS
579
User’s Manual U15195EJ5V0UD
(2) Setting of I/O mode and control mode
The port CM mode register (PMCM) is used to set the I/O mode of port CM and the CM mode control register
(PMCCM) is used to set the operation in control mode.
(a) Port CM mode register (PMCM)
This register can be read or written in 8-bit or 1-bit units.
7
1
PMCM
6
1
5
1
4
1
3
1
2
1
1
PMCM1
0
PMCM0
Address
FFFFF02CH
After reset
FFH
Bit position
Bit name
Function
1, 0
PMCMn
(n = 1, 0)
Specifies input/output mode of PCMn pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
(b) Port CM mode control register (PMCCM)
This register can be read or written in 8-bit or 1-bit units.
7
0
PMCCM
6
0
5
0
4
0
3
0
2
0
1
PMCCM1
0
PMCCM0
Address
FFFFF04CH
After reset
Note
00H/03H
Note
00H: Single-chip mode
03H: ROMless mode
Bit position
Bit name
Function
1
PMCCM1
Specifies operation mode of PCM1 pin
0: I/O port mode
1: CLKOUT output mode
0
PMCCM0
Specifies operation mode of PCM0 pin
0: I/O port mode
1: WAIT input mode