Re: How do you use ICSP to program a PIC?
Hello,
I have the following USB programmer, and plan on programming with MPLAB C18
https://www.canakit.com/Media/Manuals/UK1301.pdf
The PIC in question is a 18F4610. I'm confused about the "LVP" mode--the programmer isn't intended to program low voltage, but again I'm unsure of how high the VIHH on my programmer goes, so maybe i do need LVP mode? I'm away from my stuff right now but I still would like some input before I go and start voltmeter-ing. How does one hookup this simple, cheap, programmer with my PIC (18F4610)
Thanks in advance.
Hi,
The link you provides seems to show a Pickit2 Clone using Microchips Pickit2 software - thats good.
A 18F4610 is normally programmed with the high voltage method.
You do not clearly state how you intend to program your 4610 - for the reasons I will mention.
The 'ICSP' socket on that programmer will just be the same 5 lines programming lines as connected to that ZIF socket.
You have two choices of how to use that 'ICSP' socket.
To program the chip directly out of circuit.
To program the chip when it is in a functioning circuit board - this is proper 'ICSP' in circuit serial programming.
If you are doing the simple option of just programmng with the chip in a stand alone 40 pin socket then you just need to connect the five icsp wires.
Its is important that you connect VSS and VDD to both pairs of VSS and VDD on the Pic chip
Mlcre and PGC and PGD go to pins 1, 39 and 40 respectivley.
Ensuure the wires from the programmer to your 40 pin socket are a short as possible to avoid write errors , suggest less than 150mm
If you want to do genuine ICSP on a users circuit board then see the Pickit2 User manual thats part of the PK2 program.
It details how you can do that with the appropriate circuity; though suggest you leave that until you have got the simple standalone method working ok.