hi paul,

i haven't really written timer routines - they are part of T2. i was 
only testing FTSP for micaZ and the component that provides TMicro 
counter for micaZ is tos/platforms/mica/CounterMicro32C.nc

i just did a quick search and i found 
tos/chips/msp430/Msp430CounterMicroC.nc which provides 16 bit TMicro 
counter. perhaps you can use it? anyways, TMicro on telos platform is 
much less useful for timesync, since the cpu is turned off whenever 
there is no work to be done (ie. no tasks in the scheduler). thus your 
TMicro based TimeSync will be inconsistent - the time will not grow 
linearly.

T32khz clock is based on real-time clock, which keeps running even when 
cpu is in standby. T32khz accuracy should be sufficient for all 
practical purposes.

brano

[EMAIL PROTECTED] wrote:
> Dear Brano Kusy,
> 
> I had a look at the SenSys'04 paper "The Flooding Time Synchronization
> Protocol".  Very interesting.  I was pleased to see that you have
> transferred the software from TinyOS-1.x to TinyOS-2.0.
> 
> My installed TinyOS-2.0 system does not (yet) comprise the timer
> routines with "Micro" resolution, but "32khz" resolution is available. 
> Three resolutions are promised in my manuals, but only "32khz" exists
> really.
> 
> I wonder if you have the "Micro" library routines (Can I get them?
> What's required for their installation?), or did you include them in the
> software in hope for the arrival of a TinyOS version containing them?
> 
> Aside:
> I am using TelosB motes, or actually home-brew derivatives.  The CPU is
> an MSP430 and, if you care about such things, its internal timer runs at
> 1048 kHz (MCLK = 32 kHz * 131/4).  I have no idea why TI designed it
> that way, but this weird factor feeds through to all timers.  My guess
> is, TinyOS-2.0 divides MCLK by 32 to get "32khz" (really 32.75 kHz) and
> divides it again by 32 to get "Milli" (really 1.0234 kHz).
> 
> Best regards from
>     Paul Pilgram.
> 
> 
> 
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to