i have a build a new PCB for my 16f877 and all going fine but when i tested any program i got a very strange output.
for example i wrote a avery simple program to light up all leds connected to port b but i got a differant output ....... could you please look at the schematic and tell me if i did somethng wrong ?
what do you mean by far ?AND how to fix that The drawing for C2/3 shows a symbol for an electrolytic capacitor, change the drawing symbol to a 'standard' capacitor.
A value of 10pf thru 27pF would be typical for capacitors in a crystal oscillator.my program is with PIcbasic so simple :
Fairly obviously if you have 5V on a pin that's supposed to be connected to ground, then it's NOT connected to ground - or at least not to the point you're using as the ground point for your meter.
The picture of the board is really too blurred to see, you've focused past it - but it looks very spread out and poorly designed. For example it's best to keep leads to the crystal and capacitors as short as possible, but you have it mounted well away from the PIC. It may well be OK, as long as every thing is connected, but from your post that's obviously not so.
If the PIC pin is connected to ground it can't have 5V on it, so it's NOT connected to ground. Your PCB appears to be double sided, with through links, do you perhaps have a duff link stopping the ground connection?.
Set your test meter on its lowest resistance range.
Connect the negative lead from your resistance meter to the 0V line, use the terminal block connection that you use for the incoming supply. Keep the negative meter lead connected to this point throughout the test.
Touch the positive lead of the resistance meter to pin #31 of the PIC socket.
The meter should read zero ohms.
Touch the meter to each 0v point in turn, they should all read zero ohms.
When and if you find a 0V that dosn't read zero, follow the track back to the point where is supposed to be connected to 0V.
That's one of the reasons why it's often smarter (and cheaper) to do single sided boards. If you can't route it properly you use jumpers. It requires a slightly more modular board layout and inteligent control of the routing though. If you use the back of the board for jumper routing you can do things that would cost 10 times the board space using a routed PCB.
Thank you all ...... problem solved .............simply i chnaged the regulator Lm7805.........i don't know what's the problem with first one but i'm sure it was the cause ,
Thanks again
as for the double sided boards i like it too much they are more professional