What I would like to do is have 5 or 6 analog buttons on 1 pin (using AnalogButtons library). Then have the Analog Comparator generate an interrupt when it detects a button press from the change in voltage on the pin used for the buttons. Then use that interrupt to start the ADC using the same pin, or another analog input pin tied to that same pin, to figure out which button was pressed.
The reason I want to do this is to free the processor for other tasks, instead of polling for a button press.
Is this possible? I know the analog comparator can trigger the input capture module, but can it trigger the ADC to read the value of an analog input? Is there a simpler way of doing this?
Thanks for any input on this,