This is my PICkit 2 clone design. Its based on a simplified version of
the Microchip PICkit 2 schematic and only supports 5v parts. It works
with all the Microchip software including MPLAB, MPLABX,the PICkit 2 GUI
Programming software and the PICkit 2 command line software.
It can be used with the PICkit 2 GUI Terminal Software and the PICkit 2 GUI Logic Analyzer. Best of all its an all leaded design that you can build in about an hour if you have of the parts.
Because this design is simplified and uses a fixed voltage reference, the programmer voltage cannot be controlled by the PICkit 2 software settings to lower the voltage. It also cannot do the "Vpp First" mode which in rare cases you may need to re-program a PIC that has a very fast internal oscillator and internal MCLR enabled.
Because of the voltage limitation, programming 3v parts like the PIC32, PIC24 and some PIC18F parts that have a J in the part number. But for most of the PIC10F, 12F, 16F and 18F devices, this programmer works great and is a fun project to build that will be useful for a long time.

It can be used with the PICkit 2 GUI Terminal Software and the PICkit 2 GUI Logic Analyzer. Best of all its an all leaded design that you can build in about an hour if you have of the parts.
Because this design is simplified and uses a fixed voltage reference, the programmer voltage cannot be controlled by the PICkit 2 software settings to lower the voltage. It also cannot do the "Vpp First" mode which in rare cases you may need to re-program a PIC that has a very fast internal oscillator and internal MCLR enabled.
Because of the voltage limitation, programming 3v parts like the PIC32, PIC24 and some PIC18F parts that have a J in the part number. But for most of the PIC10F, 12F, 16F and 18F devices, this programmer works great and is a fun project to build that will be useful for a long time.
The screen capture of
the ExpressPCB version of my PICkit 2 clone (I call PK2) is shown above.
Below are the PCB layout and Schematic for the board. They are created
in ExpressPCB so you will need that software to use them. They are slightly different than the pictures above but functionally the same.
Note:
These files are provided free for personal use only. They are not for commercial use. In other words you can't sell boards or a programmer based on this design without my permission.
Note:
These files are provided free for personal use only. They are not for commercial use. In other words you can't sell boards or a programmer based on this design without my permission.
PICkit 2 Manuals
These are the Microchip
manuals for using the PICkit 2. The User Guide covers the basics for
using the PICKit 2 GUI programming software. It also covers the built in
UART Tool for serial communication from the PIC back to the PICkit 2.
The Logic Tool is an additional feature built into the PICkit 2 GUI software. The Logic Tool has its own user manual.
PICkit 2 Software Description Summary
The software for the
PICKit 2 is what makes it useable. There are different
levels of
software to be aware of when building your own PICkit 2. Here is the
list of software I'll cover below. Note: PICkit 2 software below is
written to run in Windows only but there are some versions written for
Linux and Mac but I haven't used them and they aren't as well documented
so I'll stick with Windows only.
All these software releases are listed below. Original Microchip GUI Software
Below are links to the software files you need to build and use and build the PICkit 2 clone programmer.
This is the PICkit 2 GUI
Software that runs independently to control the programming operation.
You just load the .hex file and then press the Write button to send it
to the PICkit 2 and blank PIC MCU. (Windows only)
To the left below is the file to install it and to the right is a picture of the software running.
Original Microchip Command Line Software
This is the Command line V1.20 software you use to control the PICkit 2 from within an IDE or batch file (Windows only).
I use the command line version in the Great Cow Basic compiler IDE and the MCStudio IDE for PICBASIC. This is the official version released by Microchip. It uses its own device file that doesn't support all the latest parts.
Note: Install
this version of pk2cmd to get all the readme files with command line
instructions and then rename the pk2cmd.exe and pk2devicefile.dat to
oldpk2cmd.exe and oldpk2devicefile.dat. Then download the MichaelS
Update below to get the latest devices. The full 8-bit (PIC12F, 16F and
18F) supported by the MichaelS update is furhter down on this page.
PIC18F2550 Firmware for Building your own PICkit 2
This is the firmware you program into the PIC18F2550. (You need a PIC Programmer to load this into the PIC18F2550).
Here is the direct link to the Microchip site: PICkit 2 Firmware V2.32 and here is the direct download (just in-case the link goes bad).
I was asked about the
Configuration settings for the firmware so I posted them below with a
screen shot from the PICkit 2 software. You shouldn't need this though
because the pk2v023200.zip above contains the .hex file that also has
the configuration settings encoded in. So when you load the .hex file
into the PIC programmer, it should automatically load the Configuration
settings. For those that need to do this manually, the settings are
below. (Click on the picture to make it easier to read).
MichaelS Update PK2CMD files
Read more about the v1.21 from this Microchip Forum Post
To install, just delete or rename your existing pk2cmd.exe and pk2devicefile.dat and then copy these to the same directory where those original files were. Everything should work as before but now you will have additional device support. (note: my pk2 design above only supports the 5v parts).
PK2CMD V1.21 PICkit 2 Command Line Interface
Pk2 Device File *8-bit device support shown below
Updated Device File
In addition to everything above, I found this updated device file at this Micro Pascal site.
I've tried it on a few devices and it works and it also has support for even more devices than the MichaelS device file. It claims it supports 678 devices (41 more than the MichaelS version above) including some of the latest PIC16F parts. Device File Editor
I needed to use the
relatively new PIC16F1788 with Great Cow Basic but none of the device
files above supported it. So I successfully used the Device File Editor from
Dougy83 to create my own device file with PIC16F1788 support. I just
modified a PIC16F1784 file with details from the PIC16F1788 programming
specification.
So I recommend you replace all of the device files listed above with this one. Its the latest and greatest that I know of for 8-bit devices. Remember to rename it to just pk2devicefile when you use it with the pk2cmd or the PICkit 2 GUI software.
Device File Editor -
here is the latest device file editor software. I put a copy here just
in case Dougy83 ever takes his down. Its a .exe file that is in .zip
format for safe download.
More Info
Here are the final Microchip Released files for PICkit 2.
Here are the Microchip Archive files which include some of the early PICkit 2 files. 8-Bit Device Support List
This is the list of
devices reported to be supported by the pk2devicefile_1_63_146-4.dat
udated device file above. This will work with any standard PICkit 2
programmer. The PK2 programmer is designed as a 5v programmer. Some of
these devices are 3.3v only (some LF and all the J parts) so those
devices can't be programmed with the PK2 unless you power the device
separately and disconnect the diode D2. Most of these parts can be
programmed with 5v so the PK2 covers the majority.
|
No comments:
Post a Comment