dsPIC 30F6012A will not read RD9, appears to be software problem
As past me (what an arrogant gasbag) points out, setting C1CTRL&lt;15> enables IC2, disabling RD9 as GPIO. Even if you manually disable IC2 after that point, RD9 still can't be used for GPIO.