TRIS direction, set 1 input, the output set 0
PORT to read the actual voltage on pin
LATA is mainly used for the output, can also be used to read the value of the ideal output reg (um participant if the grounding pin, LATA read is not equal to the actual value of the PORT)
CodePudding user response:
This is the conclusion not to ask questions