For the SAR ADC example, where an ADC is used with an analog input pin, just a simple question:
Why do we have to assign a physical pin to both the ADC and the analog input pin? Doesn't the ADC "not" need a pin, because we are connecting it to the analog pin? It would seem to me that the connection between the ADC and the pin would be internal...
Edit: just for clarity sake, here's what the lab 4 manual says:
map the “ADC_SAR_Seq_1:Bypass” pin to P1, and “Pin_1” to P2
The "Bypass" pin together with a capacitor of ~1µF stabilizes the internal reference voltage. The analog input pin for the ADC is (within limits) to be chosen freely.