Quote Originally Posted by skimask View Post
Have you configured MCLR as internal in your code?
Are you sure you have the A/D pins set up correctly for digital?

Also, I'm not so sure that:

sled var porta
oled var portc

will work the way you want it to.
TRISA = %00110111
TRISC = %00110111 should set the Pins for digital

I'll remove sled and oled and replace with porta, portc

You are talking about the "CONFIG: CONFIGURATION WORD REGISTER"
bit 5 - 0 = RA3/MCLR pin function is digital input. Right?

Now that I need to set the CONFIG REGSTER, any help with the other 15 bits?