Output levels are always for CMOS outputs. I don't understand your formula. Output current cannot be calculated from input current. In input mode the port is in high impedance. Input resistance is several 100kOhm. In output mode either the "H" or "L" transistor is open and the port is low impedance.
↧