h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 658

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 21 ROM
Rev. 4.00 Jun 06, 2006 page 604 of 1004
REJ09B0301-0400
Notes: 1. Preprogramming (setting erase block data to all 0) is not necessary.
2. Verify data is read in 16-bit (W) units.
3. Set only one bit in EBR1or EBR2. More than one bit cannot be set.
4. Erasing is performed in block units. To erase a number of blocks, the individual blocks must be erased sequentially.
5. See section 25, Electrical Characteristics, Flash Memory Characteristics, for the values of x, y, z, , , , , , and N.
Figure 21.13 Erase/Erase-Verify Flowchart (Single-Block Erase)
Increment
address
(Mask ROM Version, H8S/2138 F-ZTAT, H8S/2134 F-ZTAT, and H8S/2132 F-ZTAT)
NG
NG
Set block start address to verify address
H'FF dummy write to verify address
*4
Clear ESU bit in FLMCR2
Clear SWE bit in FLMCR1
Set SWE bit in FLMCR1
Set ESU bit in FLMCR2
Clear EV bit in FLMCR1
Clear E bit in FLMCR1
Set EV bit in FLMCR1
Last address of block?
Set E bit in FLMCR1
erasing of all erase
Verify data = all 1?
Set EBR1, EBR2
Read verify data
End of erasing
Disable WDT
Enable WDT
Wait (z) ms
Wait (x) s
Wait (y) s
Wait ( ) s
Wait ( ) s
Wait ( ) s
Wait ( ) s
Wait ( ) s
blocks?
End of
n = 1
Start
OK
OK
OK
*1
NG
*5
*5
*3
*5
Start of erase
*5
Halt erase
*5
*5
*5
*5
*2
Clear SWE bit in FLMCR1
Clear EV bit in FLMCR1
Erase failure
Wait ( ) s
n
N?
OK
*5
NG
n
*5
n + 1

Related parts for h8s-2138