Renesas M16C/26A Series Hardware Manual page 262

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6
EW0 mode operation procedure
Set CM0, CM1, and PM1 registers (1)
Transfer a rewrite control program to internal RAM
area
Jump to the rewrite control program transfered to an
internal RAM area (in the following steps, use the
rewrite control program internal RAM area)
NOTES:
1. Select 10 MHz or below for CPU clock using the CM06 bit in the CM0 register and CM17 to 16 bits in the CM1
register. Also, set the PM17 bit in the PM1 register to "1" (with wait state).
2. Set the FMR01 bit to "1" immediately 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 FMR01 bit in a space other than the internal flash memory. Also,
set only when the P8
3. Disables the CPU rewrite mode after executing the read array command.
Figure 17.5.1.1. Setting and Resetting of EW0 Mode
Figure 17.5.1.2. Setting and Resetting of EW1 Mode
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
Single-chip mode
/NMI/SD pin is "H" at the time of the NMI function selected.
5
EW mode 1 operation procedure
Set CM0, CM1, and PM1 registers
Set the FMR01 bit to "1" (CPU rewrite mode
enabled) after writing "0"
Set the FMR11 bit to "1" (EW mode 1) after writing
(2, 3)
"0"
NOTES:
1. Select 10 MHz or below for CPU clock using the CM06 bit in the CM0 register and CM17 to 16 bits.
in the CM1 register. Also, set the PM17 bit in the PM1 register to "1" (with wait state).
2. Set the FMR01 bits to "1" immediately after setting it to "0". Do not generate an interrupt or a DMA
transfer between setting the bit to "0" and setting the bit to "1". Set the FMR01 bit in a space other
than the internal flash memory. Set only when the P8
function selected.
3. Set the FMR11 bit to "1" immediately after setting it to "0" while the FMR01 bit is set to "1". Do not
generate an interrupt or a DMA transfer between setting the FMR11 bit to "0" and setting it to "1".
page 243
f o
3
2
9
C
2 /
6
) T
Rewrite control program
Set the FMR01 bit to "1" after writing "0"
(CPU rewrite mode enabled) (2)
Execute software commands
Execute the Read Array command (3)
Write "0" to the FMR01 bit
(CPU rewrite mode disabled)
Jump to a specified address in the flash memory
Program in ROM
Single-chip mode
(1)
Execute software commands
Set the FMR01 bit to "0"
(CPU rewrite mode disabled)
/NMI/SD pin is "H" at the time of the NMI
5
17. Flash Memory Version

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents