Quote Originally Posted by mackrackit View Post
Have you tried a different pin another LED?
I do not see anything wrong with the part of your code you have posted.
How do you have TRISB set?
If you post the whole code it would help.


That's actually the entirety of the code(although I set TRISB to 0 anyway).Not much to it.Also the oscillator setting is set for crystal.(xt).I tried it with a different pin and came up with the same problem.When I took the LED away from pin 6(rb0) however, the other lit up.

I'm wondering if it may be a power supply problem.I've currently got a 7805 voltage regulator to step down a 9 volt battery, but I'm wondering if the battery is too low.

The battery rates at 7.97 volts according to my meter.Could this be too low after the 7805 is connected?

Shawn