dsPIC 33EP128MC506 will not read RB8, appears to be software problem
All the ANSEL bits are set by default, which prevents the associated pins from being used as digital inputs. On this chip, ANSELB&lt;8> exists, even though RB8 is not an A/D pin. Clearing ANSELB&lt;8> allows it to be used as an input.