RL78/G13 CHAPTER 2 PIN FUNCTIONS
R01UH0146EJ0100 Rev.1.00 89
Sep 22, 2011
(1) Port mode
P120 and P125 to P127 function as a 1-bit I/O port. P120 can be set to input or output port using port mode register
12 (PM12).
P121 to P124 functions as a 4-bit input port.
(2) Control mode
P120 to P124 function as A/D converter analog input, connecting resonator for main system clock, connecting
resonator for subsystem clock, external clock input for main system clock, and external clock input for subsystem
clock.
(a) ANI19
This is an analog input pin of A/D converter.
When using this pin as analog input pin, see Figure 11-46. Analog Input Pin Connection.
(b) X1, X2
These are the pins for connecting a resonator for main system clock.
(c) EXCLK
This is an external clock input pin for main system clock.
(d) XT1, XT2
These are the pins for connecting a resonator for subsystem clock.
(e) EXCLKS
This is an external clock input pin for subsystem clock.
2.2.14 P130, P137 (port 13)
P130 functions as a 1-bit output-only port. P137 functions as a 1-bit input-only port. P137 pin also functions as
external interrupt request input.
(1) Port mode
P130 functions as a 1-bit output-only port.
P137 functions as a 1-bit input-only port.
(2) Control mode
P137 functions as external interrupt request input.
(a) INTP0
This is an external interrupt request input pin for which the valid edge (rising edge, falling edge, or both rising and
falling edges) can be specified.
2.2.15 P140 to P147 (port 14)
P140 to P147 function as an I/O port. These pins also function as clock/buzzer output, external interrupt request input,
A/D converter analog input, serial interface data I/O, clock I/O, and timer I/O.
Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 14 (PU14).
Input to the P142 and P143 pins can be specified through a normal input buffer or a TTL input buffer in 1-bit units,
using port input mode register 14 (PIM14).
Output from the P142 to P144 pins can be specified as normal CMOS output or N-ch open-drain output (V
DD tolerance)
in 1-bit units, using port output mode register 14 (POM14).