Memory Map - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

20.2 Memory Map

The flash memory contains the user ROM area and the boot ROM area (reserved area). Figures 20.1 to
20.3 show a block diagram of the flash memory. The user ROM area has space to store the MCU operation
program in single-chip mode and two 2-Kbyte spaces: the block A and B.
The user ROM area is divided into several blocks. The user ROM area can be rewritten in CPU rewrite,
standard serial I/O, parallel I/O, or CAN I/O mode.
However, to rewrite program in block 0 and 1 in CPU rewrite mode, set the FMR02 bit in the FMR0 register
to 1 (block 0, 1 rewrite enabled) and the FMR16 bit in the FMR1 register to 1 (blocks 0 to 5 rewrite enabled).
Also, to rewrite program in blocks 2 to 5 in CPU rewrite mode, set the FMR16 bit in the FMR1 register to 1
(blocks 0 to 5 rewrite enabled). When the PM10 bit in the PM1 register is set to 1 (data space access
enabled), blocks A and B can be available for use.
00F000
16
00F7FF
16
00F800
16
00FFFF
16
0F0000
16
0F7FFF
16
0F8000
16
0FBFFF
16
0FC000
16
0FDFFF
16
0FE000
16
0FFFFF
16
Figure 20.1 Flash Memory Block Diagram (ROM capacity 64 Kbytes)
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
(Data space)
(2)
Block B :2K bytes
(2)
Block A :2K bytes
(Program space)
(5)
Block 3 : 32K bytes
Block 2 : 16K bytes
(5)
Block 2 : 16K bytes
(3)
Block 1 : 8K bytes
(3)
Block 0 : 8K bytes
User ROM area
page 332
f o
4
5
8
NOTES:
1. To specify a block, use the maximum even address in the block.
2. Blocks A and B are enabled to use when the PM10 bit in the PM1
register is set to 1.
3. Blocks 0 and 1 are enabled for programs and erases when the
FMR02 bit in the FMR0 register is set to 1 and the FMR16 bit in
the FMR1 register is set to 1. (CPU rewrite mode only)
4. The boot ROM area is reserved. Do not access.
5. Blocks 2 and 3 are enabled for programs and erases when the
FMR16 bit in the FMR1 register is set to 1. (CPU rewrite mode
only)
0FF000
16
0FFFFF
16
Boot ROM area
20. Flash Memory Version
(4)
4K bytes

Advertisement

Table of Contents
loading

Table of Contents