h8s-2649 Renesas Electronics Corporation., h8s-2649 Datasheet - Page 588

no-image

h8s-2649

Manufacturer Part Number
h8s-2649
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 19 ROM
8. The maximum number of repetitions of the program/program-verify sequence of the same bit
Rev. 2.00 Dec. 05, 2005 Page 550 of 724
REJ09B0200-0200
is (N).
Note 6: Write Pulse Width
Note: * Use a 10 µs write pulse for additional programming.
Number of Writes n
Write pulse application subroutine
1000
998
999
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.
10
11
12
13
Reprogram data storage
Clear PSU bit in FLMCR1
1
2
3
4
5
6
7
8
9
Additional-programming
Sub-Routine Write Pulse
Reprogram Data Computation Table
Set PSU bit in FLMCR1
Program data storage
Clear P bit in FLMCR1
Wait t
Set P bit in FLMCR1
data storage area
Original Data
area (128 bytes)
area (128 bytes)
Wait (t
Wait (t
(128 bytes)
Wait (t
2. Verify data is read in 16-bit (word) units.
3. Reprogram data is determined by the operation shown in the table below (comparison between the data stored in the program data area and the verify data). Bits for
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 data must be provided in RAM.
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
WDT enable
Disable WDT
sp10 or 30 or 200
(D)
RAM
End Sub
Figure 19.9 Program/Program-Verify Flowchart
0
0
1
1
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.
which the reprogram data is 0 are programmed in the next reprogramming loop. Therefore, even bits for which programming has been completed will be subjected to
programming once again if the result of the subsequent verify operation is NG.
The contents of the reprogram data area and additional data area are modified as programming proceeds.
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.
spsu
cpsu
cp
) 5 µs
(tsp30/tsp200) µs
) 50 µs
) 5 µs
Write Time
Verify Data
200
200
200
200
200
200
200
200
200
200
30
30
30
30
30
30
(V)
*
*
*
*
*
*
0
1
0
1
Reprogram Data
Start of programming
End of programming
*
5
(X)
Increment address
1
0
1
1
Programming completed
Programming incomplete;
reprogram
Still in erased state; no action
Successively write 128-byte data from additional-
programming data area in RAM to flash memory
Apply Write Pulse (Additional programming)
No
Comments
Transfer reprogram data to reprogram data area
Additional-programming data computation
Transfer additional-programming data to
Store 128-byte program data in program
data area consecutively to flash memory
Write 128-byte data in RAM reprogram
H'FF dummy write to verify address
data area and reprogram data area
additional-programming data area
Apply Write pulse t
Clear SWE bit in FLMCR1
Set SWE1 bit in FLMCR1
Reprogram data computation
data verification completed?
Clear PV bit in FLMCR1
Set PV bit in FLMCR1
Start of programming
Wait (t
End of programming
Wait (t
t
Wait (t
spvr
Read verify data
Wait (t
Yes
Yes
Write data =
verify data?
Yes
128-byte
START
m = 0 ?
6
cswe
m = 0
= Wait 2 µs
6
n = 1
sswe
spv
Additional-Programming Data Computation Table
cpv
n ?
Reprogram Data
n?
Yes
Yes
) 100 µs
) 4 µs
Sub-Routine-Call
Sub-Routine-Call
) 1 µs
) µs
sp
30 or 200
(X')
0
0
1
1
No
No
No
Verify Data
*
No
*
(V)
See Note 6 for pulse width
2
3
0
1
0
1
*
*
*
4
4
1
*
*
m = 1
1
Perform programming in the erased state.
Do not perform additional programming
on previously programmed addresses.
4
Clear SWE bit in FLMCR1
Programming Data (Y)
Wait (t
Programming failure
Additional-
n ≥ 1000?
0
1
1
1
cswe
Yes
) 100 µs
Additional programming
to be executed
Additional programming
not to be executed
Additional programming
not to be executed
Additional programming
not to be executed
No
n ← n + 1
Comments
Reprogram

Related parts for h8s-2649