Simple to measure time of an event:
//declare a few global variables
unsigned long startMicros;
unsigned long stopMicros;
unsigned long elapsedMicros;
// to measure:
startMicros = micros();
// run your event
// your event ends
stopMicros = micros();
elapsedMicros = stopMicros - startMicros;
Serial.print ("elapsed microseconds = ");
The 'old' ATmega 8 bit microcontrollers don't have an event system peripheral. The new "megaAVR 0 series" has an event system. Atmega 4809 on Arduino Uno WiFi Rev2 and on Nano Every is "megaAVR 0-series". The event system of the new ATmegas is similar to SAMD event system I know.
ARM MCUs for example SAMD by Atmel/Microchip used in Arduino Zero and MKR have ...
The ATmega32 has a coupe of peripheral-to-peripheral communication
features that are in some way similar to the Event System:
You can use the analog comparator to trigger an input capture on
You can use the analog comparator, external interrupt 0, Timer 0, or
Timer 1 to trigger a conversion on the ADC.
These are the only ones I know about. As you ...
The target board was not reset.
The "Arduino as ISP" sketch uses pin 10 to reset the target, not the SS pin. So even on Mega, wire reset of target to pin 10, not to pin 53.
Is this an error communicating with the ISP (Arduino) or is it an issue with the ISP talking to the target (ATMega8B on USBAVR)?
the first error "not in sync" is a problem with ...