Renesas M16C/6NK Hardware Manual page 281

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
ROM Code Protect Control Address
b7
b6
b5
b4
b3
b2
1 1
1
1
NOTES:
1. The ROMCP address is set to "FFh" when a block, including the ROMCP address, is erased.
2. When the ROM code protection is active by the ROMCP1 bit setting, the flash memory is protected against
reading or rewriting in parallel I/O mode.
3. Set the bit 5 to bit 0 to "111111b" when 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".
4. To make the ROM code protection inactive, erase a block including the ROMCP address in CPU rewrite
mode, standard serial I/O mode or CAN I/O mode.
5. When a value of the ROMCPaddress is "00h" or "FFh", the ROM code protect function is disabled.
Figure 21.2 ROMCP Register
0FFFDFh to 0FFFDCh
0FFFE3h to 0FFFE0h
0FFFE7h to 0FFFE4h
0FFFEBh to 0FFFE8h
0FFFEFh to 0FFFECh
0FFFF3h to 0FFFF0h
0FFFF7h to 0FFFF4h
0FFFFBh to 0FFFF8h
0FFFFFh to 0FFFFCh
Figure 21.3 Address for ID Code Stored
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
b1
b0
Symbol
1 1
ROMCP
Bit Symbol
-
Reserved Bit
(b5-b0)
ROM Code Protect Level 1
ROMCP1
Set Bit
Address
ID1
ID2
ID3
ID4
ID5
ID6
ID7
ROMCP
page 263 of 378
(5)
Address
Value when Shipped
0FFFFFh
Bit Name
Set to "1"
b7 b6
0 0 :
0 1 :
(1) (2) (3) (4)
1 0 :
1 1 : Protect disabled
Undefined instruction vector
Overflow vector
BRK instruction vector
Address match vector
Single step vector
Oscillation stop and re-oscillation detection/Watchdog timer vector
DBC vector
NMI vector
Reset vector
4 bytes
21. Flash Memory Version
(1)
FFh
Function
Protect enabled
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents