TOGGLE will not work.
Richard did explain why at post #5.
So, you have to use either directly PORT or LAT commands. Personally, never liked the TOGGLE command and always preferred to use discrete commands. Bonus that you know the final state of the register. With TOGGLE you only know that it has changed. Not how.
Ioannis
Bookmarks