English
Language : 

M16C30P_07 Datasheet, PDF (223/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
19. Flash Memory Version
Procedure to Enter EW0 Mode
Single-chip mode, memory expansion
mode or boot mode
Transfer the rewrite control program in CPU
rewrite mode to a space other than the flash
memory (5)
Set CM0, CM1 and PM1 registers (1)
Jump to the rewrite control program transferred to a
space other than the flash memory. (In the following
steps, use the rewrite control program in a space
other than the flash memory)
Rewrite control program
In boot mode only
Set the FMR05 bit to “1” (user ROM area accessed)
Set the FMR01 bit to “1” (CPU rewrite mode
enabled) after writing “0” (2)
Execute the software commands
Execute the read array command (3)
Set the FMR01 bit to “0”
(CPU rewrite mode disabled)
In boot mode only
Set the FMR05 bit to “0”
(boot ROM area accessed) (4)
Jump to a desired address in the flash memory
NOTES :
1. In CPU rewrite mode, set the CM06 bit in the CM0 register and CM17 to 6 bits in the CM1 register to CPU
clock frequency of 10.0 MHz or less. Set the PM17 bit in the PM1 register to “1” (with wait state).
2. Set the FMR01 bit to “1” immmediately after setting it to “0” Do not generate an interrupt or a DMA transfer
between setting the bit to “0” and setting it to “1”. Set the bit to “0”. Set this in a space other than flash
memory while the NMI pin is held “H”.
3. Exit CPU rewrite mode after executing the read array command.
4. When CPU rewrite mode is exited while FMR05 bit is set to “1”, the user ROM area can be accessed.
5. When in CPU mode, the PM10 bit in the PM1 register is set to "1". Execute the rewrite control program in the
internal RAM or in an external area usable when the PM10 bit is "1".
Figure 19.6 Setting and Resetting of EW0 Mode
Rev.1.22 Mar 29, 2007 Page 207 of 291
REJ09B0179-0122