English
Language : 

HD6473032F16 Datasheet, PDF (612/847 Pages) Renesas Technology Corp – Hardware Manual Renesas 16-Bit Single-Chip Microcomputer H8 Family/H8/300H Series
Section 18 ROM
Also, while a high level is applied to the FWE pin, the watchdog timer should be activated
to prevent overprogramming or overerasing due to program runaway, etc.
18.7 Programming/Erasing Flash Memory
A software method, using the CPU, is employed to program and erase flash memory in the on-
board programming modes. There are four flash memory operating modes: program mode, erase
mode, program-verify mode, and erase-verify mode. Transitions to these modes are made by
setting the PSU1, ESU1, P1, E1, PV1, and EV1 bits in FLMCR1 for addresses H'00000 to
H'3FFFF, or the PSU2, ESU2, P2, E2, PV2, and EV2 bits in FLMCR2 for addresses H'40000 to
H'7FFFF.
The flash memory cannot be read while it is being written or erased. Install the program to control
flash memory programming and erasing (programming control program) in the on-chip RAM, in
external memory, or in flash memory outside the address area, and execute the program from
there.
See section 18.1, Notes on Flash Memory Programming/Erasing, for points to be noted when
programming or erasing the flash memory. In the following operation descriptions, wait times
after setting or clearing individual bits in FLMCR1 and FLMCR2 are given as parameters; for
details of the wait times, see section 21.2.5, Flash Memory Characteristics.
Notes: 1. Operation is not guaranteed if bits SWE1, ESU1, PSU1, EV1, PV1, E1, and P1 of
FLMCR1 and bits SWE2, ESU2, PSU2, EV2, PV2, E2 and P2 of FLMCR2 are
set/reset by a program in flash memory in the corresponding address areas.
2. When programming or erasing, set FWE to 1 (programming/erasing will not be
executed if FWE = 0).
3. Programming should be performed in the erased state. Do not perform additional
programming on previously programmed addresses.
4. Do not program addresses H'00000 to H'3FFFF and H'40000 to H'7FFFF
simultaneously. Operation is not guaranteed if this is done.
Rev. 3.00 Mar 21, 2006 page 582 of 814
REJ09B0302-0300