English
Language : 

SH7052 Datasheet, PDF (788/919 Pages) Renesas Technology Corp – SuperHTM RISC engine
Subroutine: Write Pulse
Start of subroutine
Enable WDT
Set PSU1 bit in FLMCR1
Wait: tSPSU
Set P1 bit in FLMCR1
Wait: tSP10, tSP30 or tSP200
*5
Clear P1 bit in FLMCR1
Wait: tCP
Clear PSU1 bit in FLMCR1
Wait: tCPSU
Disable WDT
Return
RAM
Program data storage area
(128 bytes)
Reprogram data storage area
(128 bytes)
Additional program data
storage area (128 byte)
Notes: 1. Transfer data in byte units. The lower eight bits of the start
address to which data is written must be H'00 or H'80.
Transfer 128-byte data even when writing fewer than 128 bytes.
In this case, Set H'FF in unused addresses.
2. Read verify data in longword form (32 bits).
3. Even for bits to which data has already been written in the 128-
byte programming loop, an additional write should be performed
if the next verify write data is not the same as the verify data.
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
program data must be provided in RAM. The reprogram and
additional program data contents are modified as programming
proceeds.
5. A write pulse of tSP30 or tSP200 is applied according to the
progress of the programming operation. See Note 6 for the pulse
widths. When writing of the additional program data is executed,
a tSP10 write pulse should be applied. Reprogram data X' means
reprogram data when the pulse is applied.
6. Write Pulse Width
Number of Writes n
Write Time (z)µsec
1
tSP30
2
tSP30
3
tSP30
4
tSP30
5
tSP30
6
tSP30
7
tSP200
8
tSP200
9
tSP200
10
tSP200
11
tSP200
12
tSP200
13
.
tSP.200
.
.
.
.
998
tSP200
999
tSP200
1000
tSP200
Note: Use a tSP10 write pulse for additional programming.
Reprogram Data Computation Table
Original Data Verify Data
(D)
(V)
Reprogram Data
(X)
0
0
1
0
1
0
1
0
1
1
1
1
Comments
Programming complete.
Programming is incomplete; reprogramming should be performed.
—
Left in the erased state.
Additional-Programming Data Computation Table
Reprogram Data Verify Data Additional-Programming
(X')
(V)
Data (Y)
0
0
0
0
1
1
1
0
1
1
1
1
Comments
Additional programming executed
Additional programming not executed
Additional programming not executed
Additional programming not executed
Figure 21.14 Program/Program-Verify Flowchart (2)
762