Port 1 - Renesas RL78/G1P Hardware User Manual

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

Advertisement

RL78/G1P

4.2.1 Port 1

Port 1 is an I/O port with an output latch. Port 1 can be set to the input mode or output mode in 1-bit units using port
mode register 1 (PM1). When the P10 to P17 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 1 (PU1).
This port can also be used for timer I/O, external interrupt request input, and clock/buzzer output.
Reset signal generation sets port 1 to input mode.
Port
P10
P11
P12
P13
P14
P15
P16
P17
Notes 1.
To use P12/TI03/TO03/INTP4/PCLBUZ0 as a general-purpose port, set bit 7 (PCLOE0) of clock output
select register 0 (CKS0) to "0", which is the same as their default status setting.
2.
To use P15/PCLBUZ1 as a general-purpose port, set bit 7 (PCLOE1) of clock output select register 1
(CKS1) to "0", which is the same as their default status setting.
3
To use P12/TI03/TO03/INTP4/PCLBUZ0, P13/TI00/TO00, or P16/TI01/TO01/INTP5 as a general-purpose
port, set bits 0, 1, and 3 (TO00, TO01, TO03) of timer output register 0 (TO0) and bits 0, 1, and 3 (TOE00,
TOE01, TOE03) of timer output enable register 0 (TOE0) to "0", which is the same as their default status
setting.
Remark :
don't care
PM1: Port mode register 1
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Table 4-2. Settings of Registers When Using Port 1
I/O
PM1
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
Input
1
Output
0
CHAPTER 4 PORT FUNCTIONS
Alternate Function Setting
Note 1
PCLBUZ0 output = 0
Note 3
TO03 output = 0
Note 3
TO00 output = 0
Note 2
PCLBUZ1 output = 0
Note 3
TO01 output = 0
Remark
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
CMOS input
CMOS output
65

Advertisement

Table of Contents
loading

Table of Contents