Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How do you use ISCP to program a PIC?

Status
Not open for further replies.

PomPom

Junior Member level 3
Joined
Oct 9, 2012
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,522
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.
 
Last edited:

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.
 

Re: How do you use ICSP to program a PIC?

Thank you.

I don't have a 40 pin ZIF, just a breadboard that i'll pop it in. So as it seems, I should be able to just plug in the "5 programming lines". But which 5 is it then? As I understand it:

PIN FROM 'ICSP' PIN TO PIC
1 - vpp/mclr --> MCLR (pin1)
2 - vdd --> both VDD on board (DO I STILL NEED TO SUPPLY THE 5V HERE, OR WILL MY PROGRAMMER SUPPLY IT ALL?)
3 - vss --> both VSS on board
4 - pgd --> pgd (pin 40)
5 - pgc --> pgc (pin 39)
6 - pgm --> no connection

Thanks again


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.
 

Re: How do you use ICSP to program a PIC?

Thank you.

I don't have a 40 pin ZIF, just a breadboard that i'll pop it in. So as it seems, I should be able to just plug in the "5 programming lines". But which 5 is it then? As I understand it:

PIN FROM 'ICSP' PIN TO PIC
1 - vpp/mclr --> MCLR (pin1)
2 - vdd --> both VDD on board (DO I STILL NEED TO SUPPLY THE 5V HERE, OR WILL MY PROGRAMMER SUPPLY IT ALL?)
3 - vss --> both VSS on board
4 - pgd --> pgd (pin 40)
5 - pgc --> pgc (pin 39)
6 - pgm --> no connection

Thanks again



Hi,

I cannot see any schematic for that programmer but normally it should provide the +5v for you.

Pin 1 -5 connections are correct, though pin 6 does not have any 'programmer' functions on the original PK2.

I suspect you can just ignore it, I again suspect it might be an option connection to pin 38 RB5 to pull it low to ensure low voltage programming is not involked, though I have never needed to do that on the hundereds of times I have programmed my 18Fs.

The PK2 program has inbuilt test functions , ' Tools, Troubleshoot ' so you can check all pins are working properly before you insert a chip.

Little tip as you do not have a 40 pin zif ( plenty of cheap ones on ebay) plug your chip into a 40 pin socket, wire up another 40 pin socket to your programmer icsp cable, then you can plug you chip and socket into that socket - so it protects your pic chips pins.
Do the same when fitting it to your actual circuit.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top