EEVblog Electronics Community Forum
Electronics => Beginners => Topic started 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)
-
I'm missing the cap on the reset pin.
-
I'm missing the cap on the reset pin.
What cap? And why....?
-
100N from pin 1 to ground, to get a proper power on reset.
It is in all the documents...
-
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
-
Do i need to configure somewhere the MC external 20Mhz oscillator , or will the programmer detect it automatically ?
-
The 20Mhz external crystal is ok, did you try the cap?
-
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.
-
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 ?
-
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.
-
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.