Quote Originally Posted by towlerg View Post
Alberto, read about "read modify write" and you'll understand the purpose of LAT. If you write to PORTx and read from LATx you should be squeaky.
That's his way of saying don't do it. Read from PORT and write to LAT is the correct message conveyed.