RL78/G1P
CHAPTER 23 FLASH MEMORY
R01UH0895EJ0100 Rev.1.00
677
Nov 29, 2019
An overview of the data flash memory is provided below. For details of a method for rewriting the data flash memory,
refer to the
RL78 Family Data Flash Library User’s Manual
.
The data flash memory can be written to by using the flash memory programmer or an external device
Programming is performed in 8-bit units
Blocks can be deleted in 1 KB units
The only access by CPU instructions is byte reading (1 clock cycle + wait 3 clock cycles)
Because the data flash memory is an area exclusively used for data, it cannot be used to execute instructions (code
fetching)
Instructions can be executed from the code flash memory while rewriting the data flash memory (That is, back ground
operation (BGO) is supported)
Accessing the data flash memory is not possible while rewriting the code flash memory (during self-programming)
Because the data flash memory is stopped after a reset ends, the data flash control register (DFLCTL) must be set
up in order to use the data flash memory
Manipulating the DFLCTL register is not possible while rewriting the data flash memory
Transition the HALT/STOP status is not possible while rewriting the data flash memory
Caution The high-speed on-chip oscillator should be kept operating during data flash rewrite. If it is kept
stopping, it should be operated (HIOSTOP = 0). The data flash library should be executed after 30
s
have elapsed.
Remark
For the flash programming mode, see
23.7 Flash Memory Programming by Self-programming
.
23.4.2 Register controlling data flash memory
23.4.2.1 Data flash control register (DFLCTL)
This register is used to enable or disable accessing to the data flash.
The DFLCTL register is set by a 1-bit or 8-bit memory manipulation instruction.
Reset input sets this register to 00H.
Figure 23-6. Format of Data Flash Control Register (DFLCTL)
Address: F0090H After reset: 00H R/W
Symbol
7 6 5 4 3 2 1
<0>
DFLCTL
0 0 0 0 0 0 0
DFLEN
DFLEN
Data flash access control
0
Disables data flash access
1
Enables data flash access
Caution Manipulating the DFLCTL register is not possible while rewriting the data flash memory.