English
Language : 

32192 Datasheet, PDF (179/1044 Pages) Renesas Technology Corp – MCU
6
INTERNAL MEMORY
6.6 Programming the Internal Flash Memory
(2) When the flash write/erase program already exists in the internal flash memory
In this case, the flash write/erase program prepared in the internal flash memory is used to program or erase
the internal flash memory.
For programming/erase operation here, use the internal peripheral circuits in the manner suitable for the
programming system. (All resources of the internal peripheral circuits such as the data bus, serial interface
and ports can be used.)
The following shows an example for programming or erasing the internal flash memory by using SIO0 in
single-chip mode.
FP = L or H MOD1 = L MOD0 = L
<Step 1>
• Initial state (Flash write/erase program existing in the internal
flash memory)
• An ordinary program in the internal flash memory is being executed.
internal RAM
CPU
Flash write/
erase
program
SIO0
M32R/ECU
Write data
External device
FP = H MOD1 = L MOD0 = L
internal RAM
Flash write/
erase
program
CPU
<Step 2>
• Set the FP pin "H", MOD1 pin "L" and MOD0 pin "L" to place
the flash memory in single-chip + flash E/W enable mode.
• After determining the FP pin and MOD1 pin levels, transfer the
flash write/erase program from the internal flash memory area
into the RAM.
• Jump to the flash write/erase program in the internal RAM.
internal Flash
memory
SIO0
M32R/ECU
Write data
External device
FP = H MOD1 = L MOD0 = L
internal RAM
Flash write/
erase
program
CPU
<Step 3>
• Using the flash write/erase program in the internal RAM, set the Flash
Control Register 1 (FCNT1) FENTRY bit to 1.
• Program or erase the internal flash memory using the flash
write/erase program in the internal RAM.
• When finished, jump to the program in the internal flash memory or apply
a reset to enter normal mode.
internal Flash
memory
Flash write
data
SIO0
M32R/ECU
Write data
External device
Figure 6.6.4 Procedure for Programming/Erasing the Internal Flash Memory (when the flash write/erase
program already exists in it)
32192/32195/32196 Group Hardware Manual
Rev.1.10 REJ09B0123-0110 Apr.06.07
6-29