[Tinyos-help] Limited number of timers?

2008-07-28 Thread Nicola Wegner
Hi everybody, just a short question to the micaz platform. Is the number of timers I can use limited? I read in TEP102 that there are only three compare registers for each of the 16-bit timers. Does this mean that I can use only 6 timers at a time? Or does TinyOS provide some kind of virtualizatio

Re: [Tinyos-help] Limited number of timers?

2008-07-28 Thread Paul Stickney
For TinyOS 2.x see VirtualizeTimerC. I believe `new TimerMilliC()`, has the same affect, but allows a different way to wire. There is a different between hardware-level HPL/HAL timers and the exposed software timers in the HIL. HTH, Paul On Mon, Jul 28, 2008 at 1:38 AM, Nicola Wegner <[EMAIL PROT

Re: [Tinyos-help] Limited number of timers?

2008-07-28 Thread Eric Decker
Hi Nicola and Paul, VirutalizeTimerC layers 255 independent timers on top of the lower layer hardware timer resources The platform wiring takes care of the wiring. From application code using something like the following works well: I have code that uses a timer... uses interface Timer as GPST

Re: [Tinyos-help] Limited number of timers?

2008-07-29 Thread Nicola Wegner
Hi, I am not sure if I got it right. Does it mean that I do not have to care about virtual timers because they will be used automatically by TinyOS? If this is the case then the following code would create virtual timers based on another virtual timer. Right? components new TimerMilliC() as Base

Re: [Tinyos-help] Limited number of timers?

2008-07-29 Thread Eric Decker
On Tue, Jul 29, 2008 at 5:52 AM, Nicola Wegner <[EMAIL PROTECTED] > wrote: > Hi, > > I am not sure if I got it right. Close. > Does it mean that I do not have to > care about virtual timers because they will be used automatically by > TinyOS? > Yes it means tinyos will handle the virtualizati

Re: [Tinyos-help] Limited number of timers?

2008-07-30 Thread Nicola Wegner
Thank you Eric for the detailed explanation! I did not use VirtualizeTimerC directly at first. But I tried it because I had some strange problems with a timer and thought the reason could be that I use to much timers at a time. Now I know that it has to be another reason. By now I have found a work

Re: [Tinyos-help] Limited number of timers?

2008-07-31 Thread Paul Stickney
I must be evil. I have used VirtualizeTimerC, wired to a new TimerMilliC as the source, IIRC. It worked nice for parameterization. HTH, Paul ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mail

Re: [Tinyos-help] Limited number of timers?

2008-07-31 Thread Nicola Wegner
2008/7/31 Paul Stickney <[EMAIL PROTECTED]>: > I must be evil. > I have used VirtualizeTimerC, wired to a new TimerMilliC as the source, IIRC. > It worked nice for parameterization. > > HTH, > Paul Yes you seem to be very evil ;) In my case it worked too. But I did not know if it was necessary fo