Hey All,According to my findings in the
tinyos-1.x/tos/interfaces directory, and after reading the ADCControl
interface I have some doubts that I expect you can help me to make me
clear.I need to sample a microphone with a Sampling rate over
64Kbps, because I need to playback the audio samples, and according to
the Nyquist Theorem, if I want to recover the audio transmitted I'll
need to sample it at least twice of the human voice frequency.As I
read from ADCCconrtol interface and ADC.h, if I use this interface and
setting the ADCControl.setSamplingRate(5), which equals to T=120uS I
achieve a sampling rate of Sr = (1/T)*Bits per sample =
8333.33Hz*8bits/s = 66.7Kbits/s. Acutally the ADC is 10 bits length but
I drop the 2 LSB, and I get 8 bits length. I'm the MicC and I'd like to use the 
directly the hardware to access the Microphone, but I'm facing some problems... 
1 - I can still using the MicC, but my problem is, Where to call 
ADCControl.setSamplingRate()?...2- am I correct with my findings?.3-
someone told me that is better to use directly Harddware componet of
the ADC... can I have some help from you about using the hardware?thanks in 
advance-antonio
_________________________________________________________________
Live Earth is coming.  Learn more about the hottest summer event - only on MSN.
http://liveearth.msn.com?source=msntaglineliveearthwlm
_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to