Well, here's another thought. I don't see CONFIG3H in your configs. If I read the datasheet correctly the PBADEN needs to be set so PortB goes to all digital after a reset. I remember Darrel saying if you set any configs PBP overwrites them all and replaces them with your configs. So after a reset all the ports become analog if the PBADEN isn't set correctly. Again, if I read that f.... datasheet correctly.
I hope I quoteth the great and omnipotent one correctly. Better yet, I hope I'm right.
Bookmarks