R01UH0822EJ0100 Rev.1.00
Page 939 of 1041
Jul 31, 2019
RX13T Group
31. Flash Memory (FLASH)
31.7.4
Software Command Usage
This section describes how to use each software command, using flowcharts.
31.7.4.1
Program
show the procedure to issue the program command.
Figure 31.11
Procedure to Issue the Program Command for the ROM
Set programming address in registers
FSARH and FSARL
Yes
Set programming data in registers
FWBH and FWBL
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
FASR.EXS bit = 0
Start in ROM P/E mode