Interrupt variable exceeds volatile long's 8bit size

only if your counts rush in at a very high frequency
executing the lines

  noInterrupts();
  interruptedVar = x+5;
  interrupts();

takes less than a millisecond

1 Like