Port 3 - 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.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 P35 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, serial interface data I/O, clock I/O, programming UART
transmission/reception, timer I/O, and chip select input.
Reset signal generation sets P30 to P35 to input mode.
Name
I/O
P30
Input
Output
P31
Input
Output
P32
Input
Output
P33
Input
Output
P34, P35
Input
Output
Notes 1.
To use P30/INTP2/TxD0/TOOLTxD/SO00, P32/INTP3/SCK00 as a general-purpose port, set bit 0 (SE00)
of serial channel enable status register 0 (SE0), bit 0 (SO00) of serial output register 0 (SO0) and bit 0
(SOE00) of serial output enable register 0 (SOE0) to the default status.
2.
To use P33/TI02/TO02 as a general-purpose port, set bit 2 (TO02) of timer output register 0 (TO0) and bit
2 (TOE02) of timer output enable register 0 (TOE0) to "0", which is the same as their default status setting.
Remark :
don't care
PM3: Port mode register 3
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Table 4-6. Settings of Registers When Using Port 3
PM3
Alternate Function Setting
1
0
SO00/TxD0 output = 1
1
0
1
0
1
0
1
0
CHAPTER 4 PORT FUNCTIONS
Note 1
Note 1
SCK00 output = 1
Note 2
TO02 output = 0
Remark
73

Advertisement

Table of Contents
loading

Table of Contents