PICkit2 is a common development tool which is being used to load program into famous microcontroller, PIC. It is good to know Cytron’s UIC00B is compatible with PICkit2, and I would like to show some tips and ticks to load program into new model of PIC.
Just a brief about UIC00B. Basically it is compatible with PICkit2 from Microchip, you can integrate it with MPLAB IDE, MPLAB X IDE, and there is also standalone programmer software, PICkit2 Programmer. Due to low cost, UIC00B has gain its position for hobbyist, student, researcher and even engineer that uses PIC microcontroller for development. As we know, Microchip always introduce new model of PIC microcontroller from time to time. So some might want to load program to new model of PIC microcontroller and you might not be able to do so if you did not update the device file 🙂 An example of new PIC microcontroller is PIC16F1933.
Not all existing and new PIC micrcontroller can be supported by UIC00B or PICkit2, to get the latest device support list, check it out here, please utilize the search function. Put in the PIC model and search the page. Only if the PIC model is listed in that page, only you can download program into the PIC using PICkit 2 or UIC00B. Else, please don’t waste your time reading this article 🙂
If the PIC model you wanted to program is in the page, please continue with this article, we will show you the step to update PICkit 2 🙂
- The new PIC model that you want to load program too.
• PICKIT 2
Upgrade the PICKit2 device file to enable UIC00B to program new PIC model
When you use the new model of PIC microcontroller, try to detect the PIC using the usual method you load program, using SK40C, SK28A, SK18B, UIC-S or your own connection. I am using UIC-S for ease of explanation. Open up PICkit2 Programmer program and it should automatically detect UIC00B and further detect the PIC microcontroller connected. If you get “No Device Found”, Congratulation! More work is needed 🙂 This is the purpose of this sharing.
Here, I am trying to load program into PIC16F1933 which is new PIC microcontroller model from Microchip. As mentioned, I am using UIC-S to ease the interface. Opening PICkit 2 Programmer GUI shows that the PIC is not found. Yet, checking the PICkit 2 device support list, PIC16F1933 is listed!! Good! At least I know it is supported. Now, what should I do?
* Please take note: UIC-S is designed to support 8-bit PIC microcontroller, 18-pin, 28-pin and 40-pin PDIP package only. It does not support 16-bit and 32-bit PIC microcontroller such as PIC24F, 24H, dsPIC30F, dsPIC33F and PIC32. But the steps in this article does not limited to 8-bit PIC microcontroller.
Upgrade PICKit2 Device file:
Please go to PICkit 2 site.
Download the circle part file name Device File 1.62.14 of click HERE to download.
Currently, if you download the file, it is named as “PK2DFUpdate-1-62-14.zip”. It will changed from time to time as Microchip release new device file.
Open the folder and extract the zip file, it will show it dat extension.
Copy and replace the existing PK2DeviceFile.dat
Copy the new PK2DeviceFile.dat file, search for old/existing PK2DeviceFile.dat, it should be located at C:\Program Files\Microchip\PICkit2 v2\
This directory is default installation directory.
Paste the new file and you will be asked whether to replace the existing file, please select yes.
After overwrite is completed, please close the PICkit 2 Programmer Software and and reopen again. Leave the hardware connection untouched.
Now, you should be able to see the PIC16F1933 like below picture.
Now, you should be able to load program to the new model of PIC microcontroller. Good luck 🙂
IF YOU FEEL THE ABOVE METHOD IS TOO LONG…. HERE ARE THE SUMMARY
1. Check compatibility of the PICKit2 with you chip use at PICKit2 SUPPORT LIST.
2. DOWNLOAD THE DAT FILE HERE
3. OVERWRITE IT AT YOU PICkit2 INSTALLED PLACES
- Please feel free to backup the original file to overwrite back if any unwanted incident happen . Else re-install if error occur.
If you have problem, please feel free to discuss it in our technical forum.