Hi. What is/are the difference(s) between the following:
PxMDIN = 0xFF; // all pins on port1 are digital input with optional weak pullup. PxMDOUT = 0; // all pins on port1 are digital input as open-drain (no pullup).
Thank you.
Next thing - with 8051 chips, you can't ignore "OUT" in relation to "IN" because many 8051 have pseudo-bidirectional ports
I am using the C8051F044 MCU. which has configurable ports, so the above is not relevant for this chip
as far as the OP's original quesrtion, reading the datasheet will answer it
Erik