| ICSP PIC Programming and DIY Programmers Hardware test. |
|
Design For DIY Programmer Hardware Tester A working ICSP arrangement for DIY USB PIC Programmers. Notice that the schotty
diode allows the DIY Programmer to feed its VCC without its VCC being shorted
to the PIC's
The reason for this schematic is to clarify how ICSP is driven by a DIY programmer. The PIC programmer itself is designed to provide only enough VPP and VDD to program the device, nothing else. With the schottky diode, the VDD load of the product itself is ignored by the programmer while programming. The cap across the chip is very important, and can be as low as 0.01uF and as high as 0.1uF - but it can't be higher, otherwise the rise time needed to enter programming mode cannot be achieved. The other reason is the way PICs must enter
programming mode. Some need to have VCC applied first, while others need
to have VPP applied first. That two-step process, together with PGD and
PGC at gnd, causes the PIC to enter
Bob Axtell
Comments from the PIC Programmer Forum about ICSP Programming. PGC, PGD, and GND pins of the PIC have to be connected to the programmer. The PGC and PGD pins need to be isolated from whatever is happening on the PCB when there PIC is. The GND can be connected, no problem. The VDD pin of the PIC has to be connected to the programmer, and NOT connected to the VCC of the PCB, because the programmer does NOT have the power to power your PCB as well as the PIC. The normal way to isolate the VDD of the PIC and the VCC of the PCB is either with a schottky diode (or a jumper or switch). Never allow the PCB VCC to connect to the programmer, it won't work (and MIGHT be damaged). Finally, the MCLR\ pin must be connected to the programmer, and not connected to the PCB- except that a small resistor (27K-33K is OK) can connect between the CHIP VDD and the CHIP MCLR\. This is used as an extra pullup. Microchip likes to isolate the MCLR signal with a diode because it believes that most programmers cannot handle this small amount applied to the VDD line when the MCLR is held at 13V. In fact, all DIY programmers are designed to handle that small bias without any problem. Its a lot of cost for very little return- so we don't recommend it when using OUR programmers. That's all there is.
Design For DIY Programmer Hardware Tester
This PDF schematic shows diagrams for testing all of DIY's PIC Programmers. User instructions are enclosed. Not stated is the obvious: if NONE of the leds wink, there is a communication problem to the programmer, USB drivers, cable etc, although the internal PIC chip could also be inserted backwards or be otherwise defective. Bob Axtell
Latest News March 30, 2005. Statement on our PIC Programmers The PIC10FXXX series of PIC's do not work
with the current DIY programmers.The correction is a firmware problem,
and is not easily correctible. While I DID find a problem with PIC10FXXX
in the CHIPINFO.CID, when I breadboarded the part, it still does NOT work.
Bob
Axtell.
HISTORY
UPDATES & STATUS
The new programmer will be the first to use the "Strategies" method, as outlined by suggestions earlier this month on the Forum. The K185 will be capable of instantly downloading a "strategy" not contained in its internal repertoire of "strategies". More about the K185 will be released next month. STRATEGY DEFINED
This method is devised as an answer to MicroChip's release of a plethora of complex programming algorithms. It will allow us the ability to accommodate ANY and ALL changes in the future, since we use ONLY what we need. FUTURE USES STRATEGIES METHOD
NEW PROTOCOL & APPLICATION
FORUM SUPPORT
If you only own ONE DIY programmer, upgrading can be a problem. I am offering firmware programming services for DIY programmer owners. For $3 USD + shipping I will ship a programmed PIC16F648A for your programmer. The F648A is an enhanced 628A, and can be used on ALL DIY programmers. The 648A will allow faster programming when Protocol 19 is released. There is no profit made here, it is done
only as a convenience for DIY customers.
Shipping is $1.50 USD for USA and territories, and normally $2.50 USD elsewhere in the world. Note: we cannot legally ship to some countries. To obtain a programmed device, simply send money in USD funds to the paypal user ID of baxtell@comcast.net . You MUST include a valid mailing address, the HEX file needed, the PROTOCOL needed (normally 18 or the new 19), and an email address for advising shipment info. If you are in the USA, the total is $4.50 USD, elsewhere $5.50 USD. If you are unsure which file you need, simply identify the KIT number and we will automatically install the correct hex file for the protocol requested. REMINDER: when you use new firmware, you must install a MATCHING MicroPro. --Bob Axtell
|