CHAPTER 5 PORT FUNCTIONS
Page 89 of 920
5.5.3
Register setting examples for used port and alternate functions
Register setting examples for used port and alternate functions are shown in Tables 5 - 7 to 5 - 12. The registers
used to control the port functions should be set as shown in Tables 5 - 7 to 5 - 12. See the following remark for
legends used in Tables 5 - 7 to 5 - 12.
Remark
—:
Not supported
×:
Don’t care
POMxx:
Port output mode register
PMCxx:
Port mode control register
PMxx:
Port mode register
Pxx:
Port output latch
Table 5 - 7 Setting Examples of Registers When Using P02 to P16 Pin Function
Pin
Name
Used Function
POMxx
PMCxx
PMxx
Pxx
Alternate Function Output
Function
Name
I/O
SAU Output
Function
Other than SAU
P02
P02
Input
×
0
1
×
×
―
Output
0
0
0
0/1
TxD1/SO10 = 1
―
N-ch OD output
1
0
0
0/1
TxD1
Output
0/1
0
0
1
―
―
SO10
Output
0/1
0
0
1
―
―
P03
P03
Input
×
0
1
×
×
―
Output
0
0
0
0/1
―
―
N-ch OD output
1
0
0
0/1
SI10
Input
×
0
1
×
×
―
RxD1
Input
×
0
1
×
×
―
P04
P04
Input
×
―
1
×
―
―
Output
0
―
0
0/1
SCK10 = 1
―
N-ch OD output
1
―
0
0/1
SCK10
Input
×
―
1
×
―
―
Output
0/1
―
0
1
―
―
P10
P10
Input
―
―
1
×
―
Output
―
―
0
0/1
―
―
P11
P11
Input
―
―
1
×
―
Output
―
―
0
0/1
―
―
P12
P12
Input
―
―
1
×
―
―
Output
―
―
0
0/1
―
―
P13
P13
Input
×
―
1
×
―
―
Output
0
―
0
0/1
SO20 = 1
―
SO20
Output
0/1
―
0
1
―
―
P14
P14
Input
×
―
1
×
―
―
Output
0
―
0
0/1
―
―
SI20
Input
×
―
1
×
―
―
P15
P15
Input
×
―
1
×
―
―
Output
0
―
0
0/1
SCK20 = 1
―
SCK20
Input
×
―
1
×
―
―
Output
0/1
―
0
1
―
―
P16
P16
Input
―
―
1
×
―
―
Output
―
―
0
0/1
―
―
Summary of Contents for RL78/G1H
Page 941: ...R01UH0575EJ0120 RL78 G1H...