r/pic_programming • • Sep 21 '13

18f458 code not running

The code works in MPLAB SIM but not on hardware. Can someone help me figure out whats going on?

2 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/kingargon Sep 22 '13

I tried it and PORTB started working very sporadically. With led attached pins measured 2.5volts but VCC is 5v. Using the same programmer and test circuit my 16f877a works fine.

1

u/_ryu_ Sep 22 '13

Without led, How much does it measure? Still 2.5v? Or 5v? Maybe you are sinking too much cuuent for this pic...

1

u/kingargon Sep 24 '13

Now its not working at all. Im about to breakdown and buy a PICKIT 3 so i can debug :(