Renesas M16C/62P Hardware Manual page 265

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
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
(5)
memory
Set CM0, CM1 and PM1 registers
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)
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" if setting to "0". Set this bit 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.5 Setting and Resetting of EW0 Mode
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
(1)
page 251
f o
3
6
4
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"
Execute the software commands
Execute the read array command
Set the FMR01 bit to "0"
(CPU rewrite mode disabled)
In boot mode only
Set the FMR05 bit to "0" (boot ROM area
(4)
accessed)
Jump to a desired address in the flash memory
22. Flash Memory Version
(2)
(3)

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents