The graphs show the signal at the switch and PIC pins; to confirm the absence of bounce on the signal.
The LCD in the foreground shows the frequencies being swapped back and forth.
- I changed checking IOCBF.2 to checking Port pin; no change, random double-processing.
- I changed clearing IOCBF.2 = 0 to IOCBF = %00000000; no change, random double-processing.
- I added an IOC counter, Interrupt is definitely entered TWICE when double-processing.
I'm not sure what this would test. But I still get double-processing with PAUSE 5 in ISR.
I'm definitely missing proper flag reset out of ISR.
Bookmarks