Hitachi H8S/2646 Hardware Manual page 720

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Increment
address
Notes: *1 Prewriting (setting erase block data to all 0s) is not necessary.
*2 Verify data is read in 16-bit (word) 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 Erasing is performed in block units. To erase multiple blocks, each block must be erased in turn.
*5 The wait times and the value of N are shown in section 23.7, Flash Memory Characteristics.
Figure 20-12 Erase/Erase-Verify Flowchart (Single Block Erase)
688
Start
*1
Set SWE bit in FLMCR1
) µs
Wait (t
sswe
n = 1
Set EBR1 or EBR2
Enable WDT
Set ESU bit in FLMCR1
) µs
Wait (t
sesu
Set E bit in FLMCR1
Wait (t
) ms
se
Clear E bit in FLMCR1
) µs
Wait (t
ce
Clear ESU bit in FLMCR1
) µs
Wait (t
cesu
Disable WDT
Set EV bit in FLMCR1
) µs
Wait (t
sev
Set block start address as verify address
H'FF dummy write to verify address
) µs
Wait (t
sevr
Read verify data
Verify data = all 1s?
Yes
No
Last address of block?
Yes
Clear EV bit in FLMCR1
µs
Wait (t
cev)
Clear SWE bit in FLMCR1
) µs
Wait (t
cswe
End of erasing
Perform erasing in block units.
*5
*3, *4
*5
Start of erase
*5
Erase halted
*5
*5
*5
*5
*2
No
Clear EV bit in FLMCR1
*5
) µs
Wait (t
cev
n ≥ (N)?
Yes
Clear SWE bit in FLMCR1
*5
) µs
Wait (t
cswe
Erase failure
n ← n + 1
*5
*5
No
*5

Advertisement

Table of Contents
loading

Table of Contents