Pic14000 Eprom Mem Prog
Pic14000 Eprom Mem Prog
RA1/AN1 •1 28 RA2/AN2
RA0/AN0 2 27 RA3/AN3
RD3/REFB 3 26 RD4/AN4
1.0 PROGRAMMING THE RD2/CMPB 4 25 RD5/AN5
PIC14000
RD1/SDAB 5 24 RD6/AN6
PIC14C000 RD0/SCLB 6 23 RD7/AN7
OSC2/CLKOUT 7 22 CDAC
The PIC14C000 can be programmed using a serial OSC1/PBTN 8 21 SUM
method. In serial mode the PIC14C000 can be pro- VDD 9 20 VSS
VREG 10 19 RC0/REFA
grammed while in the users system. This allows for RC7/SDAA 11 18 RC1/CMPA
increased design flexibility. This programming specifi- RC6/SCLA 12 17 RC2
16
cation applies to PIC14C000 devices in all packages. RC5 13 RC3/T0CKI
MCLR/VPP 14 15 RC4
0
Program
0FBF
2000 ID Location 0FC0
Calibration
0FFF
2001 ID Location
2002 ID Location
2003 ID Location
Reserved
2004 Reserved
2005 Reserved
2006 Reserved
Test
20FF
Reserved
3FFF
2.2 Program/Verify Mode The sequence that enters the device into the program-
ming/verify mode places all other logic into the reset
The program/verify mode is entered by holding pins state (the MCLR pin was initially at VIL). This means
RC6 and RC7 low while raising MCLR pin from VIL to that all I/O are in the reset state (High impedance
VIHH (high voltage). Once in this mode the user pro- inputs).
gram memory and the configuration memory can be
accessed and programmed in serial fashion. The mode Note: The MCLR pin should be raised as quickly
of operation is serial, and the memory that is accessed as possible from VIL to VIHH. This is to
is the user program memory. RC6 and RC7 are both ensure that the device does not have the
Schmitt Trigger inputs in this mode. PC incremented while in valid operation
range.
Start
N=0
No
Yes Report Programming
Program Cycle N > 25
Failure
Read Data
Command N=N+1 N=#
of Program Cycles
No
Increment Address Data Correct?
Command
Yes
Apply 3N Additional
Program Cycles
Program Cycle
Load Data
No
All Locations Done? Command
Yes
Verify all Locations Begin Programming
@ VDD min.* Command
VPP = VIHH2
Wait 100 µs
No Report Verify
Data Correct?
@ VDD min. Error
Yes End Programming
Verify all Locations Command
@ VDD max.
VPP = VIHH2
No Report Verify
Data Correct?
@ VDD max. Error
Yes
Done
Start
Load Configuration
Command
N=0
Increment Address No
Command N=N+1 N=# Data Correct?
of Program Cycles
Yes
No
Address = 2004 No
N > 25
Yes
Yes
Increment Address
Command Report ID Apply 3N
Configuration Error Program Cycles
Increment Address
Command
No
Data Correct?
Yes
CPP<1:0>
11: All Unprotected
10: N/A
01: N/A
00: All Protected
bit 1,6: F Internal trim, factory programmed. DO NOT CHANGE! Program as ‘1’. Note 1.
bit 3: PWRTE, Power Up Timer Enable Bit
0 = Power up timer enabled
1 = Power up timer disabled (unprogrammed)
bit 2: WDTE, WDT Enable Bit
0 = WDT disabled
1 = WDT enabled (unprogrammed)
bit 0: FOSC<1:0>, Oscillator Selection Bit
0: HS oscillator (crystal/resonator)
1: Internal RC oscillator (unprogrammed)
To allow portability of code, the programmer is required to read the configuration word and ID locations from the hex
file when loading the hex file. If configuration word information was not present in the hex file then a simple warning
message may be issued. Similarly, while saving a hex file, configuration word and ID information must be included.
An option to not include this information may be provided.
Microchip Technology Inc. feels strongly that this feature is important for the benefit of the end customer.
0x25E6 at
Code Blank
Checksum* 0 and max
Protect Value
address
Parameter
Sym. Characteristic Min. Typ. Max. Units Conditions
No.
General
PD1 VDDP Supply voltage during programming 4.75 5.0 5.25 V
PD2 IDDP Supply current (from VDD) – – 20 mA
during programming
PD3 VDDV Supply voltage during verify VDDmin VDDmax V Note 1
PD4 VIHH1 Voltage on MCLR/VPP during 12.75 – 13.25 V Note 2
programming
PD5 VIHH2 Voltage on MCLR/VPP during verify VDD + 4.0 13.5
PD6 IPP Programming supply current (from – – 50 mA
VPP)
PD9 VIH1 (RC6, RC7) input high level 0.8 VDD – – V Schmitt Trigger input
PD8 VIL1 (RC6, RC7) input low level 0.2 VDD – – V Schmitt Trigger input
}
}
}
}
100ns 100ns
min. min.
Program/Verify Test Mode
Reset
VIHH
MCLR/VPP 100ns P6
P8
1 2 3 4 5 6 1µs min. 1 2 3 4 5 15
RC6
(CLOCK)
100ns P7
RC7 0 0 1 0 0 0
(DATA) P5
P4
P3 1µs min.
}
}
100ns
min. RC7
RC7 = output input
RC7
0 1 1 0 0 0 0 0
(DATA)
P5
P3 P4 1µs min.
}
}
100ns
min
Program/Verify Test Mode
Reset
• The PICmicro family meets the specifications contained in the Microchip Data Sheet.
• Microchip believes that its family of PICmicro microcontrollers is one of the most secure products of its kind on the market today,
when used in the intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowl-
edge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data sheet.
The person doing so may be engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable”.
• Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of
our product.
If you have any further questions about this matter, please contact the local sales office nearest to you.
03/01/02