Salut Patrice,

With PIC18, there's LAT port made to avoid this problem

You write to LAT ... but read from PORT
LATA.0=1
LATA.1=1
LATA.2=1
LATA.3=1