EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: Bibiricat on October 24, 2012, 11:11:59 am

Title: PIC18F4550 device not recogniced by ICD2
Post by: Bibiricat on October 24, 2012, 11:11:59 am
Hello.

I made a small prototype board to program and develop applications for PIC18F4500 and tried to program the bootloader in using ICD2.
The problem is that the software was not detecting my MC, and was retuning an error.
I read somewhere that ICD2 should support my MC.

Any idea on  why ICD2 was not detecting my MC ? Were here setting to be made , so that it will detect it ?
I was powering my board from a battery with 5v v. regulator.
Any idea on what's going on ?
In a few days i will try programming it with Pickit3; will see if that detects it.
Is there any possibility that my MC is fried ?

Schematic :
http://www.freeimagehosting.net/ifnbi (http://www.freeimagehosting.net/ifnbi)
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: PA0PBZ on October 24, 2012, 11:32:40 am
I'm missing the cap on the reset pin.
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: Bibiricat on October 24, 2012, 01:56:41 pm
I'm missing the cap on the reset pin.

What cap? And why....?
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: PA0PBZ on October 24, 2012, 02:05:12 pm
100N from pin 1 to ground, to get a proper power on reset.
It is in all the documents...
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: deephaven on October 24, 2012, 02:15:58 pm
100N from pin 1 to ground, to get a proper power on reset.
It is in all the documents...

Only need if the power-on rise rate is very low, i.e. less than 0.05V/ms
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: Bibiricat on October 24, 2012, 07:08:30 pm
Do i need to configure somewhere the MC external 20Mhz oscillator , or will the programmer detect it automatically ?
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: PA0PBZ on October 24, 2012, 07:36:37 pm
The 20Mhz external crystal is ok, did you try the cap?
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: RCMR on October 24, 2012, 08:24:06 pm
I've never used the cap and never had any problems with the 18F4550.

Make sure you've got your ICSP wiring correct.  The only times I've had any issues in the past have been when I've stuffed up the interconnect between the ICSP header and the MCU.   Also, try powering the device from the ICD2 and see if that changes anything.
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: Bibiricat on October 26, 2012, 06:11:36 am
I have added the cap, and manage to test my circuit on a Pickit3, and again, the programmer can't detect my MC.
Any idea on what can i test next ?
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: ptricks on October 26, 2012, 11:53:20 am
Basically all that is needed to get that chip recognized by the pic programmer is power, you don't have to even have the pullup on the MCLR. If you socketed the chip , always a good idea, remove it and place it on a breadboard by itself , no other parts, and connect the programmer to it, if it fails to program then you got a bad chip.
Title: Re: PIC18F4550 device not recogniced by ICD2
Post by: Bibiricat on October 26, 2012, 11:43:27 pm
Managed to get the microchip bootloader in. The MC was good, my project board was bad.
Now to the next part.
I have connected it to the PC via USB and  i got the 'Found new hardware' , and it got installed and ready to use. However, i have no idea how to communicate with it. I got MPLab, found some code on the net , but i don't rely know to load the code in my MC, and make it run.
If anyone could tell me how to load a simple blinking LED it would make me very happy.