Thanks,
Avinash
On 6/26/06, David Gay <[EMAIL PROTECTED]> wrote:
On 6/25/06, Philip Levis <[EMAIL PROTECTED]> wrote:
> On Jun 25, 2006, at 5:38 PM, Ajit Mylavarapu wrote:
>
> > I was wondering how to obtain microsecond accurate timestamps in
> > TinyOS 2. We want to find out the accuracy of our synchronization
> > scheme. I went through the TinyOS help archives. A couple of posts
> > talk about using the LocalTimeMicroC component, but that is available
> > only in TinyOS 1.1 I think. How do we get timestamps with microsecond
> > accuracy is TinyOS2?
> >
> > Or is the only way out to start an Alarm (TMicro) and count the ticks?
>
> On the Telos, you can use Msp430CounterMicroC. If you want more than
> 16 bits of granularity, then you'll need to do a conversion, or keep
> a CounterMilli around.
Or use the TransformCounterC generic component to make a 32-bit
counter out of a 16-bit one.
One thing to note: I believe that the 1MHz counter stops counting
while the microcontroller is in sleep mode. So it won't be counting
real time except if you prevent the mote from sleeping.
David Gay
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
--
Phd Dept. of Electrical Engineering
University of Southern California
http://www-scf.usc.edu/~asridhar
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
