Datasheet

M16C/6S Group Flash Memory Version
R01DS0201EJ0502 Rev.5.02 page 169 of 203
Dec 25, 2012
Execute the Read Array command
Single-chip mode
Set CM0, CM1, and PM1 registers (Note1)
Execute software commands
Jump to the rewrite control program which has been
transferred to any area other than the flash memory
(The subsequent processing is executed by the
rewrite control program in any area other than the
flash memory)
Transfer a CPU rewrite mode based rewrite control
program to any area other than the flash memory
Write “0” to the FMR01 bit
(CPU rewrite mode disabled)
Set the FMR01 bit by writing “0” and then “1”
(CPU rewrite mode enabled) (Note 2)
EW0 mode operation procedure
Rewrite control program
Jump to a specified address in the flash memory
Note 1: Select 10 MHz or less for CPU clock using the CM0 register’s CM06 bit and CM1 register’s CM17 to 6
bits. Also, set the PM1 register’s PM17 bit to “1” (with wait state).
Note 2: To set the FMR01 bit to “1”, write “0” and then “1” in succession. Make sure no interrupts or no DMA
transfers will occur before writing “1” after writing “0”.
Write to the FMR01 bit from a program in other than the flash memory.
Note 3: Disables the CPU rewrite mode after executing the Read Array command.
Figure 1.21.2. Setting and Resetting of EW0 Mode