R01UH0823EJ0100 Rev.1.00
Page 1690 of 1823
Jul 31, 2019
RX23W Group
50. Flash Memory (FLASH)
50.7.4
Software Command Usage
This section describes how to use each software command, using flowcharts.
50.7.4.1
Program
and
show the procedure to issue the program command.
Figure 50.12
Procedure to Issue the Program Command for the ROM
FASR.EXS bit = 0
Set programming address in registers
FSARH and FSARL
Yes
Set programming data in registers
FWB0, FWB1, FWB2, and FWB3
FCR register = 81h
FCR register = 00h
FSTATR1.FRDY flag = 1?
End in ROM P/E mode
No
FSTATR1.FRDY flag = 0?
Yes
No
Continue ROM programming?
Yes
No
FSTATR0.ILGLERR flag = 1 or
FSTATR0.PRGERR flag = 1?
Yes
FRESETR.FRESET bit = 1
FRESETR.FRESET bit = 0
No
Sequencer
initialization
Program continuous area?
Yes
No
Start in ROM P/E mode