English
Language : 

HD64F3337YCP16V Datasheet, PDF (550/749 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
Start
Set SWE bit in FLMCR1
Wait (x) µs
*5
Store 32-byte program data in program *4
data area and reprogram data area
Perform programming in the erased state.
Do not perform additional programming
on previously programmed addresses.
n=1
m=0
Write 32-byte data in RAM reprogram data *1
area consecutively to flash memory
Enable WDT
Set PSU bit in FLMCR2
n←n+1
Wait (y) µs
Set P bit in FLMCR1
Wait (z) µs
*5
Start of programming
*5
Increment address
Clear P bit in FLMCR1
Wait (α) µs
Clear PSU bit in FLMCR2
Wait (β) µs
Disable WDT
Set PV bit in FLMCR1
Wait (γ) µs
H'FF dummy write to verify address
Wait (ε) µs
Read verify data
Program data =
verify data?
OK
Reprogram data computation
End of programming
Notes: *1 Data transfer is performed by byte transfer. The lower
*5
8 bits of the first address written to must be H'00, H'20, H'40,
H'60, H'80, H'A0, H'C0, or H'E0. A 32-byte data transfer
must be performed even if writing fewer than 32 bytes;
in this case, H'FF data must be written to the extra addresses.
*2 Verify data is read in 16-bit (word) units.
*5
*3 If a bit for which programming has been completed in the 32-byte
programming loop fails the following verify phase, additional
programming is performed for that bit.
*4 An area for storing program data (32 bytes) and reprogram data
(32 bytes) must be provided in RAM. The contents of the latter
are rewritten as programming progresses.
*5 See section 23, Flash Memory Characteristics, for the values of
*5
x, y, z, α, β, γ, ε, η, and N.
*5
*2
NG
m=1
*3
Program Verify
Data
Data
0
0
0
1
1
0
1
1
Reprogram
Data
1
0
1
Comments
Reprogramming is not
performed if program data
and verify data match
Programming incomplete;
reprogram
—
1
Still in erased state;
no action
Transfer reprogram data to reprogram *4
data area
NG
End of 32-byte
data verification?
OK
Clear PV bit in FLMCR1
RAM
Program data storage
area (32 bytes)
Wait (η) µs
m = 0?
OK
Clear SWE bit in FLMCR1
End of programming
*5
NG
*5
n ≥ N?
NG
OK
Clear SWE bit in FLMCR1
Programming failure
Reprogram data storage
area (32 bytes)
Figure 21.12 Program/Program-Verify Flowchart
518