*.COD file format why I want it
John Payson email (remove spam text)
> I have written a PIC programming program in C to work with a home
> made PIC programmer. The programmer I built is similar to several
> described in magazines like Nuts & Volts, and Electronics Now. The
> difference is that mine provides pins to set Vdd to the Max and Min
> voltages for testing (the book said to do this when programming). Most
> kits don't provide for this, but I find it makes a difference (testing at
> Vdd Min (4.0V) shows if the chip has really been erased). My program
> talks to the programmer through the parallel printer port.
The programmer I designed has a somewhat similar feature, but I implemented
it a little bit differently: I have two power modes:
 Low-power; current-limitted to about 15mA [total]
 High-power; current-limitted to about 150mA [total]
There is also a load pot across VDD. By adjusting this pot, 15mA may made
to yield any voltage from about 2V to about 4.5V.
Then, when I'm going to program, I start out by setting the device to "low
power" and do an "anything there" check. If nothing is there, the programmer
shuts down immediately. Otherwise, it does a blank check. If that passes,
then it turns on "high power", programs the chip, switches to "low power",
and verifies it. Finally (if needed) it switches to high-power again and
burns the config fuses.
On the occasions where I have incorrectly inserted a part (or ISP cable)
the current limittng and automatic shutdown have been real life-savers.
Those features weren't hard to add, but they have saved me from slagging
a few chips.
and should IMHO be a part of any "serious" programmer.
In reply to: <Pine.GSO.3.96.970809090958.6569A-100000@winc0> from "Fred Thompson" at Aug 9, 97 09:19:44 am
See also: www.piclist.com/techref/index.htm?key=cod+file+format
You must be a member of the
piclist mailing list
(not only a www.piclist.com member) to post to the