A/D converter interrupt service exercises




Numeric differentation of a sampled signal

The ADC interrupt service routine should calculate the difference beetween the current and previous sample. 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.