Classic PIC Programmer

Description:This is my own version of the classic PIC 16C84/16F84 programmer. The design is originally by David Tait. I've made a few changes, redrawn the schematic and done a board layout. All the files
you will need are linked below, including software you'll need to operate it. The software is not by me, I'm just including it for your convenience, and you should follow any usage requests the authors have made.

Application:PICs are small microprocessors containing RAM, ROM, and some peripherals. Almost no other parts are required to make a complete “embedded system”. They are readily available and well
supported by the manufacturer, third party developers, and most importantly, users. This has led to their immense popularity.

Assembly:The PC board design is fairly straightforward and can be made by laser printing to special paper or a
page from TIME magazine, then ironing the image onto copper-clad board, then etching with ferric chloride. There are a few jumper wires. The power source needs to be at least 15 volts. A 12 volt
DC adapter usually produces about 17 volts, so that's a good choice. Two 9-volt batteries in series will work too. Solder directly to the PC board or use a connector that mates with your power
source. Pay attention to the direction of the voltage regulators because the plastic regulators are backward from the tab type. Substitute Japanese or European generic equivalents for the transistors
and diodes, but remember that the pinouts will be different. A right angle PC mount DB-25M connector is specified, but a conventional solder-cup DB-25M connector works, see the picture how I did it.

Operation:The programmer connects to the parallel printer port of your computer and requires external power. If you want to program a PIC you'll have a hex file created by your assembler or created by
someone else(see my propeller clock). You will also need to drive the programmer with some
software. Here are programs that run under DOS and Windows. Linux software for Intel-based computers is available elsewhere. Macintoshes do not have parallel ports and can't use this
programmer. Do not insert the PIC to be programmed until you have power applied and have run the software, and the programming LED is not lit. The DOS software requires command line
switches for fuse settings(unless in the chip's hex file)and also the environmental variable "set ppsetup=3" to be typed before running the program. The Windows software requires the driver
"dtait.drv" to be in the \windows\system directory and also the line "PINAPI=DTAIT.DRV" added to the system.ini file. Tell the software you have 7407 chip and PNP transistors. These details are
explained in the text files included with the software.

The Files:Parts list "f84pgm.txt".Schematic in gif format(not to scale) "f84pgmsc.gif".
Schematic in pdf format "f84pgmsc.pdf".Stuffing diagram in gif format(not to scale) "f84pgmst.gif".
Stuffing diagram in pdf format "f84pgmst.pdf".Copper layout in gif format(not to scale) "f84pgml2.gif".
Copper layout in pdf format "f84pgml2.pdf", remember to uncheck "fit to page".DOS software by David Tait "pic84v05.zip".
Windows software v1.03 by Silicon Studio "picser.zip".Please note:
the PC board layout has been updated January 29, 2002 to give more space between pins and traces around the two transistors, and adding R11, required for programming 16F628 and others.

Programming newer PICs: The whole “F” series can be programmed. You need to use newer software, like this cool software.
The PIC16F627 and PIC16F628 are 18 pin devices and fit right in the socket, but you must make a ground connection to pin 10 to prevent LVP programming, a new feature this programmer does not
use. Some people suggest using a 10K resistor to ground, if you are doing in-circuit programming that probably makes sense. Programming the bigger PICs, including the PIC16F872 through
16F877 requires fitting the correct(28 or 40 pin) socket and wiring the pins to the corresponding function. Remember to ground the LVP pin on these, too. The bigger PICs also have extra power
and ground pins. These must all be used.You must select the port your computer is using(usually 0378) and the type of programmer
(P16PRO) and the type of buffers the programmer uses (non-inverting). The software is beta, but I have tested it and can testify it working on the 16F84 and 16F628 I tried. It only programs locations
used in the hex file, so it is very fast. If your program is 250 bytes, only 250 bytes get programmed, but when I used my PicstartPlus to verify the chips I tried, it would show a verify error unless I
blanked the chip first, although the chip functioned fine. Leaving those unused areas in the previously programmed state shouldn’t be a problem.
Propic2 keeps the power to the chip on while idle. This can be useful for “burn and crash” in-circuit programming. You’ll see the LED is lit. I don’t like to insert or remove the PIC when power is
present, so I pull the power cord before I insert or remove the PIC.propic2 software, in case the above link is broken.

Terms of use:The hardware is released into the public domain. Use of propic2, pic84v05 and picser subject to terms set forth by their authors.

Warranty:None.

Frequently Asked Questions:

Q:

I thought a “programmer” was a person, what’s this circuit really do?

A:

A person writes a program in assembly language, C, Basic etc, and uses a compiler or assembler program to convert it into a hex file. Then this PIC programmer downloads the hex file into the PIC where
their program runs.

Q:

Do you have the latest codes for EuroSat or Playstation?

A:

No, and I don’t know how a PIC is used for that. I’m not even interested.

Q:

I get verify errors at location 000.

A:

You probably have the software initialized for the wrong polarity. I suggested a 7407 chip, it’s non-inverting, but a 7406 chip could also be used, and the software may think that’s what you used and set
itself to that type of inverting buffer.

Q:

Is in-circuit programming possible with this programmer?

A:

Yes, this is a good design for in-circuit programming. There are lots of issues related to in-circuit programming, mostly related to the PIC being in a circuit while you try to program it, and I suggest
you read as much as possible on the subject. Perhaps someday I will dedicate a web page to it.