TCNT equals TOP (eg 0xff), causing the Timer Overflow interrupt to fire
The next cycle, TCNT goes to zero, and the Timer Overflow interrupt fires again as the timer overflowed.
This is probably related to the fix for #75. It doesn't always happen - if TCNT overflows without going through the TOP value (e.g. in case of a two-cycle instruction that starts one cycle before TCNT equals TOP), it will function correctly.
The scenario is as follows:
TCNT
equalsTOP
(eg0xff
), causing the Timer Overflow interrupt to fireTCNT
goes to zero, and the Timer Overflow interrupt fires again as the timer overflowed.This is probably related to the fix for #75. It doesn't always happen - if
TCNT
overflows without going through the TOP value (e.g. in case of a two-cycle instruction that starts one cycle beforeTCNT
equalsTOP
), it will function correctly.