I believe the JiffyTimer is 32KHz using Timer2 so you may be able to use it directly. MS
Tao Wu wrote:
Thanks a lot for the reply. I have this question is because I need a high frequency timer, like 32KHz. So far, the TimerM does not provide such granularity. Actually, it is not very difficult, as long as understanding how to write ISR in C. I really appreciate your reply On Nov 14, 2007 12:56 PM, Michael Schippling <[EMAIL PROTECTED]> wrote:Near as I can tell the TimerM code uses timer0, via the Clock module. Then under mica2 there is a SysTime module that uses Timer3. And under micaz there are HPLTimer1 and HPLTimer2 modules, plus a TimerJiffy that uses HPLTimer2. The micaz code should work fine on mica2 as well, so you shouldn't have to reinvent the wheel...and no, I don't know why it's only available under micaz... I also have a bit of, perhaps redundant, Timer3 code that may help bootstrapping in: http://www.etantdonnes.com/Motes/AVR128timers.zip MS Tao Wu wrote:Hi, Currently, I am implementing a high frequency timer (like 32KHz). I plan to use the 16 bits timer3 in ATmega128. The question is that I am not very sure what timers TinyOS 1.X has used so far. I think the Timer component uses timer0, but I do not know what timers other components might use. Can anyone confirm the compatibility of timers? Thank you very much. Best Regards, Tao _______________________________________________ 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
