6.4.1.2 Configuring Latch Functions (LATx)
The LATx registers (PORTx data latch) hold data written to port I/O pins:
- A write to a LATx register latches data to corresponding port I/O pins. Those I/O port pins configured as outputs are updated.
- A read from a LATx register reads the data held in the PORTx data latch, not from the port I/O pins.