Renesas RL78/G13, RL78/G23 User manual

Application Note
RL78/G13, RL78/G23
Migration Guide from RL78/G13 to RL78/G23
Introduction
This application note describes the differences in peripheral functions between RL78/G13 and RL78/G23.
RL78/G13, RL78/G23
For detailed information on peripheral functions and electrical characteristics, refer to the User's Manual: Hardware and Technical Updates.
When using this application note with other Renesas MCUs, careful evaluation is recommended after making modifications to comply with the alternate MCU.
R01AN5378EJ0100 Rev.1.00 Page 1 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
Contents
1. Differences in peripheral functions between RL78/G13 and RL78/G23.................................... 3
2. Comparison of RL78/G13 and RL78/G23 registers .................................................................. 6
2.1 Port Functions ......................................................................................................................................... 6
2.2 Clock Generator ...................................................................................................................................... 8
2.3 Timer Array Unit ...................................................................................................................................... 9
2.4 Realtime Clock ...................................................................................................................................... 10
2.5 Clock Output/Buzzer Output Controller ................................................................................................. 11
2.6 Watchdog Timer .................................................................................................................................... 11
2.7 A/D Converter ........................................................................................................................................ 12
2.8 Serial Array Unit .................................................................................................................................... 13
2.9 Serial Interface IICA .............................................................................................................................. 15
2.10 Interrupt Functions................................................................................................................................. 16
2.11 Key Interrupt Function ........................................................................................................................... 17
2.12 Standby Function................................................................................................................................... 17
2.13 Reset Function ...................................................................................................................................... 18
2.14 Power-On-Reset Circuit ........................................................................................................................ 18
2.15 Voltage Detector .................................................................................................................................... 19
2.16 Safety Functions .................................................................................................................................... 20
2.17 Regulator ............................................................................................................................................... 20
2.18 Option Bytes .......................................................................................................................................... 21
2.19 On-Chip Debugging ............................................................................................................................... 21
2.20 BCD Correction Circuit .......................................................................................................................... 21
3. Other changes and notes ...................................................................................................... 22
3.1 RL78/G23 instruction set ....................................................................................................................... 22
4. Documents for Reference ...................................................................................................... 23
Revision History ............................................................................................................................ 24
R01AN5378EJ0100 Rev.1.00 Page 2 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Function name
Function name
Main differences from
RL78/G13
current for some pins.
switching
Clocks
Clock Generator
Clock Generator
- Added middle-speed on-chip
32.768kHz.
Timer Array Unit
Timer Array Unit
Added an event input from ELCL.
Realtime Clock
Realtime Clock
None
4,660 hours.)
Clock Output/ Buzzer Output
Clock Output/Buzzer
Clock Output/Buzzer
None (WDT)
pins.)

1. Differences in peripheral functions between RL78/G13 and RL78/G23

