It seems that brdInit() sets PortA to outputs.
How to I change the entire port to be inputs?
Per Section 5.2.1 of the RCM4000 User’s manual (http://www.rabbit.com/documentation/docs/manuals/RCM4000/RC4000UM.pdf), I tried this:
WrPortI(PADR, &PADRShadow, 0x00 );
always returns zero.
(also, the user’s manual says “PEDDR” instead of “PEDR”).
PA0 is being driven low - I have a pullup on it to 3.3v but my DVM measures 0v - so it would seem that BitRdPortI() isn’t lying.