You can also keep the precision and widen the alarm at the same time.

Janos
On Jan 8, 2012 11:31 PM, "Xiaohui Liu" <[email protected]> wrote:

> Thank Janos for your generous hint.
>
> I checked TransformAlarmC, but it *decreases* precision and/or widens an
> Alarm. Since I want a microsecond alarm, this may not work, is it? Is there
> a microsecond alarm or timer I can directly leverage? If not, can you give
> some hint on how such an alarm or timer can be implemented from existing
> one(s)? Any input will be highly appreciated.
>
> On Mon, Jan 9, 2012 at 12:04 AM, Janos Sallai 
> <[email protected]>wrote:
>
>> You can use lib/time/TransformAlarmC to make a 32-bit alarm from the
>> existing 16-bit one.
>>
>> Janos
>>
>> On Sun, Jan 8, 2012 at 10:54 PM, Xiaohui Liu <[email protected]> wrote:
>> > Hi all,
>> >
>> > Is there any microsecond timer on TelosB, preferably with width of 32
>> bit? I
>> > find a counter running at microsecond Msp430CounterMicroC, which only
>> > provides current time in microseconds. But I need to fire a timer to
>> execute
>> > some code at a specified interval, in the precision of microseconds, so
>> a
>> > counter is not suitable, at least directly.
>> >
>> > Also, I want to timestamp and measure the elapsed time between two
>> events in
>> > microseconds. But Msp430CounterMicroC's width is only 16 bit, measuring
>> only
>> > up to 64 ms, which is insufficient for my timestamping purpose.
>> >
>> > Can anyone share his/her experience? I searched quite some time but
>> haven't
>> > found a suitable timer/counter/alarm on TelosB yet. Thank you in
>> advance.
>> >
>> > --
>> > -Xiaohui Liu
>> >
>> > _______________________________________________
>> > Tinyos-help mailing list
>> > [email protected]
>> >
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
>
>
>
> --
> -Xiaohui Liu
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to