English
Language : 

HD64F7051SFJ20V Datasheet, PDF (580/843 Pages) Renesas Technology Corp – Hardware Manual Renesas 32-Bit RISC
Section 18 ROM (128 kB Version)
Start
Set SWE-bit of FLMCR1
Wait 10 µs
Data writes must be performed in the memory-
erased state. Do not write additional data to an
address to which data is already written.
Store 32 bytes write data in write
*4
data area and rewrite data area
n=1
m=0
Successively write 32-byte data in rewrite data *1
area in RAM to flash memory
Enable WDT
Set PSU-bit of FLMCR1
Wait 50 µs
Set P-bit of FLMCR1
Wait 500 µs
Clear P-bit of FLMCR1
Wait 10 µs
Write start
Write end
Clear PSU-bit of FLMCR1
Wait 10 µs
n←n+1
Disable WDT
Set PV-bit of FLMCR1
Wait 4 µs
Perform dummy-write of H'FF to verify address
Increment address
Wait 2 µs
Read verify data
Write data= Verify data?
OK
*2
NG
m=1
Operate rewrite data
*3
Transfer rewrite data to rewrite data area *4
32 byte data
NG
verify complete?
OK
Clear PV-bit of FLMCR1
RAM
Write data storage area
(32 byte)
Rewrite data storage area
(32 byte)
Wait 4 µs
NG
m = 0?
OK
Clear SWE bit of FLMCR1
Write end
n ≥ 400?
NG
OK
Clear SWE bit of FLMCR1
Write failure
Notes:
1. Transfer data in a byte unit. The lower eight bits of the start address to which data is written must be H'00, H'20, H'40, H'60, H'80, H'A0, H'C0, or
H'E0. Transfer 32-byte data even when writing fewer than 32 bytes. In this case, Set H'FF in unused addresses.
2. Read verify data in logword form (32 bits).
3. Even for bits to which data is already written, an additional write should be performed if their verify result is NG.
4. The write data storage area (32 bytes) and rewrite data storage area (32 bytes) must be located in RAM. The contents of the rewrite data storage
area are rewritten as writing progresses.
Source data (D)
0
0
1
1
Verify data (V)
0
1
0
1
Rewrite data (X)
1
0
1
1
Description
Rewrite should not be performed to bits already written to.
Write is incomplete; rewrite should be performed.
—
Left in the erased state.
Figure 18.7 Program/Program-Verify Flowchart
Rev. 5.00 Jan 06, 2006 page 558 of 818
REJ09B0273-0500