h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 656

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 21 ROM
Rev. 4.00 Jun 06, 2006 page 602 of 1004
REJ09B0301-0400
Increment address
NG
(Mask ROM Version, H8S/2138 F-ZTAT, H8S/2134 F-ZTAT, and H8S/2132 F-ZTAT)
Write 32-byte data in RAM reprogram data
Store 32-byte program data in program
Transfer reprogram data to reprogram
H'FF dummy write to verify address
data area and reprogram data area
area consecutively to flash memory
Figure 21.12 Program/Program-Verify Flowchart
Reprogram data computation
Clear SWE bit in FLMCR1
Clear PSU bit in FLMCR2
Set SWE bit in FLMCR1
Clear PV bit in FLMCR1
Set PSU bit in FLMCR2
Clear P bit in FLMCR1
Set PV bit in FLMCR1
Set P bit in FLMCR1
End of programming
Read verify data
data verification?
Program data =
End of 32-byte
Disable WDT
Enable WDT
Wait ( ) s
Wait ( ) s
Wait ( ) s
Wait (x) s
Wait (y) s
Wait (z) s
Wait ( ) s
Wait ( ) s
verify data?
OK
data area
m = 0?
m = 0
n = 1
Start
OK
OK
NG
NG
*5
*4
*1
*5
Start of programming
*5
End of programming
*5
*5
*5
*5
*2
*3
*4
*5
m = 1
Notes: 1. Data transfer is performed by byte transfer. The lower
Clear SWE bit in FLMCR1
Programming failure
Program
Data
0
0
1
1
2. Verify data is read in 16-bit (word) units.
3. If a bit for which programming has been completed in the 32-byte
4. An area for storing program data (32 bytes) and reprogram data
5. See section 25, Electrical Characteristics, Flash Memory
8 bits of the first address written to must be H'00, H'20, H'40,
H'60, H'80, H'A0, H'C0, or H'E0. A 32-byte data transfer
must be performed even if writing fewer than 32 bytes;
in this case, H'FF data must be written to the extra addresses.
programming loop fails the following verify phase, additional
programming is performed for that bit.
(32 bytes) must be provided in RAM. The contents of the latter
are rewritten as programming progresses.
Characteristics, for the values of x, y, z, , , , , , and N.
n
Perform programming in the erased state.
Do not perform additional programming
on previously programmed addresses.
N?
0
1
0
1
Verify
Data
OK
*5
Reprogram
Data
1
0
1
1
NG
n
n + 1
Comments
Reprogramming is not
performed if program data
and verify data match
Programming incomplete;
reprogram
Still in erased state;
no action
Reprogram data storage
Program data storage
area (32 bytes)
area (32 bytes)
RAM

Related parts for h8s-2138