There are timing problems when a timer is below 4 ms - I believe it was due to the microcontroller not being able to keep up with executing code that quickly. If you look at the code that gets executed when you call Timer.start(..), one of the first tests is to make sure you're not trying to start a repeating timer that is at or below 3 ms.
-David

On Thu, 18 Jan 2007 10:46:51 +0800
 "Zhang Yan" <[EMAIL PROTECTED]> wrote:

I am using Tinyos-1.x with a MicaZ mote and trying to do some work at high rates. But when I use the TimerC, it seems that the timer couldn't work when the interval is below 4 milli second. It means that when I use codes as follows,
        command result_t StdControl.start() {
   // Start a repeating timer that fires every 1000ms
   return call Timer.start(TIMER_REPEAT, 1);
        }


Then the timer didn't work. The event of Timer.fired() couldn't be triggered. So why this happen? Is it because the precision of the timer of micaz? Thanks a lot.


Regards,
                         Zhang Yan
[EMAIL PROTECTED]
          2007-01-18

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to