Datasheet
CHAPTER 16 FLASH MEMORY
User’s Manual U18172EJ3V0UD
251
Figure 16-20. Example of Block Erase Operation in Self Programming Mode
<7> Clear & restart WDT counter
(WDTE = ACH)
Note
<9> Check execution result
<10> Check
the number of executions of
the erase command
<8> Execute HALT instruction
<12> Normal termination
Normal
<6> Clear PFS
<1> Set erase command
(FLCMD = 03H)
<2> Set no. of block to be erased
to FLAPH
Block erasure
<4> Set the same value as
that of FLAPH to FLAPHC
<11> Abnormal termination
Abnormal
The erase command
cannot be re-executed.
<3> Set FLAPL to 00H
<5> Set FLAPLC to 00H
The erase command
can be re-executed.
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).
<R>