PIC Programming Hints

From doityourselfchristmas.com
Revision as of 02:32, 7 November 2007 by Phil Short (talk | contribs) (New page: ==P16F688.inc Line 182 Error== Some versions of MPLAB have an error on line 182 of the file p16f688.inc. If you encounter the error message: Error[111] C:\PROGRAM FILES\MICROCHIP\MPASM ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

P16F688.inc Line 182 Error

Some versions of MPLAB have an error on line 182 of the file p16f688.inc. If you encounter the error message:

Error[111] C:\PROGRAM FILES\MICROCHIP\MPASM SUITE\P16F688.INC 182 : Missing symbol

then you will need to change the p16f688.inc file.

Use a text editor (notepad should work just fine) to open the file (making a backup would be a good idea), and remove the extraneous symbol at the beginning of line 182 of the file. Save the file, and you should be on your way.

PIC16F688 programming adaptor for PicKit1/PicKit2

It is possible to purchase a PicKit1 or PicKit2 programmer from Microchip that does not include a programming socket. In order to use these to program the PIC16F688 that is used with Renard, it is helpful to build a socket.

Here is an example of a socket adaptor for programming the PIC16F688 (it works with some other PICS as well, such as the PIC12F629, PIC12F675, PIC12F615, etc). It was built using a pin-strip header, a 14-pin socket and a perf board from Radio Shack. Here is the netlist for this adapter (ignore the resistors in the photo below, they were put there for measuring current, and are not needed):

Pin 1 of Connector - unused
Pin 2 of Connector - Pin 12 of socket
Pin 3 of Connector - Pin 13 of socket
Pin 4 of Connector (GND) - Pin 14 of socket
Pin 5 of Connector (VCC) - Pin 1 of socket
Pin 6 of Connector (VPP) - Pin 4 of socket