[Tinyos-help] Junk data with Adc on telosb
Nicolas Esteves
nicolas.esteves at inrialpes.fr
Thu Jul 26 01:12:54 PDT 2007
Hi,
When i use the multi channel sampling component (like in the
apps/tests/msp430/Adc12) I always have junk data at the beginning of the
sampling.
I'm sampling channels INPUT_CHANNEL_A0, INPUT_CHANNEL_A1 and
INPUT_CHANNEL_A2 with REFERENCE_VREFplus_AVss for each channel and
REFVOLT_LEVEL_2_5, SHT_SOURCE_ACLK, SHT_CLOCK_DIV_1,
SAMPLE_HOLD_4_CYCLES, SAMPCON_SOURCE_SMCLK, SAMPCON_CLOCK_DIV_1 for the
config.
I sample each channels like 200 times and the first results are always
like 0 or things greater than 4095, there is between 80 and 150 values
of this kind. I cant understand where itś coming from.. I tried to delay
the sampling after the mote wakeup but nothing changed. I tried to do
multiple sequences of capture because i thought that the values may be
caused by the wakeup, but nothing changed too. When i do the same with 3
distinct SingleChannel everything works fine.
So if someone can help me it would be nice
thanks in advance
More information about the Tinyos-help
mailing list