In the long run, for midrange pics that don’t have a port latch register,
we should be using a byte port latch to avoid RWM error if time allows.
So it would go, write single bit to port latch byte, write entire port latch byte to port, read back bit from port latch byte.
Not that I can say I’ve ever encountered a problem I’d put down to RWM error.
Bookmarks