m. How to program PIC18F24J50 or PIC18F26J50 microcontroller with PICkit 3 programmer/debugger?

QUESTION:

Where can I download a hex-file from your website?

And can I program the PIC18F24J50 with the PICkit 3 programmer/debugger?

ANSWER:

Go to https://sites.google.com/site/pcusbprojects/6-downloads and download file "PIC18F24J50 firmware v2.6.4 - all subversions.zip" (If you are going to program PIC18F26J50, download "PIC18F26J50 firmware v2.5 - all subversions.zip") and unzip it. There are a number of hex files, each for a different clock source. Choose the one that best suits your needs. For detailed information read https://sites.google.com/site/pcusbprojects/5-custom-projects/a-how-to-start-programming-pic18f24j50.

Yes, you can use PICkit3 to program PIC18F24J50 microcontroller. You need just an appropriate programming header, or Velleman K8055-1 or K8055N-2 experiment board (see https://sites.google.com/site/pcusbprojects/4-velleman-experiment-board-k8055-pic-replacement/p-sk9-connector-on-velleman-k8055n-board-is-pickit-2-and-pickit-3-ready). If you intend to build a programming header instead, use a PIC18F24J50 basic circuit as a raw model (https://sites.google.com/site/pcusbprojects/5-custom-projects/basic-circuit-for-pic18f24j50-to-work-over-usb). You can omit crystal resonator (crystal and two resistors), but you have to connect MCLR (must also be connected to +3.3 V via 4.7 k Ohm resistor) and PGD and PGC pins to the PICkit3. Don't forget to connect Vss to GND (ground) and Vdd to +3.3 V. The programming header schematics are here. Only the pins are different. It is also not a bad idea to add a 100 nF ceramic capacitor between Vdd and Vss.

NOTE: Use the latest MPLAB software from Microchip website to program a HEX file with PICkit3, in particular MPLAB IPE application. Connect PICkit3 to the microcontroller programming header, load a HEX file and program it.

Example:If you are going to upgrade PIC18F24J50 firmware on K8055N-2 experiment board (with original 4 MHz crystal oscillator), use “PIC18F24J50 firmware v2.5 (4 MHz) for K8055 adapter.hex” from “PIC18F24J50 firmware v2.5 - all subversions.zip” file.

ALSO READ:

- PC USB Projects Programming Guide

- PICkit 3 header for PIC18F2xJ50 programming