I used to manipulate the ports directly, but once I had a problem and suspicion have fallen on the technique among other things.

So, I now only use HIGH and LOW commands even if these eat a little program memory just to be sure.

If your code is small enough to fit in one page then you probably can use direct port control.

Ioannis