I think Richard noted that it is not good idea to manipulate LAT registers.

Maybe I am wrong though,

Ioannis