The code below is in $TOSROOT/tos/chips/atm128/adc/Atm128Adc.h
/* Voltage Reference Settings */
enum {
ATM128_ADC_VREF_OFF = 0, //!< VR+ = AREF and VR- = GND
ATM128_ADC_VREF_AVCC = 1,//!< VR+ = AVcc and VR- = GND
ATM128_ADC_VREF_RSVD,
ATM128_ADC_VREF_2_56 = 3,//!< VR+ = 2.56V and VR- = GND
};
And I want to know if I set the Reference Voltage as ATM128_ADC_VREF_OFF,
how can I input the AREF or the AREF is internal for Micaz?
async command uint8_t Atm128AdcConfig.getRefVoltage()
{
return ATM128_ADC_VREF_OFF;
}
--
Regards,
Xiaozong Cui
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help