A/D converter interrupt service exercises




Programmable comparator

The signal should be continuosly monitored in the ADC interrupt service routine and the sample should be compared to a value. If the sample is larger than this value, then a port bit should be set, othewise it should be cleared.