
CHAPTER 4 PORT FUNCTIONS
User’s Manual U15905EJ2V1UD
101
(c) Port mode control register 2 (PMC2)
This is an 8-bit register that specifies the port mode or control mode.
This register can be read or written in 8-bit or 1-bit units.
0
PMC2
0
PMC22
PMC21
PMC20
I/O port
SCK4 I/O
PMC22
0
1
Specifies operation mode of P22 pin
I/O port
SO4 output
PMC21
0
1
Specifies operation mode of P21 pin
I/O port
SI4 input
PMC20
0
1
Specifies operation mode of P20 pin
After reset: 00H
R/W
Address: FFFFF444H
(d) Port function register 2 (PF2)
This 8-bit register specifies normal output or N-ch open-drain output.
It can be read or written in 8-bit or 1-bit units.
0
Normal output
N-ch open-drain output
PF2n
0
1
Controls normal output or N-ch open-drain output (n = 1, 2)
PF2
0
PF22
PF21
0
After reset: 00H
R/W
Address: FFFFFC64H
Cautions 1. The N-ch open-drain output voltage is the normal voltage, not the medium voltage.
2. PF2n = 1 is enabled only in the following cases. Otherwise, the setting is prohibited.
n = 1: SO4
n = 2: SCK4