Figure 19.8 Programming/Erasing Flowchart Example In User Program Mode - Hitachi H8S/2215 Series Hardware Manual

Hitachi single-chip microcomputer
Table of Contents

Advertisement

19.6.3
Programming/Erasing in User Program Mode
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 FWE control and supply of programming data, and storing a
program/erase control program in part of the program area as necessary. The flash memory must
contain the user program/erase control program or a program which provides the user
program/erase control program from external memory. Because the flash memory itself cannot be
read during programming/erasing, transfer the user program/erase control program to on-chip
RAM, as like in boot mode. Figure 19.8 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 19.8, Flash Memory Programming/Erasing.
MD2 to MD0 = 110,111 Reset start
Transfer user program /erase
Branch to user program/erase
Execute user program/erase
control pogram (flash memory rewrite)

Figure 19.8 Programming/Erasing Flowchart Example in User Program Mode

Rev. 3.0, 10/02, page 580 of 686
Program/erase?
Yes
control program to RAM
control in RAM
Branch to flash memory
application program
No
Branch to flash memory
application program

Advertisement

Table of Contents
loading

Table of Contents