Renesas R8C/18 Series Hardware Manual page 201

16-bit single-chip mcu
Table of Contents

Advertisement

R8C/18 Group, R8C/19 Group
Figure 17.9 shows How to Set and Exit EW0 Mode. Figure 17.10 shows How to Set and Exit EW1
Mode.
EW0 Mode Operating Procedure
Set registers CM0 and CM1
Transfer a rewrite control program which uses CPU
rewrite mode to any area other than the flash
memory.
Jump to the rewrite control program which has been
transferred to any area other than the flash memory.
(The subsequent process is executed by the rewrite
control program in an area other than the flash
memory.)
NOTES:
1. Select 5 MHz or below for the CPU clock by the CM06 bit in the CM0 register and bits CM16 to CM17 in the CM1 register.
2. To set 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 17.9
How to Set and Exit EW0 Mode
Figure 17.10
How to Set and Exit EW1 Mode
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
(1)
EW1 Mode Operating Procedure
NOTE:
1. To set the FMR01 bit to 1, write 0 to the FMR01 bit before writing 1.
Do not generate an interrupt between writing 0 and 1.
Page 186 of 233
Rewrite control program
Set the FMR01 bit by writing 0 and then 1
Execute the read array command
Jump to a specified address in the flash memory
Program in ROM
Write 0 to the FMR01 bit before writing 1 (CPU
(1)
rewrite mode enabled)
Write 0 to the FMR11 bit before writing 1 (EW1
mode)
Execute software commands
Write 0 to the FMR01 bit
(CPU rewrite mode disabled)
17. Flash Memory Version
(2)
(CPU rewrite mode enabled)
Execute software commands
Write 0 to the FMR01 bit
(CPU rewrite mode disabled)
(3)

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c/1 seriesR8c seriesR8c/19 series

Table of Contents