18.4.17 Flash Memory Erasing; Figure 18.16 Example Of Erasing Flash Memory - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

18.4.17 Flash Memory Erasing

Figure 18.16 shows a flowchart example of erasing the flash memory in the LPC/FW memory
write cycle.
Read LMCST1 and LMCST2
No
Issue erasing enable command
Read ERASEE bit in LMCST2
No
ERASEE = 1?
Issue block erasure command
Read ERASEE bit in LMCST2
No
ERASEE = 0?
Read FLEI bit in LMCST1
No
Read FLEERR flag in LMCST1
Start
Initial settings
Flag clear?
Yes
Yes
Yes
FLEI = 0?
Yes
No
FLEERR = 0?
Yes
End
Error processing

Figure 18.16 Example of Erasing Flash Memory

[1] Check the LPC/FW memory write cycle processing state
[2] Enable erasing flash memory
[3] Start erasing flash memory block
[4] Wait for completion of erasing flash memory block
[5] Check whether flash memory block has been erased
Rev. 3.00 Jul. 14, 2005 Page 709 of 986
Section 18 LPC Interface (LPC)
REJ09B0098-0300

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2100 seriesH8s/2114rR4f2114r

Table of Contents