h8s-2646 Renesas Electronics Corporation., h8s-2646 Datasheet - Page 722

no-image

h8s-2646

Manufacturer Part Number
h8s-2646
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 20 ROM
20.7.1
Program Mode
When writing data or programs to flash memory, the program/program-verify flowchart shown in
figure 20.11 should be followed. Performing programming operations according to this flowchart
will enable data or programs to be written to flash memory without subjecting the device to
voltage stress or sacrificing program data reliability. Programming should be carried out 128 bytes
at a time.
The wait times after bits are set or cleared in the flash memory control register 1 (FLMCR1) and
the maximum number of programming operations (N) are shown in table 23.10.
Following the elapse of (t
) µs or more after the SWE bit is set to 1 in FLMCR1, 128-byte data is
sswe
written consecutively to the write addresses. The lower 8 bits of the first address written to must
be H'00 and H'80, 128 consecutive byte data transfers are performed. The program address and
program data are latched in the flash memory. 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.
Next, the watchdog timer (WDT) is set to prevent overprogramming due to program runaway, etc.
Set a value greater than (t
+ t
+ t
+ t
) µs as the WDT overflow period. Preparation for
spsu
sp
cp
cpsu
entering program mode (program setup) is performed next by setting the PSU bit in FLMCR1.
The operating mode is then switched to program mode by setting the P bit in FLMCR1 after the
elapse of at least (t
) µs. The time during which the P bit is set is the flash memory programming
spsu
time. Make a program setting so that the time for one programming operation is within the range
of (t
) µs.
sp
The wait time after P bit setting must be changed according to the degree of progress through the
programming operation. For details see “Notes on Program/Program-Verify Procedure”, in section
20.7.2.
Rev. 5.00 Sep 22, 2005 page 696 of 1136
REJ09B0257-0500

Related parts for h8s-2646