|
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
|
▷ |