Renesas F-ZTAT H8 Series Hardware Manual page 618

Hide thumbs Also See for F-ZTAT H8 Series:
Table of Contents

Advertisement

Section 18 ROM
If erasing multiple blocks, set a single bit in EBR1/EBR2 for the next block to be erased, and
repeat the erase/erase-verify sequence as before.
Notes: 1. Prewriting (setting erase block data to all 0s) is not necessary.
2. Verify data is read in 16-bit (W) units.
3. Make only a single-bit specification in the erase block registers (EBR1 and EBR2). Two or more bits must not be set simultaneously.
4. The wait times and the value of N are shown in section 21.2.5, Flash Memory Characteristics.
Figure 18.13 Erase/Erase-Verify Flowchart (Single-Block Erase)
Rev. 3.00 Mar 21, 2006 page 590 of 814
REJ09B0302-0300
Start
Set SWE1 (2) bit in FLMCR1 (2)
Wait tsswe µs
n = 1
Set EBR1 or EBR2
Enable WDT
Set ESU1 (2) bit in FLMCR1 (2)
Wait tsesu µs
Set E1 (2) bit in FLMCR1 (2)
Wait tse ms
Clear E1 (2) bit in FLMCR1 (2)
Wait tce µs
Clear ESU1 (2) bit in FLMCR1 (2)
Wait tcesu µs
Disable WDT
Set EV1 (2) bit in FLMCR1 (2)
Wait tsev µs
Set block start address as verify address
H'FF dummy write to verify address
Wait tsevr µs
Read verify data
Increment
address
Verify data = all 1s?
Yes
No
Last address of block?
Yes
Clear EV1 (2) bit in FLMCR1 (2)
Wait tcev µs
Clear SWE1 (2) bit in FLMCR1 (2)
Wait tcswe µs
End of erasing
*1
Perform erasing in block units.
*4
*3
*4
Start of erase
*4
Erase halted
*4
*4
*4
*4
*2
No
Clear EV1 (2) bit in FLMCR1 (2)
Wait tcev µs
*4
n ≥ N?
Clear SWE1 (2) bit in FLMCR1 (2)
Wait tcswe µs
*4
Erase failure
n ← n + 1
*4
*4
No
Yes
*4

Advertisement

Table of Contents
loading

Table of Contents