Table 1.1 and Table 1.3 show the main differences in peripheral functions between RL78/G13 and
RL78/G23.
However, differences due to changes in the settings of the CPU core, peripheral functions, and clock
generation circuit are not considered. For details, refer to the User's Manual: Hardware of each product.
Table 1.1 Differences in peripheral functions between RL78/G13 and RL78/G23 (1/3)
Item
Ports Port Functions Port Functions - Added output current control
port.
- Enhanced low-level output
Flash operation mode
Timers
12-bit Interval Timer 32-bit Interval Timer Changed function
Output Controller
Watchdog Timers
A/D Converter A/D Converter A/D Converter - Added 12-bit resolution.
Watchdog Timer Watchdog Timer Changed overflow time.
Operation State Control Additional function
oscillator.
- Changed frequency (fIL) of low­speed on-chip oscillator to
(Capable of measuring up to
Output Controller
- Capable of selecting Digital I/O or analog input for each pin. (This pin function selection applies also to ANI0 to ANI15
Note : Additional peripheral functions : Changed peripheral functions
: Deleted peripheral functions : There is no corresponding function.
Caution. For details on peripheral functions, usage and electrical characteristics, refer to the User's Manual:
Hardware.
R01AN5378EJ0100 Rev.1.00 Page 3 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Function name
Function name
Main differences from
RL78/G13
D/A Converter
D/A Converter
Additional function
Comparator
Comparator
Additional function
Clock Synchronous)
Serial Array Unit
Added UART loopback function
I2C bus interface
IICA
IICA
Added all address match function
Remote Control Signal Receiver
Receiver (REMC)
Accumulator
Multiplier and
Deleted item
instructions.)
Functions
Access) Controller
Controller)
Table 1.2 Differences in peripheral functions between RL78/G13 and RL78/G23 (2/3)
Item
Serial Interface (Clock Asynchronous,
Serial Array Unit
UARTA Additional function
(computing unit)
Data Transfer
linkage operation between peripheral functions without CPU
Divider/Multiply­Accumulator
DMA (Direct Memory
Remote Control Signal
DTC (Data Transfer
Logic and Event Link Controller (ELCL)
Additional function
(Added multiply & accumulate
Changed function
Additional function
Note : Additional peripheral functions : Changed peripheral functions
: Deleted peripheral functions : There is no corresponding function.
Caution. For details on peripheral functions, usage and electrical characteristics, refer to the User's Manual:
Hardware.
R01AN5378EJ0100 Rev.1.00 Page 4 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Function name
Function name
Main differences from
RL78/G13
Interrupts
Interrupt Functions
Interrupt Functions
Changed interrupt sources.
detection edge.
supply to RAM.
power-on reset has occurred.
Power-On-Reset Circuit
Power-On-Reset Circuit
Changed reset processing time.
values.
- Added UART loopback function.
encryption function
Processing execution
of CPU
SNOOZE Mode
Additional function
sensor
internal regulator.
Select Areas
and Flash operating modes.
Flash Memory
Flash Memory
Flash Memory
Changed specifications, such as block size.
On-Chip Debugging
On-Chip Debugging
On-Chip Debugging
Changed dedicated emulators.
Circuit
Table 1.3 Differences in peripheral functions between RL78/G13 and RL78/G23 (3/3)
Item
Key Interrupt Function Key Interrupt Function - Added a function to select key
Interrupt detection pins.
- Added a function to select
Reduced system operating current
Resets Reset Function Reset Function Added a function to confirm that a
Voltage Detector (LVD)
Safety Functions Safety Functions Safety Functions - Added a function to prevent Flash
Security function,
function independent
Capacitive touch/proximity
Standby Function Standby Function - Added a function that starting of
high-speed on-chip oscillator is at high speed.
- Added a function to stop power
Voltage Detector Voltage Detector - Equipped with 2 channels.
- Changed detection voltage
rewriting when CPU goes out of control.
- Added a function to detect digital output signal level for I/O pins.
Security Function Additional function
Sequencer
Capacitive Sensing Unit Additional function
Regulator Regulator Regulator Changed an output voltage value of
Option Function
BCD Correction
Note : Additional peripheral functions : Changed peripheral functions
: Deleted peripheral functions : There is no corresponding function.
Caution. For details on peripheral functions, usage and electrical characteristics, refer to the User's Manual:
Hardware.
R01AN5378EJ0100 Rev.1.00 Page 5 of 24 Apr.13.21
Option Bytes Option Bytes Changed functions of WDT, LVD,
BCD Correction Circuit BCD Correction Circuit None
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Register name
Register name
Remark
register
Port registers (Pxx)
Port registers (Pxx)
None
(PUxx)
Addition of PIM84 bit to PIM8 register.
Addition of POM120 bit to POM12 register.
Port digital input disable registers (PDIDISxx)
New addition (PMCxx)
(PMCAxx)
(PMCTxx)
(PMCExx)
A/D port configuration register (ADPC)
Deleted item

2. Comparison of RL78/G13 and RL78/G23 registers

Table 2.1 to Table 2.19 show register comparison between RL78/G13 and RL78/G23 for peripheral functions other than additions, changes and deletions described in chapter "1. Differences in peripheral functions between RL78/G13 and RL78/G23". For details of each register function, refer to the User's Manual: Hardware.
Also, the registers and bits mounted on the microcontroller differ depending on the product. For the registers and bits mounted in each product, refer to the User's Manual: Hardware.

2.1 Port Functions

Table 2.1 Registers Controlling Port Function (1/2)
Port mode registers (PMxx) Port mode registers (PMxx) Addition of PM121 and PM122 bits to PM12
Pull-up resistor option registers (PUxx)
Port input mode registers (PIMx)
Port output mode registers (POMx)
Port mode control registers
Pull-up resistor option registers
Port input mode registers (PIMxx)
Port output mode registers (POMxx)
Port mode control A registers
Port mode control T registers
Port mode control E registers
Addition of PU121 and PU122 bits to PU12 register
Addition of PIM33 bit to PIM3 register. Addition of PIM41 bit to PIM4 register. Addition of PIM71 bit to PIM7 register.
Addition of POM34 bit to POM3 register. Addition of POM42 bit to POM4 register. Addition of POM72 bit to POM7 register. Addition of POM83 bit to POM8 register.
Changed applicable pins
New addition
New addition
Note : The register name is unchanged. : Additional contents : Changed contents
: Deleted contents : There is no corresponding register.
Caution. For details of each register function, refer to the User's Manual: Hardware.
R01AN5378EJ0100 Rev.1.00 Page 6 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Register name
Register name
Remark
register (PIOR)
Global digital input disable
Global digital input disable register (GDIDIS)
None register (CCDE)
(CCSx)
Port overdrive register (PTDC)
New addition
Port function output enable registers (PFOEx)
New addition Port mode select register (PMS)
New addition
Table 2.2 Registers Controlling Port Function (2/2)
Peripheral I/O redirection register (PIOR)
register (GDIDIS)
Peripheral I/O redirection
Output current control enable
Output current select registers
None
New addition
New addition
Note : The register name is unchanged. : Additional contents : Changed contents
: Deleted contents : There is no corresponding register.
Caution. For details of each register function, refer to the User's Manual: Hardware.
R01AN5378EJ0100 Rev.1.00 Page 7 of 24 Apr.13.21
RL78/G13, RL78/G23 Migration Guide from RL78/G13 to RL78/G23
RL78/G13
RL78/G23
Register name
Register name
Remark
(CMC)
(CMC)
Addition of MCS1 bit to bit 1.
Clock operation status control register (CSC)
Clock operation status control register (CSC)
Addition of MIOEN bit to bit 1 status register (OSTC)
status register (OSTC)
register (OSTS)
register (OSTS)
Peripheral enable register 0 (PER0)
Peripheral enable register 0 (PER0)
Change of bit 7 to RTCWEN bit
Peripheral enable register 1 (PER1)
New addition
values.
(CKSEL)
frequency select register (HOCODIV)
frequency select register (HOCODIV)
Middle-speed on-chip oscillator frequency select register (MOCODIV)
New addition register (MOSCDIV)
register (HIOTRM)
register (HIOTRM)
trimming register (MIOTRM)
Low-speed on-chip oscillator trimming register (LIOTRM)
New addition (WKUPMD)

2.2 Clock Generator

Table 2.3 Registers Controlling Clock Generator
Clock operation mode control register
System clock control register (CKC) System clock control register (CKC) Addition of MCM1 bit to bit 0.
Oscillation stabilization time counter
Oscillation stabilization time select
Subsystem clock supply mode control register (OSMC)
High-speed on-chip oscillator
Clock operation mode control register
Oscillation stabilization time counter
Oscillation stabilization time select
Subsystem clock supply mode control register (OSMC)
Subsystem clock select register
High-speed on-chip oscillator
High-speed system clock division
Addition of XTSEL bit to bit 3
None
None
Addition of HIPREC bit to bit 0. Change of bits 1 and 2 to undefined
New addition
None
New addition
High-speed on-chip oscillator trimming
High-speed on-chip oscillator trimming
Middle-speed on-chip oscillator
Standby mode release setting register
None
New addition
New addition
Note : The register name is unchanged : Additional contents : Changed contents
: Deleted contents : There is no corresponding register.
Caution. For details of each register function, refer to the User's Manual: Hardware.
R01AN5378EJ0100 Rev.1.00 Page 8 of 24 Apr.13.21
Loading...
+ 18 hidden pages