A/D converter interrupt service exercises




Pulse counter

The ADC interrupt service routine should count the number of samples taken while the input signal is above a certain level. If this number falls into a given range, a variable should be incremented. Another flag bit should be used to enable or disable the process.