
RL78/G13
CHAPTER 4 PORT FUNCTIONS
R01UH0146EJ0100 Rev.1.00
193
Sep 22, 2011
Table 4-8. Settings of Registers When Using Port 4
Pin Name
Name
I/O
PM4
×
PIM4
×
POM4
×
Alternate Function Setting
Remark
Input
1
×
P40
Output
0
×
Input
1
×
P41
Output
0
TO07 output = 0
Note 1
Input
1
×
P42
Output
0
TO04 output = 0
Note 2
1
0
×
CMOS input
Input
1
×
TTL input
0
×
0
CMOS output
P43
Output
0
×
1
SCK01/SCL01 output = 1
Note 3
N-ch O.D. output
1
0
×
CMOS input
Input
1
×
TTL input
0
×
0
CMOS output
P44
Output
0
×
1
SDA01 output = 1
Note 3
N-ch O.D. output
Input
1
×
0
CMOS output
P45
Output
0
1
SO01 output = 1
Note 3
N-ch O.D. output
Input
1
×
P46
Output
0
TO05 output = 0
Note 2
Input
1
×
P47
Output
0
×
Notes 1.
P41/TI07/TO07 as a general-purpose port in 44- to 80-pin products, set bit 7 (TO07) of timer output
register 0 (TO0) and bit 7 (TOE07) of timer output enable register 7 (TOE7) to “0”, which is the same as
their default status setting.
2.
To use P42/TI04/TO04 or P46/INTP1/TI05/TO05 as a general-purpose port, set bits 4 and 5 (TO04, TO05)
of timer output register 0 (TO0) and bits 4 and 5 (TOE04, TOE05) of timer output enable register 0 (TOE0)
to “0”, which is the same as their default status setting.
3.
P43/SCK01/SCL01, P44/SI01/SDA01, P45/SO01 as a general-purpose port, set serial channel enable
status register 0 (SE0), serial output register 0 (SO0) and serial output enable register 0 (SOE0) to the
default status.
Caution
When a tool is connected, the P40 pin cannot be used as a port pin.
Remark
×:
don’t care
PM4
×:
Port mode register 4
PIM4
×:
Port input mode register 4
POM4
×:
Port output mode register 4
<R>