Hi, TinyOS uses "binary milliseconds", which means that there are 1024 "milliseconds" per real second (according to TEP102 section 2.1). So if you want a Timer<TMilli> to fire once every second it should be configured to fire every 1024 "milliseconds".
If set to fire every 1000 "milliseconds" it would fire once every 1000/1024 ~= 0.980 real seconds, which matches what you measured. // Lars 2015-02-06 4:27 GMT+01:00 Roadstar Runner <[email protected]>: > I am using the Timer <TMilli> interface to fire every 1000ms. I have a pin > toggling every time the timer fires. The actual period i see is about 980 > ms instead of 1s. > I tried using Atm128Calibrate.calibrateMicro(), but the period now is 1020 > ms. > Please advise. > Thanks. > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help >
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
