Re: Low pin count PIC debugging
☼ Best Answerby LuckyX 2016/11/18 21:11:27
Many PIC devices with small number of pins, ( 8-pin, 14-pin, 20-pin) have no hardware for debugging on the chip.
There are several different ways around:
Use the Simulator in MPLAB, there is no money required, but the simulator is a learning experience in itself,
and it cannot simulate all features exactly.
You will need a programmer tool when you want to run the program on the actual PIC16,
PICkit 3 if you have to buy something, PICkit 2 if you have one already
Use a different chip in the same family, to learn until you do not need hardware debugging.
I tried to look, but cannot find any device in the 16F5xx family, that can be debugged without a header.
Use a different chip with debugging properties in the chip to learn until you are able to create the software you want. When you have got this far, you may well find that bothering with the obsolete chip do not help much.
There are suggestions in messages above.
Use a Debug header for a chip without hardware debugging in the chip.
To be able to debug programs in these chips, there have been made special devices for these chips,
which may actually be a larger chip of the same family, that have been modified to act as the small device with debugging features, and with extra pins.
In any case, you will need a Programmer/ Debugger tool for development, if you do not have already.
PICkit 3 may be used with All Microchip microcontroller devices (that may be programmed).
PICkit 3 may be used with a PIC device on a solderless breadboard, there are tutorials around on the web.
Or, you may use a development board together with PICkit 3:
PICkit Low Pin Count DM164130-9, may be used with any PIC16 or PIC18 in 8-pin, 14-pin or 20-pin DIP.
There are some development boards with a programmer/ debugger in a separate chip on the same board.
Curiosity Development Board, DM164137, is the current offering from Microchip, it dead cheap,
20$ from Microchip Direct, is less than any PICkit 3, debugging header, or adapter cable alone.
It has a PKOB (Pic Kit On Board) in a chip on the same board.