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
16F1825 - ICSP
Moderator: Benj
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
16F1825 - ICSP
- Attachments
-
- 16F1825 TEST PROGRAM.fcf
- (8.5 KiB) Downloaded 259 times
-
- ICSP PICKIT2 & 3 CONNECTIONS.pdf
- (56.77 KiB) Downloaded 333 times
-
- 16F1825 ICSP SCH.JPG (15.81 KiB) Viewed 4272 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: 16F1825 - ICSP
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: 16F1825 - ICSP
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
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
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: 16F1825 - ICSP
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.
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.
Martin
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Re: 16F1825 - ICSP
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
Thanks again....John