beautypg.com

Figure 18.4 user program mode (example) – Renesas H8S/2111B User Manual

Page 469

background image

Rev. 1.00, 05/04, page 435 of 544

Programming/

erase control program

SCI

Boot program

New

application program

SCI

New

application program

SCI

Flash memory

erase

Boot program

New

application program

Program execution state

SCI

Boot program

Programming/

erase control program

Boot program

Transfer program

Application

program

(old version)

Application

program

(old version)

New

application

program

Transfer program

Transfer program

Programming/

erase control program

Programming/

erase control program

Transfer program

1. Initial state

(1) The program that will transfer the programming/erase

control program from flash memory to on-chip RAM

should be written into the flash memory by the user

beforehand.

(2) The programming/erase control program should be

prepared in the host or in the flash memory.

2. Programming/erase control program transfer

The transfer program in the flash memory is executed and

the programming/erase control program is transferred to RAM.

3. Flash memory initialization

The programming/erase program in RAM is executed, and

the flash memory is initialized (to H'FF). Erasing can be

performed in block units, but not in byte units.

4. Writing new application program

Next, the new application program in the host is written into

the erased flash memory blocks. Do not write to unerased

blocks.

Figure 18.4 User Program Mode (Example)

This manual is related to the following products: