So the recommendation is not to do consecutively bit operation but one port write.

for example:
Code:
temp=porta
temp=temp & $FF
porta=temp
Ioannis