NEC 78K0S/KU1+ User Manual page 239

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KU1+:
Table of Contents

Advertisement

Figure 16-20. Example of Block Erase Operation in Self Programming Mode
<2> Set no. of block to be erased
<7> Clear & restart WDT counter
<8> Execute HALT instruction
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).
CHAPTER 16 FLASH MEMORY
Block erasure
<1> Set erase command
(FLCMD = 03H)
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
Note
(WDTE = ACH)
<9> Check execution result
(VCERR and WEPRERR flags)
Normal
<11> Normal termination
User's Manual U18172EJ2V0UD
Abnormal
<10> Abnormal termination
239

Advertisement

Table of Contents
loading

Table of Contents