Now, Thats nice and easy. The only thing I would change is not having a variable for the state of the output pin but reading the output state.
Now, Thats nice and easy. The only thing I would change is not having a variable for the state of the output pin but reading the output state.
Dave Purola,
N8NTA
EN82fn
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