M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
Rev.2.41
Jan 10, 2006
Page 274 of 390
REJ09B0185-0241
Figure 22.2
ROMCP Register
Figure 22.3
Address for ID Code Stored
ROM Code Protect Control Address
(5)
Symbol
Address
Factory Setting
ROMCP
0FFFFFh
FFh
(4)
Bit Symbol
Bit Name
Function
RW
NOTES :
1.
2.
3.
4.
5.
ROMCP1
To make the ROM code protection inactive, erase a block including the ROMCP address in standard serial I/O mode
or CPU rew rite mode.
The ROMCP address is set to “FFh” w hen a block, including the ROMCP address, is erased.
ROM Code Protect Level 1 Set
Bit
(1, 2, 3, 4)
RW
When the ROM code protection is active by the ROMCP1 bit setting, the flash memory is protected against reading or
rew riting in parallel I/O mode.
Set the bit 5 to bit 0 to “111111b” w hen the ROMCP1 bit is set to a value other than “11b”.
If the bit 5 to bit 0 are set to values other than “111111b”, the ROM code protection may not become active by setting
the ROMCP1 bit to a value other than “11b”.
1 1 1
Set to “1”
b7 b6 b5 b4
1 1
b2 b1
b7 b6
0 0 :
0 1 : ROM code protection active
1 0 :
1 1 : ROM code protection inactive
When a value of the ROMCP address is “00h” or “FFh”, the ROM code protect function is disabled.
b0
b3
—
(b5-b0)
Reserved Bit
RW
1
Reset vector
Watchdog timer vector
Single step vector
Address match vector
BRK instruction vector
Overflow vector
Undefined instruction vector
ID7
ID6
ID5
ID4
ID3
ID2
ID1
DBC vector
NMI vector
0FFFFFh to 0FFFFCh
0FFFFBh to 0FFFF8h
0FFFF7h to 0FFFF4h
0FFFF3h to 0FFFF0h
0FFFEFh to 0FFFECh
0FFFEBh to 0FFFE8h
0FFFE7h to 0FFFE4h
0FFFE3h to 0FFFE0h
0FFFDFh to 0FFFDCh
4 bytes
Address
ROMCP
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655