h8s-2169 Renesas Electronics Corporation., h8s-2169 Datasheet - Page 738

no-image

h8s-2169

Manufacturer Part Number
h8s-2169
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 22 ROM
22.7
In the on-board programming modes, flash memory programming and erasing is performed by
software, using the CPU. There are four flash memory operating modes: program mode, erase
mode, program-verify mode, and erase-verify mode. Transitions to these modes can be made by
setting the PSU and ESU bits in FLMCR2, and the P, E, PV, and EV bits in FLMCR1.
The flash memory cannot be read while being programmed or erased. Therefore, the program that
controls flash memory programming/erasing (the programming control program) should be
located and executed in on-chip RAM or external memory.
Notes: 1. Operation is not guaranteed if setting/resetting of the SWE, EV, PV, E, and P bits in
Rev. 3.00 Jan 18, 2006 page 710 of 1044
REJ09B0280-0300
Note: The watchdog timer should be activated to prevent overprogramming or overerasing
2. Perform programming in the erased state. Do not perform additional programming on
Programming/Erasing Flash Memory
due to program runaway, etc.
FLMCR1, and the ESU and PSU bits in FLMCR2, is executed by a program in flash
memory.
previously programmed addresses.
Figure 22.11 User Program Mode Execution Procedure
Write the transfer program
(and the program/erase control program
if necessary) beforehand
Branch to flash memory application
program (flash memory rewriting)
Branch to program/erase control
Transfer program/erase control
Execute program/erase control
program in RAM area
MD1, MD0 = 10, 11
program to RAM
Reset-start
program

Related parts for h8s-2169