This application note describes the differences in peripheral functions between RL78/G13 and RL78/G23.
Target Device
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.8 Serial Array Unit .................................................................................................................................... 13
2.9 Serial Interface IICA .............................................................................................................................. 15
2.13 Reset Function ...................................................................................................................................... 18
2.15 Voltage Detector .................................................................................................................................... 19
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)