![Intel 8XC196NT User Manual Download Page 368](http://html1.mh-extra.com/html/intel/8xc196nt/8xc196nt_user-manual_2072210368.webp)
15-5
PROGRAMMING THE NONVOLATILE MEMORY
These protection levels are provided by the PCCB0 lock bits, the CCB0 lock bits, and the internal
security key (Table 15-3). When entering programming modes, the reset sequence loads the
PCCBs into the chip configuration registers. It also loads CCB0 into internal RAM to provide an
additional level of security.
You can program the CCBs using any of the programming methods, but only slave programming
mode permits access to the PCCBs, and only slave and auto programming allow you to program
the internal security key.
If you want to prohibit all programming, clear both PCCB0 lock bits. If these bits are cleared,
they prevent the device from entering any programming mode.
If you want to prevent programming, but allow ROM dumps, leave the PCCB0 read-protection
bit (PCCB0.7) unprogrammed and clear the PCCB0 write-protection lock bit (PCCB0.6). To pro-
tect against unauthorized reads, program an internal security key. The ROM-dump mode com-
pares the internal security key location with an externally supplied security key regardless of the
CCB0 lock bits. If the security keys match, the routine continues; otherwise, the device enters an
endless internal loop.
If you want to allow slave and auto programming as well as ROM dumps, leave both PCCB0 lock
bits unprogrammed. To protect against unauthorized programming, clear the CCB0 lock bits and
program an internal security key. After the device enters either slave or auto programming mode,
the corresponding test ROM routine reads the CCB0 lock bits. If either CCB0 lock bit is enabled,
the routine compares the internal security key location with an externally supplied security key.
If the security keys match, the routine continues; otherwise, the device enters an endless internal
loop.
Table 15-3. Memory Protection Options for Programming Modes
LOC1
(CCR0.7)
LOC0
(CCR0.6)
Security Key
Programmed
?
Protection Status
PCCB
CCB
PCCB
CCB
1
1
1
1
No
No protection. All programming modes allowed.
1
X
0
X
Yes
All programming disabled. ROM-dump permitted with
matching security key.
X
X
X
X
Yes
Serial programming disabled.
1
0
1
0
Yes
Serial programming disabled. Auto and slave
programming permitted with matching security key.
0
X
0
X
X
All programming unconditionally disabled.
Summary of Contents for 8XC196NT
Page 1: ...8XC196NT Microcontroller User s Manual...
Page 2: ...8XC196NT Microcontroller User s Manual June 1995 Order Number 272317 003...
Page 22: ...1 Guide to This Manual...
Page 23: ......
Page 35: ......
Page 36: ...2 Architectural Overview...
Page 37: ......
Page 49: ......
Page 50: ...3 Programming Considerations...
Page 51: ......
Page 66: ...4 Memory Partitions...
Page 67: ......
Page 104: ...5 Standard and PTS Interrupts...
Page 105: ......
Page 147: ......
Page 148: ...6 I O Ports...
Page 149: ......
Page 176: ...7 Serial I O SIO Port...
Page 177: ......
Page 194: ...8 Synchronous Serial I O SSIO Port...
Page 195: ......
Page 211: ......
Page 212: ...9 Slave Port...
Page 213: ......
Page 231: ......
Page 232: ...10 Event Processor Array EPA...
Page 233: ......
Page 270: ...11 Analog to digital Converter...
Page 271: ......
Page 291: ......
Page 292: ...12 Minimum Hardware Considerations...
Page 293: ......
Page 306: ...13 Special Operating Modes...
Page 307: ......
Page 317: ......
Page 318: ...14 Interfacing with External Memory...
Page 319: ......
Page 362: ...15 Programming the Nonvolatile Memory...
Page 363: ......
Page 408: ...A Instruction Set Reference...
Page 409: ......
Page 476: ...B Signal Descriptions...
Page 477: ......
Page 493: ......
Page 494: ...C Registers...
Page 495: ......
Page 565: ......
Page 566: ...Glossary...
Page 567: ......
Page 580: ...Index...
Page 581: ......
Page 597: ......