Description Of Pin Functions; P10 To P17 (Port 1); P20 To P27 (Port 2) - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

2.3 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.3.1 P10 to P17 (port 1)

P10 to P17 function as an I/O port. These pins also function as timer I/O, external interrupt request input, and
clock/buzzer output.
Use of an on-chip pull-up resistor can be specified by pull-up resistor option register 1 (PU1).
The following operation modes can be specified in 1-bit units.
(1) Port mode
P10 to P17 function as an I/O port. P10 to P17 can be set to input or output port in 1-bit units using port mode
register 1 (PM1).
(2) Control mode
P10 to P17 function as timer I/O, external interrupt request input, and clock/buzzer output.
(a) TI00, TI01, TI03
These are the pins for inputting an external count clock/capture trigger to 16-bit timers 00, 01, and 03.
(b) TO00, TO01, TO03
These are the timer output pins of 16-bit timers 00, 01, and 03.
(c) INTP4, INTP5
These are the external interrupt request input pins for which the valid edge (rising edge, falling edge, or both
rising and falling edges) can be specified.
(d) PCLBUZ0, PCLBUZ1
These are the clock/buzzer output pins.
(e) ANI16 (24-pin products only)
This is an analog input pin (ANI16) of A/D converter. See 9.10 (5) Analog input (ANIn) pins.

2.3.2 P20 to P27 (port 2)

P20 to P27 function as an I/O port. These pins also function as A/D converter analog input and reference voltage input,
and D/A converter output.
Setting digital or analog to each pin can be done in A/D port configuration register (ADPC).
The following operation modes can be specified in 1-bit units.
(1) Port mode
P20 to P27 function as an I/O port. P20 to P27 can be set to input or output port in 1-bit units using port mode
register 2 (PM2).
(2) Control mode
P20 to P27 function as A/D converter analog input, reference voltage input and D/A converter output.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
CHAPTER 2 PIN FUNCTIONS
17

Advertisement

Table of Contents
loading

Table of Contents