Datasheet

RL78/L12 CHAPTER 4 PORT FUNCTIONS
R01UH0330EJ0200 Rev.2.00 101
Dec 13, 2013
4.2.3 Port 3
Port 3 is an I/O port with an output latch. Port 3 can be set to the input mode or output mode in 1-bit units using port
mode register 3 (PM3). When the P30 to P32 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 3 (PU3).
This port can also be used for external interrupt request input, real-time clock correction clock output, segment output
of the LCD controller/driver, and timer I/O.
Reset signal generation sets P30 to P32 to input mode.
4.2.4 Port 4
Port 4 is an I/O port with an output latch. Port 4 can be set to the input mode or output mode in 1-bit units using port
mode register 4 (PM4). When the P40 to P43 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 4 (PU4).
Be sure to connect an external pull-up resistor to P40 when on-chip debugging is enabled (by using an option byte).
This port can also be used for segment output of the LCD controller/driver, external interrupt request input, data I/O for
a flash memory programmer/debugger, timer I/O, and A/D converter analog input.
Reset signal generation sets P40, P42, and P43 to input mode, and sets P41 to analog input.
4.2.5 Port 5
Port 5 is an I/O port with an output latch. Port 5 can be set to the input mode or output mode in 1-bit units using port
mode register 5 (PM5). When the P50 to P54 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 5 (PU5).
This port can also be used for external interrupt request input, segment output of the LCD controller/driver, and timer
I/O.
Reset signal generation sets port 5 to input mode.
4.2.6 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).
The output of the P60 and P61 pins is N-ch open-drain output (EV
DD tolerance
Note
).
This port can also be used for segment output of the LCD controller driver, serial interface data I/O, and serial interface
clock I/O.
Reset signal generation sets port 6 to input mode.
Note 32-, 44-, 48-, and 52-pin products: V
DD tolerance
64-pin products: EVDD tolerance
4.2.7 Port 7
Port 7 is an I/O port with an output latch. Port 7 can be set to the input mode or output mode in 1-bit units using port
mode register 7 (PM7). When 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 7 (PU7).
This port can also be used for key interrupt input and segment output of the LCD controller/driver.
Reset signal generation sets port 7 to input mode.
<R>
<R>
<R>
<R>
<R>