setSamplingRate() sets the internal ADC clock scaler which
controls the amount of time a SINGLE sample takes. What you
want to change is the timer that fires off the ADC.getData()

MS

gao bo wrote:
> Hi all:
> 
> Now, I’m using the expansion connector of Tmote Sky to record same data 
> of sound. But I don’t know haw to set sampling rate of ADC. Now, I’m 
> using the ADCC.nc(/opt/tinyos-1.x/tos/platform/msp430) to get data. I 
> call ADCControl.setSamplingRate(TOS_ADCSample120us), I think it may 
> work. I use the timer with calling TimerJiffy.setPeriodic(4).Whenever it 
> fired, it will call ADC.getData(). I think the sampling rate of ADC is 
> 8.333kHz(1/120us), but I use the function of MATLAB sound(wave,8333), I 
> get noise only. Using sound(wave,2000), however, I get the sound with 
> some noise. It must be that my sampling rate of ADC is 2kHz now. But how 
> I set sampling rate of ADC to 8kHz?
> Thanks,
> Gao Bo
> 
> _________________________________________________________________
> 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/ 
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to