RL78/G13 CHAPTER 2 PIN FUNCTIONS
R01UH0146EJ0100 Rev.1.00 80
Sep 22, 2011
2.2 Description of Pin Functions
Remark The pins mounted depend on the product. See 1.3 Pin Configuration (Top View) and 2.1 Pin Function
List.
2.2.1 P00 to P07 (port 0)
P00 to P07 function as an I/O port. These pins also function as timer I/O, A/D converter analog input, serial interface
data I/O, and clock I/O.
Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 0 (PU0).
Input to the P01, P03, and P04 pins can be specified through a normal input buffer or a TTL input buffer in 1-bit units,
using port input mode register 0 (PIM0).
Output from the P00 and P02 to P04 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 0 (POM0).
When the following pins are used as input, specify them as either digital or analog in Port mode control register 0
(PMC0). This register can be specified in 1-bit unit.
· P00 and P01 pins of the 20, 24, 25, 30, and 32-pin products
· P02 and P03 pins of the 52, 64, 80, 100, and 128-pin products
The following operation modes can be specified in 1-bit units.
(1) Port mode
P00 to P07 function as an I/O port. P00 to P07 can be set to input or output port in 1-bit units using port mode
register 0 (PM0).
(2) Control mode
P00 to P07 function as timer I/O, A/D converter analog input, serial interface data I/O, and clock I/O.
(a) ANI16, ANI17
These are the analog input pins (ANI16, ANI17) of A/D converter.
When using these pins as analog input pins, see Figure 11-46. Analog Input Pin Connection.
(b) SI10
This is a serial data input pin of serial interface CSI10.
(c) SO10
This is a serial data output pin of serial interface CSI10.
(d) SCK10
This is a serial clock I/O pin of serial interface CSI10.
(e) TxD1
This is a serial data output pin of serial interface UART1.
(f) RxD1
This is a serial data input pin of serial interface UART1.
(g) SDA10
This is a serial data I/O pin of serial interface IIC10.
<R>