Cpu Rewrite Mode - Renesas M16C Series Hardware Manual

16-bit microcopmuter
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

R8C/11 Group

17.4 CPU Rewrite Mode

In CPU rewrite mode, the user ROM area can be rewritten by executing software commands from the
CPU. Therefore, the user ROM area can be rewritten directly while the microcomputer is mounted on-
board without having to use a ROM programmer, etc. Make sure the Program and the Block Erase
commands are executed only on each block in the user ROM area.
For interrupts requested during an erase operation in CPU rewrite mode, the R8C/11 flash module offers
an "erase-suspend" feature which allow the erase operation to be suspended, and access made avail-
able to the flash.
During CPU rewrite mode, the user ROM area be operated on in either Erase Write 0 (EW0) mode or
Erase Write 1 (EW1) mode. Table 17.3 lists the differences between Erase Write 0 (EW0) and Erase
Write 1 (EW1) modes.
Table 17.3 EW0 Mode and EW1 Mode
Item
Operation mode
Areas in which a
rewrite control
program can be located
Areas in which a
rewrite control
program can be executed before being executed
Areas which can be
rewritten
Software command
limitations
Modes after Program or
Erase
CPU status during Auto
Write and Auto Erase
Flash memory status
detection
Conditions for
transferring to
erase-suspend
NOTES:
1. Block 1 and Block 0 are enabled for rewrite by setting the FMR02 bit in the FMR0 register to "1" (rewrite
enabled).
Rev.1.20
Jan 27, 2006
REJ09B0062-0120
EW0 mode
Single chip mode
User ROM area
Must be transferred to any area other Can be executed directly in the user
than the flash memory (e.g., RAM)
User ROM area
None
Read Status Register mode
Operating
• Read the FMR0 register FMR00,
FMR06, and FMR07 bits in a
program
• Execute the Read Status Register
command to read the status
register SR7, SR5, and SR4.
Set the FMR40 and FMR41 bits in
the FMR4 register to "1" by program. enabled occurs while the FMR40 bit in
page 167 of 204
17.4 CPU Rewrite Mode
EW1 mode
Single chip mode
User ROM area
ROM area
User ROM area
However, this does not include the
block in which a rewrite control program
(1)
exists
• Program, Block Erase command
Cannot be executed on any block in
which a rewrite control program exists
• Read Status Register command
Cannot be executed
Read Array mode
Hold state (I/O ports retain the state in
which they were before the command
was executed)
Read the FMR0 register FMR00,
FMR06, and FMR07 bits in a program
When an interrupt which is set for
the FMR4 register is set to "1".

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/11 seriesR8c/tiny series

Table of Contents