English
Language : 

HD64F7051SFJ20V Datasheet, PDF (634/843 Pages) Renesas Technology Corp – Hardware Manual Renesas 32-Bit RISC
Section 19 ROM (256 kB Version)
Start
Set SWE-bit of FLMCR1
Wait 10 µs
Store 32 bytes write data in write
data area and rewrite data area
Data writes must be performed in the memory-
erased state. Do not write additional data to an
address to which data is already written.
*4
n=1
m=0
Successively write 32-byte data in rewrite data *1
area in RAM to flash memory
Enable WDT
Set PSU1 (2) bit in FLMCR1 (2)
Wait 50 µs
Set P1 (2) bit in FLMCR1 (2)
Wait 500 µs
Write start
Clear P1 (2) bit in FLMCR1 (2)
Wait 10 µs
Write end
Clear PSU1 (2) bit in FLMCR1 (2)
Wait 10 µs
n←n+1
Disable WDT
Set PV1 (2) bit of FLMCR1 (2)
Wait 4 µs
Perform dummy-write H'FF to verify address
Increment address
Wait 2 µs
Read verify data
Write data= Verify data?
OK
Operate rewrite data
*2
NG
m=1
*3
Transfer rewrite data to rewrite data area *4
RAM
Write data storage area
(32 byte)
Rewrite data storage area
(32 byte)
32 byte data
NG
verify complete?
OK
Clear PV1 (2) bit of FLMCR1 (2)
Wait 4 µs
NG
m = 0?
OK
Clear SWE bit om FLMCR1
Write end
n ≥ 400?
NG
OK
Clear SWE bit in 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) Rewrite data (X)
0
1
1
0
0
1
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 19.7 Program/Program-Verify Flowchart
Rev. 5.00 Jan 06, 2006 page 612 of 818
REJ09B0273-0500