Cpu Rewrite Mode - Renesas M16C/64C User Manual

Table of Contents

Advertisement

M16C/64C Group
30.8

CPU Rewrite Mode

In CPU rewrite mode, the flash memory can be rewritten when the CPU executes software commands.
Program ROM 1, program ROM 2, and data flash can be rewritten with the MCU mounted on the board
and without using a ROM programmer.
The program and block erase commands are executed only in individual block areas of program ROM 1,
program ROM 2, and data flash.
The flash memory has a suspend function to temporarily suspend operation when erasing or
programming in CPU rewrite mode. Refer to 30.8.5 "Suspend Function" for details of the suspend
function.
EW0 mode and EW1 mode are available in CPU rewrite mode. Table 30.11 lists the differences between
EW0 mode and EW1 mode.
Refer to 30.8.1 "EW0 Mode" and 30.8.2 "EW1 Mode" for details.
Table 30.11
EW0 Mode and EW1 Mode
Item
Operating mode
Rewrite control
program allocatable
area
Rewrite control
program executable
area
Rewritable area
Software command
restriction
Mode after
program/erase, or
during program/erase
suspend
State during auto
write and auto erase
Flash memory
status detection
Note:
1.
Refer to 11.3.1.2 "Bus Hold" for detail about the bus hold.
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
EW0 Mode
• Single-chip mode
• Memory expansion mode
• Program ROM 1
• Program ROM 2
• External area
The rewrite control program must be
transferred to an area other than the
flash memory (e.g., RAM) before being
executed.
• Program ROM 1
• Program ROM 2
• Data flash
None
Read status register mode
Bus is not in a hold state.
• Read bits FMR00, FMR06, and
FMR07 in the FMR0 register, and bits
FMR32 and FMR33 in the FMR3
register by a program.
• Execute the read status register
command, and then read bits SR7,
SR5 and SR4 in the status register.
EW1 Mode
Single-chip mode
• Program ROM 1
• Program ROM 2
The rewrite control program can be
executed in program ROM 1 and
program ROM 2.
• Program ROM 1
• Program ROM 2
• Data flash
Excluding blocks with the rewrite
control program
• Do not execute program and block
erase commands in a block with the
rewrite control program.
• Read status register command
Do not execute.
Read array mode
(1)
Bus is in a hold state.
Read bits FMR00, FMR06, and FMR07
in the FMR0 register, and bits FMR32
and FMR33 in the FMR3 register by a
program.
30. Flash Memory
Page 673 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents