
Section
Page
Description
22.7.2 Program-
Verify Mode
Figure 22.13
Program/Program
Verify Flow
706
Figure amended
Set SWE bit in FLMCR1
n
=
1
m = 0
Write 32-byte data in reprogram data area
in RAM to flash memory consecutively
Start of programming
NG
NG
NG
NG
OK
OK
OK
*
2
*
5
*
5
*
5
*
5
*
5
*
5
*
5
*
5
*
5
Store 32-byte program data in
reprogram data area
*
4
*
1
*
5
Read verify data
Clear SWE bit in FLMCR1
m = 1
End of programming
Program data = verify data?
End of 32-byte
data verification?
flag = 0?
Verify
Increment address
Programming failure
OK
Clear SWE bit in FLMCR1
n
≥
1000
n
←
n + 1
Start
*
3
*
3
*
4
End of programming
Enable WDT
Disable WDT
Reprogram data computation
Transfer reprogram data to reprogram
data area
Wait 10
µ
s
Clear PV1(2) bit in FLMCR1(2)
Wait 4
µ
s
Dummy write of H'FF to verify address
Wait 2
µ
s
Set PV1(2) bit in FLMCR1(2)
Wait 4
µ
s
Clear PSU1(2) bit in FLMCR1(2)
Wait 10
µ
s
Clear P1(2) bit in FLMCR1(2)
Wait 10
µ
s
Set P1(2) bit in FLMCR1(2)
Wait 200
µ
s
Set PSU1(2) bit in FLMCR1(2)
Wait 50
µ
s
Note
*
5 added.
*
5 Make sure to set the wait times and repetitions as specified.
Programming may not complete correctly if values other than
the specified ones are used.
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...