please dont rip this site

PIC Microcontroller ICSP: In Circuit Serial Programming

by Joe Watson.

Also:

The ICSP connector is a 6-pin male header, .1 inch spaced. The signals assigned to the pins are as follows:

Pin   Meaning
 1    VPP (also /MCLR)
 2    VDD
 3    VSS  (Gnd)
 4    ICSP Data (aka PGD)
 5    ICSP Clock (aka PGC)
 6    AUX  (aka LVP)

Pin 1 always connects to the microcontroller's /MCLR pin and is fed something around +13 volts during High-Voltage Programming. At one time, this +13 volt line actually powered the chip programming process. According to what I have read, these days it serves only as an indicator that the programming is taking place and the high voltage source for the actual programming process is developed inside the chip from the VDD supply.

Using an internally developed high voltage supply also set the stage for Low-Voltage programming. Not all PICs support this and the 12F675 is one that does not. In those that do, one of the I/O pins is assigned to indicate if the programming is to use the High- or Low-Voltage programming method as these chips are designed to use either. During the programming process, the signal name assigned to the pin is LVP which stands for Low-Voltage Programming.

For example, on the 16F628A, the LVP pin is pin 10. If the LVP pin is held high when the programming mode is entered, the chip is to be programmed using Low-Voltage programming instead of High-Voltage programming. There are other special requirements involving the timing of the application of VDD and the VPP/MCLR signal but the logic state of the LVP pin is important. So what about PIC programmers that use High-Voltage programming? A requirement these days that did not exist before the existence of Low-Voltage Programming is that the LVP pin must be held low during High-Voltage Programming. If the LVP pin is just allowed to float, sometimes High-Voltage Programming fails because the chip assumes that Low-Voltage Programming is intended.

At one time, pin 6 of the ICSP was simply called AUX and was usually not connected to anything. It was just a spare pin. Now that Low-Voltage Programming is an option, pin 6 has often been renamed as LVP and is expected to be connected to whichever pin on the target microcontroller is assigned by Microchip as the LVP pin. If the PIC programmer supports High-Voltage Programming, connecting ICSP Pin 6 in the programmer to ground (perhaps via a 10K resistor) assures that the LVP pin on the target chip will be low during the High-Voltage Programming cycle.

Several simple PIC programmer circuits leave pin 6 open or just omit it altogether.

Archive:


file: /Techref/microchip/icsps.htm, 3KB, , updated: 2013/5/6 18:34, local time: 2024/11/22 17:20,
TOP NEW HELP FIND: 
18.118.144.109:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://sxlist.com/Techref/microchip/icsps.htm"> PIC Microcontroller ICSP: In Circuit Serial Programming</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 

Welcome to sxlist.com!


Site supported by
sales, advertizing,
& kind contributors
just like you!

Please don't rip/copy
(here's why

Copies of the site on CD
are available at minimal cost.
 
Quick, Easy and CHEAP! RCL-1 RS232 Level Converter in a DB9 backshell
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .