CHAPTER 12 PORT FUNCTIONS
571
User’s Manual U15195EJ5V0UD
(2) Setting of I/O mode and control mode
The port 4 mode register (PM4) is used to set the I/O mode of port 4 and the port 4 mode control register
(PMC4) is used to set the operation in control mode.
(a) Port 4 mode register (PM4)
This register can be read or written in 8-bit or 1-bit units.
7
1
PM4
6
1
5
1
4
1
3
1
2
PM42
1
PM41
0
PM40
Address
FFFFF428H
After reset
FFH
Bit position
Bit name
Function
2 to 0
PM4n
(n = 2 to 0)
Specifies input/output mode of P4n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
(b) Port 4 mode control register (PMC4)
This register can be read or written in 8-bit or 1-bit units.
7
0
PMC4
6
0
5
0
4
0
3
0
2
PMC42
1
PMC41
0
PMC40
Address
FFFFF448H
After reset
00H
Bit position
Bit name
Function
2
PMC42
Specifies operation mode of P42 pin
0: I/O port mode
1: SCK0 I/O mode
1
PMC41
Specifies operation mode of P41 pin
0: I/O port mode
1: SO0 output mode
0
PMC40
Specifies operation mode of P40 pin
0: I/O port mode
1: SI0 input mode
Содержание PD703114
Страница 2: ...2 User s Manual U15195EJ5V0UD MEMO ...