Page 1 of 1

16F1825 - ICSP

Posted: Wed Sep 24, 2014 6:24 am
by JDR04
Hello everyone, I'm hoping somebody can help me out with ICSP of a 16F1825 with PICKIT2

The simulation works fine, it compiles to C and HEX ok. When I try to "burn" the program into the chip I keep getting an error 36, "unable to tranfer the program, cant find the device" message.

From what I understand, I need to connect the Vdd, Vpp,Vss,ICSPDAT and ICSPCLK outputs of the PICKIT2 to the appropiate pins on the 16F1825. I have done this in accordance with the attached schematic but it does not work.

I really would appreciate it if somebody could point out where I have gone wrong.

Many Thanks...John

Re: 16F1825 - ICSP

Posted: Wed Sep 24, 2014 9:35 am
by Benj
Hello,

Your connections look correct to me. How are you programming the PICkit? are you using the PICkit software or are you using the command line options in Flowcode. Either way you will need to specify that the PICkit is supplying power to your chip to allow it to work. Also not 100% on this but the PICkit 2 may not support this device, you might need a PICkit 3 as these support all the newer devices.

Re: 16F1825 - ICSP

Posted: Wed Sep 24, 2014 10:22 am
by JDR04
Hi ben, tahnks for the help. When using the device manual select facility in the PICKIT2 software I see the 16F1825 is not listed. I have however seen on other websites that they are compatable for ICSP? I suppose the best will be to ask Microchip directly. I dont know if you managed to look at the sheet I attached to my original post, it claims to show all the ICSP connections for PICKIT2 and 3 ? Anyway, I'll double check with Microchip and see what they have to say and let you guys know.

I'm using the command line functions in Flowcode to program the chip. Compile to C compile to HEX etc.

How do I specify that the PICKIT2 is to supply power when using FLOWCODE? Or, can I simply use PICKIT2 software and Turn ON Vdd at 5V?

Many Thanks.....John

Re: 16F1825 - ICSP

Posted: Wed Sep 24, 2014 10:24 am
by medelec35
Hi John,
Although not specifically for 16F1825 This thread may help?
Important: Do not connected VPP of programmer directly to VPP of the target device as VPP of Pickit2 is about 12V & Max VPP of 16F1825 is 9V.
I have mentioned in the thread that I use a 10K resistor in series with VPP of programmer an target device.

I have also mentioned about updating pickit 2 operating system which may or may not be required.

Martin

Edit: posted the same time as your latest post so all questions may not be answered.

Re: 16F1825 - ICSP

Posted: Wed Sep 24, 2014 11:58 am
by JDR04
Hi Martin, thanks a lot for that. I'll check it out. Have emailed MICROCHIP for a definitive answer, see what happens.

Thanks again....John