---------- Forwarded message ---------- From: jagan nath <[EMAIL PROTECTED]> Date: May 18, 2006 9:30 AM Subject: Re: [Tinyos-help] Maximum samplingrate with TimerJiffy.nc To: Michael Schippling <[EMAIL PROTECTED]>
I didnt miss that, i have set the ADCControl.setSamplingRate(7500ns), only thing i m not sure is whether this command shud be called in stdcontrl.init/start, i have called it in stdcontrol.start(maybe i shud try it in init also) jagan On 5/18/06, Michael Schippling <[EMAIL PROTECTED]> wrote:
Everyone seems to be going on about this recently and I forget to whom I have already responded with dubious advice... You need to set the ADC pre-scaler to something other than the maximum, which is the default. ADCControl.setSamplingRate() is supposed to do this, see tos/interfaces/ADCControl.nc for details. However I've only heard of negative results so far. Have any of you lurkers actually used setSamplingRate() successfully? MS jagan nath wrote: > Hello all, > I'm using TimerJiffy.nc to sample the ADC0 pin for my application.I > actually wanted to sample at 3Khz but the highest sampling rate i > could achieve is not more than 1200 samples/sec. > > I'm calling TimerJiffy.setPeriodic(11); here 11 corresponds to > 3Ksamples/sec(apprx). > whenever the timer fires I'm call ADC.getdata() and in the event > ADC.dataready() I'm incrementing a counter > Now I'm using a normal timer which is set to fire at intervals of > 10/20 secs and when this timer fires Im sending this counter value > over the radio and receiving it with TOSBase. > > I then further reduced the value of Timerjiffy.setperiodic(5) .with > this also i'm getting a max of 1200 samples/sec. > > Am I checking it correctly or is there any other method to achieve the > 3Khz sampling rate. > > TIA > Jagan > > _______________________________________________ > 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
