Interrupt variable exceeds volatile long's 8bit size

The only situation in which you would lose data is if the functionality between "noInterrupts" and "interrupts" took longer than the interrupt rate. Updating a variable takes less than a microsecond on even the slowest arduino so in order to fail, you would need to be processing millions of interrupts a second.

3 Likes