English
Language : 

M16C30P_07 Datasheet, PDF (224/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 EW1 Mode
Program in the ROM
Single-chip mode (1)
Set the CM0, CM1, PM1 registers (2)
Set the FMR01 bit to “1” (CPU rewrite mode enabled)
after writing “0”
Set the FMR11 bit to “1” (EW1 mode) after writing
“0” (EW1 mode) (3)
Execute the software commands
Set the FMR01 bit to 0
(CPU rewrite mode disabled)
NOTES:
1. In EW1 mode, do not enter memory expansion or boot mode.
2. In CPU rewrite mode, set the CM06 bit in the CM0 register and the 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).
3. Set the FMR01 bit to “1” immediately 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 FMR11 bit to “1” immediately after setting it to “0” while the FMR01 bit is set to “1”.
Do not generate an interrupt or a DMA transfer between setting the FMR11 bit to 0 and
setting it to “1”.
Set the FMR01 and FMR11 bits while “H” is applied to the NMI pin.
Figure 19.7 Setting and Resetting of EW1 Mode
Rev.1.22 Mar 29, 2007 Page 208 of 291
REJ09B0179-0122