[Tinyos-help] sensor interface

Fernando Brunetti fjbrunetti at gmail.com
Mon Dec 4 07:03:56 PST 2006


Hi everybody,
    I am trying to interface an ad-hoc sensor which has strict timing 
requirements. First, i have to generate a 32kHz clock signal for the 
sensor, and be able to do adc at the same frequency.
    The first problem is that with TinyOS 1.0, I just can cause 
interrupts with the timer component every millisecond and this is not 
enough.
    So, here are my questions:
    What is the most convenient way to do it? What about writing a C 
Macro to interact directly with the HW?
    If I use TinyOS 2.0, am i going to be able to generate this 32kHz 
signal to interface the sensor using the new timer components of this 
version?

    Thank you in advance.

Fernando
 


More information about the Tinyos-help mailing list