Okay, I will draw the schematics today.
The code is huge (I fill all the 2048 words program space!!).
PortA does not change all the time. It is set as output and set to LOW, there is no reason why it should change.
When an interrupt occurs, the int handler takes care of reading porta to refresh the latch so there should be no mismatch.
Bookmarks