CHAPTER 16 FLASH MEMORY
User’s Manual U18172EJ2V0UD
239
Figure 16-20. Example of Block Erase Operation in Self Programming Mode
<11> Normal termination
<7> Clear & restart WDT counter
(WDTE = ACH)
Note
<9> Check execution result
(VCERR and WEPRERR flags)
<8> Execute HALT instruction
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
<10> Abnormal termination
Abnormal
<3> Set FLAPL to 00H
<5> Set FLAPLC to 00H
Note
This setting is not required when the watchdog timer is not used.
Remark
<1> to <11> in Figure 16-20 correspond to <1> to <11> in
16.8.6
(previous page).