DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LC8X View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LC8X
Microchip
Microchip Technology 
PIC16LC8X Datasheet PDF : 117 Pages
First Prev 51 52 53 54 55 56 57 58 59 60 Next Last
PIC16C8X
8.9 Code Protection
The code in the program memory and data EEPROM
memory can be protected by programming the code
protect bit (Figure 8-1, Figure 8-2, and Figure 8-3).
8.9.1 ROM DEVICES
There are two protection configuration bits. One for the
program memory, which is specified as part of the ROM
code submittal. The second for the EEPROM data
memory. When ROM devices complete testing, the
EEPROM data memory code protect configuration bit
will be programmed to the same state as the program
memory code protect configuration bit.
In applications where the device is code protected and
the data EEPROM needs to be programmed before
being placed in the application, the data EEPROM
memory array needs to be erased and then the data
memory code protect disabled. This will allow the
desired data to be programmed into the device. The
sequence to disable the data EEPROM memory
protection is shown in the PIC16C84 Programming
Specification (Literature number DS30189D) in Section
3.1.1.
After programming the data EEPROM memory array,
the data EEPROM memory code protect configuration
bit should be programmed as desired.
8.10 ID Locations
Four memory locations (2000h - 2003h) are designated
as ID locations to store checksum or other code
identification numbers. These locations are not
accessible during normal execution but are readable
and writable only during program/verify. Only the
4 least significant bits of ID location are usable.
For ROM devices, these values are submitted along
with the ROM code.
8.11 In-Circuit Serial Programming
PIC16C8X microcontrollers can be serially
programmed while in the end application circuit. This is
simply done with two lines for clock and data, and three
other lines for power, ground, and the programming
voltage. Customers can manufacture boards with
unprogrammed devices, and then program the
microcontroller just before shipping the product,
allowing the most recent firmware or custom firmware
to be programmed.
The device is placed into a program/verify mode by
holding the RB6 and RB7 pins low, while raising the
MCLR pin from VIL to VIHH (see programming
specification). RB6 becomes the programming clock
and RB7 becomes the programming data. Both RB6
and RB7 are Schmitt Trigger inputs in this mode.
After reset, to place the device into programming/verify
mode, the program counter (PC) points to location 00h.
A 6-bit command is then supplied to the device, 14-bits
of program data is then supplied to or from the device,
using load or read-type instructions. For complete
details of serial programming, please refer to the
PIC16CXX Programming Specifications (Literature
#DS30189).
FIGURE 8-20: TYPICAL IN-SYSTEM SERIAL
PROGRAMMING
CONNECTION
External
Connector
Signals
+5V
0V
VPP
CLK
Data I/O
To Normal
Connections
PIC16CXX
VDD
VSS
MCLR
RB6
RB7
To Normal
Connections
For ROM devices, both the program memory and Data
EEPROM memory may be read, but only the Data
EEPROM memory may be programmed.
DS30081F-page 52
© 1995 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]