|
R8C14 Datasheet, PDF (215/277 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / R8C/Tiny SERIES | |||
|
◁ |
R8C/14 Group, R8C/15 Group
18. Flash Memory Version
Figure 18.8 shows the How to Set and Exit EW0 Mode. Figure 18.9 shows the How to Set and Exit
EW1 Mode.
EW0 Mode Operating Procedure
Set CM0 and CM1 registers(1)
Transfer a rewrite control program which uses CPU
rewrite mode to any areas other than the flash
memory
Rewrite Control Program
Set the FMR01 bit by writing â0â and then â1â
(CPU rewrite mode enabled)(2)
Execute software commands
Execute the read array command(3)
Jump to the rewrite control program which has been
transferred to any areas other than the flash memory
(The subsequent process is executed by the rewrite
control program in any areas other than the flash
memory)
Write â0â to the FMR01 bit
(CPU rewrite mode disabled)
Jump to a specified address in the flash memory
NOTES :
1. Select 5MHz or below for the CPU clock by the CM06 bit in the CM0 register and the CM16 to CM17 bits in the CM1 register.
2. When setting the FMR01 bit to â1â, write â0â to the FMR01 bit before writing â1â. Do not generate an interrupt between writing â0â and
â1â.
3. Disable the CPU rewrite mode after executing the read array command.
Figure 18.8 How to Set and Exit EW0 Mode
EW1 Mode Operating Procedure
Program in ROM
Write â0â to the FMR01 bit before writing â1â
(CPU rewrite mode enabled)(1)
Write â0â to the FMR11 bit before writing â1â
(EW1 mode)
Execute Software Commands
Write â0â to the FMR01 bit
(CPU rewrite mode disabled)
Figure 18.9
NOTES :
1. When setting the FMR01 bit to â1â, write â0â to the FMR01 bit before writing â1â.
Do not generate an interrupt between writing â0â and â1â.
How to Set and Exit EW1 Mode
Rev.2.10 Jan 19, 2006 Page 203 of 253
REJ09B0164-0210
|
▷ |