Unless you are free-running the ADC it will probably have no effect.
What SSR() changes is the internal clock pre-scaler for the ADCs,
and effectively the time of conversion (and sampling accuracy to
some extent, but no one really mentions that....). With the slowest
pre-scale setting I think it's still a .3milli-sec conversion on mica2,
at least if my math from a few years ago was right...

As to where the rate values are defined, I don't think I've ever seen
any...but the ATMEGA spec sheet says what values do what (look for
ADC pre-scaler). I think it's 0-8 with 8 as the slowest.

I answer this question so many times, I kinda wish they'd called it
setADCclock() or something...

MS

Chris Byers wrote:
Where is the variable rate that is used in: command result_t setSamplingRate(uint8_t rate); defined? I am trying to change the sampling rate of the ADC to see how it affects my packet rate.

Thanks,

Chris

Chris Byers

MacAulay Brown Inc.

4021 Executive Dr.

Dayton OH 45430

937-426-3421 (phone)

937-426-5364 (fax)

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to