Hi all,
Please consider me as a beginner and request you kindly help me.
When I am sampling the external pin, ADC0 of a telosb mote, if no other
analog pins are connected (other analog pins in the 10-pin expansion
connector are kept open), I am able to sample ADC0 correctly and the
current drawn from ADC0 source is less than 1mA. The interface and the
corresponding wiring is given below.
interface Read<uint16_t> as voltageread;
const msp430adc12_channel_config_t config = {
inch: INPUT_CHANNEL_A0,
sref:
REFERENCE_VREFplus_AVss,
ref2_5v:
REFVOLT_LEVEL_2_5,
adc12ssel:
SHT_SOURCE_ACLK,
adc12div:
SHT_CLOCK_DIV_1,
sht:
SAMPLE_HOLD_4_CYCLES,
sampcon_ssel:
SAMPCON_SOURCE_SMCLK,
sampcon_id:
SAMPCON_CLOCK_DIV_1
};
async command const msp430adc12_channel_config_t *
VoltageConfigure.getConfiguration()
{
return &config;
}
and
components new AdcReadClientC()
App.voltageread -> AdcReadClientC;
AdcReadClientC.AdcConfigure -> App.VoltageConfigure;
The ADC0 is sampled whenever a periodic timer of 1 second fires. This works
perfectly fine.The same case holds true for ADC1 or ADC2(only one ADC pin
is connected and sampled).
Assume that we are sampling ADC0. Now if I am connecting another analog
voltage to any other analog pins ( eg: ADC1 or ADC2 or ADC3 of 10 pin
expansion connector of telosb), a high current ( >25mA) is drawn from that
voltage source which is connected to ADC1 or ADC2 or ADC3.
Please note that my nesc module and configuration file is the same as
previous one.(Does not contain any cofiguration/reading other than ADC0)
Please help me to find out the reason behind this.
Thanks
Jobish John
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help