A/D converter interrupt service exercises
Triggered start of sampling
The signal should be continuosly monitored in the ADC interrupt service routine. The beginning of recording the data into an array should start when the signal crosses a given level upwards. The recording should be stopped after a given number of samples has been recorded. A flag should be used to start the process and the interrupt service routine should clear the flag at the end of recording.