RL78/G13 CHAPTER 4 PORT FUNCTIONS
R01UH0146EJ0100 Rev.1.00 208
Sep 22, 2011
4.2.7 Port 6
Port 6 is an I/O port with an output latch. Port 6 can be set to the input mode or output mode in 1-bit units using port
mode register 6 (PM6). When the P64 to P67 pins are used as an input port, use of an on-chip pull-up resistor can be
specified in 1-bit units by pull-up resistor option register 6 (PU6).
The output of the P60 to P63 pins is N-ch open-drain output (6 V tolerance).
This port can also be used for serial interface data I/O and clock I/O, and timer I/O.
Reset signal generation sets port 6 to input mode.
Table 4-10. Settings of Registers When Using Port 6
Pin Name
Name I/O
PM6× Alternate Function Setting Remark
Input 1 P60
Output 0
SCLA0 output = 0
Note 2
Input 1 P61
Output 0
SDAA0 output = 0
Note 2
Input 1 P62
Output 0
SCLA1 output = 0
Note 2
Input 1 P63
Output 0
SDAA1 output = 0
Note 2
Input 1 P64
Output 0
TO10 output = 0
Note 2
Input 1 P65
Output 0
TO11 output = 0
Note 2
Input 1 P66
Output 0
TO12 output = 0
Note 2
Input 1 P67
Output 0
TO13 output = 0
Note 2
Notes 1. Stop the operation of serial interface IICA when using P60/SCLA0, P61/SDAA0, P62/SCLA1, and
P63/SDAA1 as general-purpose ports.
2. To use P64/TI10/TO10 to P67/TI13/TO13 as a general-purpose port, set bits 0 to 3 (TO10 to TO13) of
timer output register 1 (TO1) and bits 0 to 3 (TOE10 to TOE13) of timer output enable register 1 (TOE1) to
“0”, which is the same as their default status setting.
Remark ×: don’t care
PM6×: Port mode register 6
<R>