Hi TinyOS team,
 
I have spent the greater part of a month trying to solve a problem without much success. These are the scenarios i have:
 
Scenario 1
 
1. Start two timers (SingleTimer - Timer1) and also Timer3 (SIG_INTERRUPT).
2. After 500 ms when timer1 fires, read the value of TCNT3L, to make sure that timer3 worked
     correctly.
3. The results are perfect since TCNT3L reads a value of about 15300, which matches 500ms.
 
Scenario 2
 
1. Now instead of two timers, use  a hardware interrupt (SIG_INTERRUP4) and Timer3.
2. When the first interrupt is detected, start timer3.
3. 500 ms after the first interrupt was detected, send another interrupt to the mote and then 
    read the value of TCNT3L immediately.
4. The result makes no sense, since TCNT3L has a value between 1 and 5, which is a lot
    less than 500ms.
 
Is this a tinyos scheduling problem, or there is something diffeerent that has to be done with interrupts on tinyos?
 
Thanks
Kenneth
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to