EasyManuals Logo
Home>Renesas>Computer Hardware>RL78/G1D

Renesas RL78/G1D User Manual

Renesas RL78/G1D
1092 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 #966 background imageLoading...
Page #966 background image
RL78/G13 CHAPTER 25 FLASH MEMORY
R01UH0146EJ0100 Rev.1.00 947
Sep 22, 2011
25.7 Flash Memory Programming by Self-Programming
The RL78/G13 supports a self-programming function that can be used to rewrite the flash memory via a user program.
Because this function allows a user application to rewrite the flash memory by using the RL78/G13 self-programming
library, it can be used to upgrade the program in the field.
Cautions 1. The self-programming function cannot be used when the CPU operates with the subsystem clock.
2. To prohibit an interrupt during self-programming, in the same way as in the normal operation
mode, execute the self-programming library in the state where the IE flag is cleared (0) by the DI
instruction. To enable an interrupt, clear (0) the interrupt mask flag to accept in the state where
the IE flag is set (1) by the EI instruction, and then execute the self-programming library.
3. When enabling RAM parity error resets (RPERDIS = 1), be sure to initialize the RAM area to use +
10 bytes before overwriting.
Remarks 1. For details of the self-programming function and the RL78/G13 self-programming library, refer to RL78
Microcontroller Self Programming Library Type01 User’s Manual (R01AN0350E).
2. For details of the time required to execute self programming, see the notes on use that accompany the
flash self programming library tool.
Similar to when writing data by using the flash memory programmer, there are two flash memory programming modes
for which the voltage range in which to write, erase, or verify data differs.
Table 25-13. Programming Modes and Voltages at Which Data Can Be Written, Erased, or Verified
Mode Voltages at which data can be written, erased, or verified Writing Clock Frequency
Wide voltage mode 1.8 V to 5.5 V 8 MHz (MAX.)
2.4 V to 5.5 V 16 MHz (MAX.)
Full speed mode
Note
2.7 V to 5.5 V 32 MHz (MAX.)
Note This can only be specified if the CMODE1 and CMODE0 bits of the option byte 000C2H are 1.
Specify the mode that corresponds to the voltage range in which to write data. If the argument fsl_flash_voltage_u08 is
other than 00H when the FSL_Init function of the self programming library provided by Renesas Electronics is executed,
wide-voltage mode is specified. If the argument is 00H, full-speed mode is specified.
Remarks 1. Using both the wide voltage mode and full speed mode imposes no restrictions on writing,
deletion, or verification.
2. For details of the self-programming function and the RL78/G13 self-programming library, refer to
RL78 Microcontroller Self Programming Library Type01 User’s Manual (R01AN0350E).

Table of Contents

Other manuals for Renesas RL78/G1D

Questions and Answers:

Question and Answer IconNeed help?

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

Renesas RL78/G1D Specifications

General IconGeneral
BrandRenesas
ModelRL78/G1D
CategoryComputer Hardware
LanguageEnglish

Related product manuals