Download Print this page

Renesas M16C/50 Series User Manual page 702

Advertisement

M16C/5L Group, M16C/56 Group
26.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 26.8.5 "Suspend Function" for details of the suspend
function.
EW0 mode and EW1 mode are available in CPU rewrite mode. Table 26.11 lists the differences between
EW0 mode and EW1 mode.
Refer to 26.8.1 "EW0 Mode" and 26.8.2 "EW1 Mode" for details.
Table 26.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 10.4 "Bus Hold" for detail about the bus hold.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
EW0 Mode
• Single-chip mode
• Program ROM 1
• Program ROM 2
The rewrite control program must be
transferred to 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.
26. Flash Memory
Page 665 of 803

Advertisement

loading