EEVblog Electronics Community Forum

Electronics => Microcontrollers => Topic started by: Pineapple Dan on January 22, 2019, 09:50:18 pm

Title: ICD3 won't program any 16-bit PIC
Post by: Pineapple Dan on January 22, 2019, 09:50:18 pm
8-bit no problem, but I have a 33fj16gs502,  30f3014, 24f16ka302 and none of them will work. I am always faced with this

Connecting to MPLAB ICD 3...

Currently loaded firmware on ICD 3
Firmware Suite Version.....01.54.00
Firmware type..............dsPIC33F/24F/24H

Programmer to target power is enabled - VDD = 3,000000 volts.
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.

I just have the PGEC,PGED, MCLR, Vdd & Vss connected. Had a 10k pullup between the mclr and Vdd as well but no luck. Never tried to program anything other than an 8bit before, am I missing something, could the ICD be shagged?
Title: Re: ICD3 won't program any 16-bit PIC
Post by: NorthGuy on January 22, 2019, 10:40:16 pm
Most of PIC24/dsPIC33 have internal voltage regulators which require a 10 uF capacitor on Vcap. Some may also have a pin which disables/enables the regulator - look at the datasheet for this.
Title: Re: ICD3 won't program any 16-bit PIC
Post by: SiliconWizard on January 22, 2019, 10:53:54 pm
Yes, another pitfall is not to connect the AVDD pin that most of those MCUs have. Just connect it directly to VDD (or through an LC filter, but not necessary just to program the chip). Leaving AVDD floating usually prevents it from operating properly. Got bitten once (didn't leave it floating on purpose, it was a schematic entry mistake) with a PIC24F. Same as you got, the programming tool was unable to access it. Connecting AVDD to VDD instantly solved the issue.

Title: Re: ICD3 won't program any 16-bit PIC
Post by: mikeselectricstuff on January 22, 2019, 10:55:10 pm
Most of PIC24/dsPIC33 have internal voltage regulators which require a 10 uF capacitor on Vcap.
This cap is essential for programming to work
Title: Re: ICD3 won't program any 16-bit PIC
Post by: JPortici on January 23, 2019, 06:57:47 am
If you are unsure of the connections, there is a chapter in the datasheet called "Getting started with xxx" which has the minimal required circuit