PIC18F4550 device not recogniced by ICD2 - Page 1
Forum section: electronics / beginners

author: Bibiricat
author_rank: Contributor
timestamp: October 24, 2012, 11:11:59 am
content: 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

author: PA0PBZ
author_rank: Super Contributor
timestamp: October 24, 2012, 11:32:40 am
content: I'm missing the cap on the reset pin.

author: Bibiricat
author_rank: Contributor
timestamp: October 24, 2012, 01:56:41 pm
content: Quote from: PA0PBZ on October 24, 2012, 11:32:40 amWhat cap? And why....?

author: PA0PBZ
author_rank: Super Contributor
timestamp: October 24, 2012, 02:05:12 pm
content: 100N from pin 1 to ground, to get a proper power on reset.It is in all the documents...

author: deephaven
author_rank: Frequent Contributor
timestamp: October 24, 2012, 02:15:58 pm
content: Quote from: PA0PBZ on October 24, 2012, 02:05:12 pmOnly need if the power-on rise rate is very low, i.e. less than 0.05V/ms

author: Bibiricat
author_rank: Contributor
timestamp: October 24, 2012, 07:08:30 pm
content: Do i need to configure somewhere the MC external 20Mhz oscillator , or will the programmer detect it automatically ?

author: PA0PBZ
author_rank: Super Contributor
timestamp: October 24, 2012, 07:36:37 pm
content: The 20Mhz external crystal is ok, did you try the cap?

author: RCMR
author_rank: Frequent Contributor
timestamp: October 24, 2012, 08:24:06 pm
content: 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.

author: Bibiricat
author_rank: Contributor
timestamp: October 26, 2012, 06:11:36 am
content: 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 ?

author: ptricks
author_rank: Frequent Contributor
timestamp: October 26, 2012, 11:53:20 am
content: 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.

author: Bibiricat
author_rank: Contributor
timestamp: October 26, 2012, 11:43:27 pm
content: 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.