It looks like RB0, RB1 and RB2 can have analog inputs where RC0 does not. I don't see in your program where you turn the analog functions off. This is only after a quick read of your program and the data sheet. Try turning them off first and if there is a setting to make them digital inputs, I'd try doing that also.




Bookmarks