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