[Tinyos-help] Micaz time measurement in microseconds

Michael Schippling schip at santafe.edu
Thu Sep 1 13:13:02 PDT 2005

I don't think any of the controller's timer/counter features have
been implemented in TOS, beyond the internal clock type stuff.
You'll have to poke through the atmel spec sheet...err, book...
to find the right pins and registers to set for your application.
It's not as hard as it sounds once you get over the language
barrier in micro-controller terminology.

I recently posted some sample PWM output code using the C/T
modules (which I mostly stole from Sarah B's cotsbots). That
might provide some guidance in defining the pinouts and such.

Ruben Lagar wrote:
> I wanted to use the second choice, and i know about those high 
> resolution counters, but I don't know how to access that "16-bit Timer3".
> Could someone please tell me how to access those counters? I haven't 
> found any documentation about that matter.
> Thanks!!! Rubén.
> -------------------------------------------------------------------------------------------------
> There are a few ways:
> 1) toggle a HW pin and measure it on a scope
> 2) store start/stop time stamps from a high resolution counter
>   and retrieve them later.
> 3) use a timer capture register on a pin you control
> If you follow one of the SW solutions, you would probably want to use the
> 16-bit Timer3, as it is freely available.
> Martin
> ------------------------------------------------------------------------
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help at Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

More information about the Tinyos-help mailing list