Home > other >  PIC microcontroller I/O registers TRIS/PORT/LATA
PIC microcontroller I/O registers TRIS/PORT/LATA

Time:09-24

https://stackoverflow.com/questions/2623428/difference-between-port-and-latch-on-pic-18f

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
  • Related