Hello,
i try to compute the remaining power in the battry in micaz !! but each time i
do the test i find that the power is increasing . that's strange , i don't
understand the matter. PLZ any idea could help.
i use this
#
*/
module VoltageP
{
provides interface Atm128AdcConfig;
}
implementation
{
async command uint8_t Atm128AdcConfig.getChannel()
{
// select the 1.23V (V_BG). Reference: Table 97, page 244 from the Atmega128
return ATM128_ADC_SNGL_1_23;
}
async command uint8_t Atm128AdcConfig.getRefVoltage()
{
return ATM128_ADC_VREF_OFF;
}
async command uint8_t Atm128AdcConfig.getPrescaler()
{
return ATM128_ADC_PRESCALE;
}
}
#
Bye_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help