English
Language : 

UPD78F9500MA-CAC-A Datasheet, PDF (253/342 Pages) Renesas Technology Corp – 8-Bit Single-Chip Microcontrollers
<R>
CHAPTER 16 FLASH MEMORY
Figure 16-20. Example of Block Erase Operation in Self Programming Mode
Block erasure
<1> Set erase command
(FLCMD = 03H)
<2> Set no. of block to be erased
to FLAPH
<3> Set FLAPL to 00H
<4> Set the same value as
that of FLAPH to FLAPHC
<5> Set FLAPLC to 00H
<6> Clear PFS
<7> Clear & restart WDT counter
(WDTE = ACH)Note
<8> Execute HALT instruction
<9> Check execution result
The erase command
can be re-executed.
Abnormal
<10> Check
the number of executions of
the erase command
Normal
<12> Normal termination
The erase command
cannot be re-executed.
<11> Abnormal termination
Note This setting is not required when the watchdog timer is not used.
Remark <1> to <12> in Figure 16-20 correspond to <1> to <12> in 16.8.6 (previous page).
User’s Manual U18172EJ3V0UD
251