R01UH0823EJ0100 Rev.1.00
Page 1683 of 1823
Jul 31, 2019
RX23W Group
50. Flash Memory (FLASH)
50.7
Programming and Erasure
The ROM and E2 DataFlash can be programmed and erased by changing the mode of the dedicated sequencer for
programming and erasure, and by issuing commands for programming and erasure.
The mode transitions and commands required to program or erase the ROM and E2 DataFlash are described below. The
descriptions apply in common to boot mode and single-chip mode.
50.7.1
Sequencer Modes
The sequencer has four modes. Transitions between modes are caused by writing to the DFLCTL and FENTRYR
registers and setting the FPMCR register.
is a diagram of mode transitions of the flash memory.
Figure 50.6
Mode Transitions of the Flash Memory
50.7.1.1
E2 DataFlash Access Disabled Mode
In E2 DataFlash access disabled mode, access to the E2 DataFlash is disabled. After a reset, the sequencer enters this
mode.
When setting the DFLCTL.DFLEN bit to 1, the E2 DataFlash is placed in read mode.
FRNTRYR register = AA01h
FPMCR register
82h/C2h
*1
FRNTRYR register = AA00h
FPMCR register
08h
*1
Reset
FRNTRYR register = AA80h
FPMCR register
10h/50h
*1
FRNTRYR register = AA00h
FPMCR register
08h
*1
DFLCTL.DFLEN bit = 1
DFLCTL.DFLEN bit = 0
ROM/E2 DataFlash read mode
ROM: Read mode
E2 DataFlash: Read mode
E2 DataFlash P/E mode
ROM: Read mode
E2 DataFlash: P/E mode
ROM P/E mode
ROM: P/E mode
E2 DataFlash: Read mode
E2 DataFlash access disabled Mode
ROM: Read mode
E2 DataFlash: Access disabled
*2
Note 1. See the corresponding flowchart for details on the procedure.
Note 2. The sequencer can directly enter ROM P/E mode from E2 DataFlash access disabled mode. Set the
DFLCTL.DFLEN bit to 1 before issuing the start-up area information program command, or the access
window information program command.