On Nov 17, 2005, at 7:39 AM, Lima GANSE Kenneth wrote:

Hi,

actually it doesnt. In other words the same application works as long as hardware interrupts are not used to either start or stop the timer3. I am suggesting it has to do with how the interrupts are internally scheduled by Tinyos, but i dont know how i can get help on that. Maybe tinyos schedules it to start sometime later than i am expecting.

On the other hand i read the value of the timer even before i stop it, and it still doesnt give me any different values.

TinyOS doesn't really do anything to schedule interrupts, besides disable them for atomic sections. The atm128 doesn't have IPLs or anything like that.

It sounds to me like your counter isn't running properly. Looking at your code, I don't have an idea why.

Perhaps in your first handler, try a debugging check that TCNT is running/incrementing (spin on it)?

Phil

-------

"We shall not cease from exploration
And the end of all our exploring
Will be to arrive where we started
And know the place for the first time."

- T. S. Eliot,  'Little Gidding'


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

Reply via email to