All I can say is sometimes we get lucky....If I put the PORTb.6 = 1 loop after the ON INTERRUPT statement it works fine???
Like in the beginning of your code
the data latch was clear. That evidently is happening in your ISR.The first 3 flashes work fine using HIGH PORTB.6





Bookmarks