Figure 17.12 Erase/Erase-Verify Flowchart (Single-Block Erasing) - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer h8/3062 series; h8/3062b series; h8/3062f-ztat series; h8/3064f-ztat series
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

H'FF dummy write to verify address
Increment
verify address
No
Notes: *1 Preprogramming (setting erase block data to all 0s) is not necessary.
*2 The values of x, y, z, α, β, γ, ε, η, and N are shown in section 22.2.6, Flash Memory Characteristics.
*3 Verify data is read in 16-bit (word) units (Byte-unit reading is also possible).
*4 Set only one bit in EBR two or more bits must not be set simultaneously.
*5 Erasing is performed in block units. To erase multiple blocks, each block must be erased in turn.

Figure 17.12 Erase/Erase-Verify Flowchart (Single-Block Erasing)

*1
Start
Set SWE bit in FLMCR
Wait (x) µs
Erase counter n ← 1
Set EBR
Enable WDT
Set ESU bit in FLMCR
Wait (y) µs
Set E bit in FLMCR
Wait (z) ms
Clear E bit in FLMCR
Wait (α) µs
Clear ESU bit in FLMCR
Wait (β) µs
Disable WDT
Set EV bit in FLMCR
Wait (γ) µs
Set block start address
to verify address
Wait (ε) µs
Read verify data
Verify data = all 1s?
YES
Last address of block?
Yes
*2
Clear EV bit in FLMCR
Wait (η) µs
Clear SWE bit in FLMCR
End of erasing
*2
*4
*5
*2
Start of erase
*2
End of erase
*2
*2
*2
*2
*3
No
n ← n + 1
Clear EV bit in FLMCR
Wait (η) µs
n>N?
Yes
Clear SWE bit in FLMCR
Erase failure
Re-erase
*2
*2
No
505

Advertisement

Table of Contents
loading

Table of Contents