hd64338342hw Renesas Electronics Corporation., hd64338342hw Datasheet - Page 216

no-image

hd64338342hw

Manufacturer Part Number
hd64338342hw
Description
Renesas 8-bit Single-chip Microcomputer H8 Family/h8/300l Super Low Power Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 6 ROM
6.7.2
The term user mode refers to the status when a user program is being executed. On-board
programming/erasing of an individual flash memory block can also be performed in user program
mode by branching to a user program/erase control program. The user must set branching
conditions and provide on-board means of supplying programming data. The flash memory must
contain the user program/erase control program or a program that provides the user program/erase
control program from external memory. As the flash memory itself cannot be read during
programming/erasing, transfer the user program/erase control program to on-chip RAM, as in boot
mode. Figure 6.9 shows a sample procedure for programming/erasing in user program mode.
Prepare a user program/erase control program in accordance with the description in section 6.8,
Flash Memory Programming/Erasing.
6.8
A software method using the CPU is employed to program and erase flash memory in the on-
board programming modes. Depending on the FLMCR1 setting, the flash memory operates in one
of the following four modes: Program mode, program-verify mode, erase mode, and erase-verify
mode. The programming control program in boot mode and the user program/erase control
Rev. 6.00 Aug 04, 2006 page 180 of 680
REJ09B0145-0600
Figure 6.9 Programming/Erasing Flowchart Example in User Program Mode
Programming/Erasing in User Program Mode
Flash Memory Programming/Erasing
Branch to user program/erase control
Transfer user program/erase control
Execute user program/erase control
Branch to flash memory application
program (flash memory rewrite)
program to RAM
program in RAM
Program/erase?
Reset-start
program
Yes
No
Branch to flash memory application
program

Related parts for hd64338342hw