Renesas M16C/64A Series User Manual page 706

Table of Contents

Advertisement

M16C/64A 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.
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
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.
R01UH0136EJ0210 Rev.2.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 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 by a program.
30. Flash Memory
Page 673 of 800

Advertisement

Table of Contents
loading

Table of Contents