Hey guys can someone tell me what I'm doing wrong with the simple led blinking program. I'm using the PIC16f628a, Hi-Tech C complier(Lite), pickit 2 and MPLAB v8.88.
I have 5 volts going into VDD and VSS connected to ground while RB0(pin 6) is connected to a resistor which is connected in series with an LED that goes back to ground.
What's odd is when I remove VSS from ground it light's up slightly but doesn't blink. Thanks for the help guys!
Could it be that you have the LED the wrong way around? Try to take the LED off and check B0 with a multimeter. That will confirm that the PIC is OK, and the LED is the wrong way around.
Thanks for the replies guys. I have to go buy a multimeter soon I keep forgetting to I will check as soon as I get one. As for posting my circuit do you guys know any good software I can use to simulate and post the design of my circuit? Thanks for the link also!
- - - Updated - - -
Using the link https://www.oz1bxm.dk/PIC/628LED.htm given to me, I was able to make the led blink. So there is a software issue I believe can anyone help with that? I don't really understand assembly and I want to code in C. I also do not know why there is a 5v supply connected to the MCLR in the link I posted any clarifications will be greatly appreciated!
Can someone tell me what's wrong with this code? My diagram is similar to the one posted on this website : https://www.oz1bxm.dk/PIC/628LED.htm except I am using Pin RB8 to go into the LED and my MCLR goes directly to 5V without a resistor.