Capturing timer value based on external interrupt , leveraging the 62.5nsec (16MHz) resolution) of the ATMEGA328 on the Arduino Uno

You can not put Serial.print() functions inside your ISR. Interrupts are off when the routine executes and Serial uses interrupts to clock out the data. It will work partially, but no guarantees.

1 Like