* jumping around. The external reference of 2.50V seems stable.
*/
const msp430adc12_channel_config_t config = {
- inch: INPUT_CHANNEL_A0, // A2
-#if 0 /* internal references unstable */
+ inch: INPUT_CHANNEL_A2,
+#if 1 /* internal references unstable (no, I don't think so) */
sref: REFERENCE_VREFplus_AVss,
- ref2_5v: REFVOLT_LEVEL_1_5, /* REFVOLT_LEVEL_2_5, */
-#else /* external reference is stable */
+ ref2_5v: /*REFVOLT_LEVEL_1_5, */ REFVOLT_LEVEL_2_5,
+#else /* external reference is stable, and is 2.5V */
sref: REFERENCE_VeREFplus_AVss,
- ref2_5v: REFVOLT_LEVEL_1_5,
+ ref2_5v: REFVOLT_LEVEL_1_5,
#endif
#if 0 /* clock source doesn't seem to affect stability */
adc12ssel: SHT_SOURCE_ADC12OSC,