EasyManuals Logo
Home>Renesas>Microcontrollers>RL78/G15

Renesas RL78/G15 User Manual

Renesas RL78/G15
765 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #98 background imageLoading...
Page #98 background image
RL78/G15 CHAPTER 4 PORT FUNCTIONS
R01UH0959EJ0110 Rev.1.10 Page 98 of 765
Mar 7, 2023
4.2.1 Port 0
Port 0 is an I/O port with an output latch. Port 0 can be set to the input mode or output mode in 1-bit units using port
mode register 0 (PM0). When the P00 to P07
Note 1
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 0 (PU0).
Output from the P00, P01, and P03 to P07 pins can be specified as N-ch open-drain output (V
DD
tolerance) in 1-bit units
using port output mode register 0 (POM0).
This port can also be used for serial interface data I/O and clock I/O, UART transmission and reception for the external
device connection used during flash memory programming, analog input, comparator output, clock/buzzer output, timer
I/O, and external interrupt request input.
Reset signal generation sets P00 to input mode, and sets P01 to P07 to analog input mode.
Note 1. P01, P03, and P04 for 8-pin products; P00 to P04 for 10-pin products; P00 to P07 for 16-pin and 20-pin
products.
4.2.2 Port 2
Port 2 is an I/O port with an output latch. Port 2 can be set to the input mode or output mode in 1-bit units using port
mode register 2 (PM2). When the P20 to P23
Note 1
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 2 (PU2).
Output from the P22 pin can be specified as N-ch open-drain output (V
DD
tolerance) in 1-bit units using port output mode
register 2 (POM2).
This port can also be used for serial interface data I/O and clock I/O, analog input, timer I/O, and external interrupt
request input.
Reset signal generation sets P20 to P23 to analog input mode.
Note 1. For 20-pin products.
4.2.3 Port 4
Port 4 is an I/O port with an output latch. Port 4 can be set to the input mode or output mode in 1-bit units using port
mode register 4 (PM4). When the P40 and P41
Note 1
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 4 (PU4).
Output from the P41 pin can be specified as N-ch open-drain output (V
DD
tolerance) in 1-bit units using port output mode
register 4 (POM4).
This port can also be used for data I/O for a flash memory programmer/debugger, serial interface data I/O and clock I/O,
comparator output, clock/buzzer output, timer I/O, and external interrupt request input. Reset signal generation sets port
4 to input mode.
Note 1. P40 for 8-pin and 10-pin products; P40 and P41 for 16-pin and 20-pin products

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G15 and is the answer not in the manual?

Renesas RL78/G15 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G15
CategoryMicrocontrollers
LanguageEnglish

Related product manuals