Rev. 6.00, 08/04, page 167 of 628
START
End of programming
Set SWE bit in FLMCR1
Write pulse application subroutine
Wait 1
µ
s
Apply Write Pulse
End Sub
Set PSU bit in FLMCR1
WDT enable
Disable WDT
Wait 50
µ
s
Set P bit in FLMCR1
Wait (Wait time = programming time)
Clear P bit in FLMCR1
Wait 5
µ
s
Clear PSU bit in FLMCR1
Wait 5
µ
s
n = 1
m = 0
No
No
No
Yes
Yes
Yes
Yes
Wait 4
µ
s
Wait 2
µ
s
Wait 2
µ
s
Apply Write pulse
Set PV bit in FLMCR1
H'FF dummy write to verify address
Read verify data
Reprogram data computation
Clear PV bit in FLMCR1
Clear SWE bit in FLMCR1
Increment address
Programming failure
Clear SWE bit in FLMCR1
Wait 100
µ
s
No
Yes
No
Yes
No
Wait 100
µ
s
n
≤
1000 ?
Write 128-byte data in RAM reprogram
data area consecutively to flash memory
Store 128-byte program data in program
data area and reprogram data area
Apply Write Pulse
Sub-Routine-Call
Successively write 128-byte data from
additional-programming data area
in RAM to flash memory
Set block start address as
verify address
n
←
n + 1
m = 1
m = 0 ?
n
≤
6?
128-byte
data verification
completed?
n
≤
6 ?
Additional-programming data
computation
Verify data =
write data?
Figure 6.10 Program/Program-Verify Flowchart
Summary of Contents for H8/38024 Series
Page 18: ...Rev 6 00 08 04 page xviii of xxx...
Page 30: ...Rev 6 00 08 04 page xxx of xxx...
Page 130: ...Rev 6 00 08 04 page 100 of 628...
Page 216: ...Rev 6 00 08 04 page 186 of 628...
Page 416: ...Rev 6 00 08 04 page 386 of 628...
Page 432: ...Rev 6 00 08 04 page 402 of 628...
Page 468: ...Rev 6 00 08 04 page 438 of 628...
Page 661: ...H8 38024 H8 38024S H8 38024F ZTAT H8 38124 Group Hardware Manual...