Other Parts Discussed in Thread: CC2430
It it said in hal_adc.c file:
/*
* If Analog input channel is AIN0..AIN7, make sure corresponing P0 I/O pin is enabled. The code
* does NOT disable the pin at the end of this function. I think it is better to leave the pin
* enabled because the results will be more accurate. Because of the inherent capacitance on the
* pin, it takes time for the voltage on the pin to charge up to its steady-state level. If
* HalAdcRead() has to turn on the pin for every conversion, the results may show a lower voltage
* than actuality because the pin did not have time to fully charge.
*/
What does it mean make sure corresponing P0 I/O pin is enabled?
If i use P0_0 as my only ADC input pin, why do I keep it enable even when conversions are not performed?