Can you post your code?

Are you writing to the whole port or some PORT bits here and there?