810
START
End of programming
Set SWE1 bit in FLMCR1
Wait (
×
0)
µ
s
tsswe:
tcpv:
tcswe:
n = 1
m = 0
Sub-Routine-Call
Set PV1 bit in FLMCR1
Wait (
γ
)
µ
s
Wait (
ε
)
µ
s
Read verify data
NG
NG
NG
NG
NG
OK
OK
OK
OK
*
4
*
2
*
4
*
3
Wait (
η
)
µ
s
Additional-programming data computation
Reprogram data computation
Transfer additional-programming data to
additional-programming data area
*
4
Transfer reprogram data to reprogram data area
Program data =
verify data?
Clear PV1 bit in FLMCR1
Clear SWE1 bit in FLMCR1
m = 1
128-byte data
verification completed?
Wait (
×
1)
µ
s
m = 0 ?
N1
≥
0 ?
NG
N1
≥
0 ?
Increment address
Programming failure
OK
Clear SWE1 bit in FLMCR1
Wait (
×
1)
µ
s
n
≥
(N1 + N2) ?
n
←
n + 1
Notes: 1.
Data transfer is performed by byte transfer. The lower 8 bits of the first address written to must be H'00 or H'80. A 128-byte data transfer must be
performed even if writing fewer than 128 bytes; in this case, H'FF data must be written to the extra addresses.
2.
Verify data is read in 16-bit (word) units.
3.
Even bits for which programming has been completed in the 128-byte programming loop will be subject to programming again if they fail the
subsequent verify operation.
4.
A 128-byte area for storing program data, a 128-byte area for storing reprogram data, and a 128-byte area for storing additional-programming
data must be provided in RAM. The reprogram and additional-programming data contents are modified as programming proceeds.
5.
A write pulse of 30
µ
s or 200
µ
s is applied according to the progress of the programming operation. See Note 6 for details of the pulse widths.
When writing of additional-programming data is executed, a 10
µ
s write pulse should be applied. Reprogram data X' means reprogram data when
the write pulse is applied.
Original Data (D)
0
0
1
1
Verify Data (V)
0
1
0
1
Reprogram Data (X)
1
0
1
1
Comments
Programming complete
Programming is incomplete: reprogramming should be performed
Left in the erased state
Write pulse application subroutine
Programming must be executed in the erased state.
Do not perform additional programming on addresses
that have already been programmed.
RAM
Program data storage
area (128 bytes)
Reprogram data storage
area (128 bytes)
Additional-programming
data storage area (128 bytes)
Store 128 bytes of program data in program
data area and reprogram data area
*
1
Successively write 128-byte reprogram
data to flash memory
Enable WDT
Disable WDT
Set PSU1 bit in FLMCR1
Set P1 bit in FLMCR1
Clear PSU1 bit in FLMCR1
Wait (y)
µ
s
tspsu:
tspv:
tspur:
tcpv:
tcswe:
Wait (
α
)
µ
s
Wait (
β
)
µ
s
tcp:
tsp10 or tsp30 or tsp200:
Wait (z0)
µ
s or (z1)
µ
s or (z2)
µ
s
Sub-Routine-Call
Additional programming subroutine
*
1
Successively write 128-byte data from additional-
programming data area in RAM to flash memory
H'FF dummy write to verify address
tcswe:
Sub-Routine Write Pulse
End Sub
Clear P1 bit in FLMCR1
Start of programming
Write pulse application subroutine
Number of Writes
1
2
·
·
·
N1–1
N1
N1+1
N1+2
N1+3
·
·
·
N1+N2–2
N1+N2–1
N1+N2
Programming
z0
z0
·
·
·
z0
z0
z2
z2
z2
·
·
·
z2
z2
z2
z1
z1
·
·
·
z1
z1
—
—
—
·
·
·
—
—
—
Additional
Programming
Note 6: Programming Time
Reprogram Data Computation Table
Reprogram Data (X')
0
0
1
1
Verify Data (V)
0
1
0
1
Additional-Programming Data (X)
0
1
1
1
Comments
Additional programming should be performed
Additional programming should not be performed
Additional programming should not be performed
Additional programming should not be performed
Additional-Programming Data Computation Table
P1 Bit Set Time (
µ
s)
Figure 22-11 Program/Program-Verify Flowchart
Содержание H8S/2631
Страница 28: ...xviii Appendix G Package Dimensions 1154 ...
Страница 341: ...316 Transfer SAR or DAR DAR or SAR Block area First block Nth block Figure 9 8 Memory Mapping in Block Transfer Mode ...
Страница 918: ...905 ø DREQ0 DREQ1 tDRQS tDRQH Figure 25 19 DMAC DREQ Input Timing ...
Страница 955: ...943 A 2 Instruction Codes Table A 2 shows the instruction codes ...