A/D converter interrupt service exercises
Numeric integration of a sampled signal
The ADC interrupt service routine should add the value of the current sample to a variable. The result should be stored in an array, the number of stored samples is given by a global variable. The recording of samples should be started when a flag bit is set. The flag should be cleared at the end of recording.