Since this is very time critical, I would set the port values
directly. Port A2 is the red led, that's a good point to start with.
See chapter 13 in the atmega1281 datasheet.

Janos

On Thu, Jun 11, 2009 at 7:56 PM, 张荣雨<[email protected]> wrote:
> Hi all:
>
> Now I am analysing the atemga1281 sleep and active time on tinyos-2.x
> platform,and I find a method in a paper using Oscilloscope: an output pin
> was turned on in each ISR when the processor woke up from a sleep mode,the
> TOSH_run_task() function turned off the output pin before executing the AVR
> sleep instructio. So I follow it to turn off the output pin in the
> Scheduler.taskLoop() of tinyos2.x  just before the McuSleep.sleep()
> instruction. But I do not know where to turn on the output pin on tinyos2.x
> platform.
>
> Can anyone help me? Or other ways to analysis the mcu sleep and active time?
>
> Thanks
>
>
> ________________________________
> 好玩贺卡等你发,邮箱贺卡全新上线!
> _______________________________________________
> 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

Reply via email to