English
Language : 

M16C62P_06 Datasheet, PDF (296/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
22. 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 rewrite mode, the PM10 and PM13 bits in the PM1 register are set to “1”. The rewrite control
program can only be executed in the internal RAM or in an external area that is enabled for use when the
PM13 bit = 1. When the PM13 bit = 0 and the flash memory is used in 4M-byte mode, the extended
accessible area (40000h to BFFFFh) cannot be used.
Figure 22.7 Setting and Resetting of EW0 Mode
Rev.2.41 Jan 10, 2006 Page 281 of 390
REJ09B0185-0241