M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
Rev.2.41
Jan 10, 2006
Page 272 of 390
REJ09B0185-0241
22.1
Memory Map
The flash memory contains the user ROM area and the boot ROM area. The user ROM area has space to store the
microcomputer operating program in single-chip mode or memory expansion mode and a separate 4-Kbyte space
as the block A. Figure 22.1 shows a Flash Memory Block Diagram.
The user ROM area is divided into several blocks, each of which can be protected (locked) from program or erase.
The user ROM area can be rewritten in CPU rewrite, standard serial I/O and parallel I/O modes.
Block A is enabled for use by setting the PM10 bit in the PM1 register to “1” (block A enabled, CS2 area at
addresses 10000h to 26FFFh).
The boot ROM area is located at the same addresses as the user ROM area. It can only be rewritten in parallel I/O
mode (refer to
22.1.1 Boot Mode
). A program in the boot ROM area is executed after a hardware reset occurs
while an “H” signal is applied to the CNVSS and P5_0 pins and an “L” signal is applied to the P5_5 pin (refer to
22.1.1 Boot Mode
). A program in the user ROM area is executed after a hardware reset occurs while an “L” signal
is applied to the CNVSS pin. However, the boot ROM area cannot be read.
Figure 22.1
Flash Memory Block Diagram
00FFFFh
Block A : 4 Kbytes
00F000h
4 Kbytes
0FF000h
0FFFFFh
Boot ROM area
NOTES:
1. The boot ROM area can only be rewritten in parallel input/output mode.
2. To specify a block, use an even address in that block.
3. Shown here is a block diagram during single-chip mode.
4. Block A can be made usable by setting the PM10 bit in the PM1 register to “1” (block A enabled, CS2 area allocated at addresses 10000h to 26FFFh).
Block A cannot be erased by the Erase All Unlocked Block command. Use the Block Erase command to erase it.
0F0000h
Block 0 to Block 5
(32+8+8+8+4+4) Kbytes
0E0000h
Block 6 : 64 Kbytes
0EFFFFh
0D0000h
Block 7 : 64 Kbytes
0DFFFFh
0C0000h
Block 8 : 64 Kbytes
0CFFFFh
0B0000h
Block 9 : 64 Kbytes
0BFFFFh
0A0000h
Block 10 : 64 Kbytes
0AFFFFh
0FFFFFh
0FF000h
0FFFFFh
Block 0 : 4 Kbytes
Block 1 : 4 Kbytes
Block 2 : 8 Kbytes
0FE000h
0FEFFFh
0FC000h
0FDFFFh
Block 3 : 8 Kbytes
0FA000h
0FBFFFh
Block 4 : 8 Kbytes
0F8000h
0F9FFFh
Block 5 : 32 Kbytes
0F0000
h
0F7FFFh
User ROM area
090000h
Block 11 : 64 Kbytes
09FFFFh
080000h
Block 12 : 64 Kbytes
08FFFFh
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655