CHAPTER 12 PORT FUNCTIONS
577
User’s Manual U15195EJ5V0UD
(2) Setting of I/O mode and control mode
The port CT mode register (PMCT) is used to set the I/O mode of port CT and the port CT mode control
register (PMCCT) is used to set the operation in control mode.
(a) Port CT mode register (PMCT)
This register can be read or written in 8-bit or 1-bit units.
7
1
PMCT
6
PMCT6
5
1
4
PMCT4
3
1
2
1
1
PMCT1
0
PMCT0
Address
FFFFF02AH
After reset
FFH
Bit position
Bit name
Function
6, 4, 1, 0
PMCTn
(n = 6, 4, 1, 0)
Specifies input/output mode of PCTn pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
(b) Port CT mode control register (PMCCT)
This register can be read or written in 8-bit or 1-bit units.
7
0
PMCCT
6
PMCCT6
5
0
4
PMCCT4
3
0
2
0
1
PMCCT1
0
PMCCT0
Address
FFFFF04AH
After reset
Note
00H/53H
Note
00H: Single-chip mode
53H: ROMless mode
Bit position
Bit name
Function
6
PMCCT6
Specifies operation mode of PCT6 pin
0: I/O port mode
1: ASTB output mode
4
PMCCT4
Specifies operation mode of PCT4 pin
0: I/O port mode
1: RD output mode
1
PMCCT1
Specifies operation mode of PCT1 pin
0: I/O port mode
1: UWR output mode
0
PMCCT0
Specifies operation mode of PCT0 pin
0: I/O port mode
1: LWR output mode