ADC Inputs

The ADC2 input is driven by connector P22. In the current firmware, the ADC2 output drives a comparator. The comparator is configured such that a P22 closed-to-open transition will generate a 1-to-0 transition on GPIOA10, and a P22 open-to-closed transition will generate a 0-to-1 transition on GPIOA10. While the switch is open, GPIOA10 is 0. While the switch is closed, GPIOA10 is 1.