Re: [Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-16 Thread Janos Sallai
> I meant that if derectly set the pin in the beginning of each ISR,that would > cause a problem : if an interrupt happened when the MCU is just active, > and the pin would be set ,but it was really not a wake up situation. Assuming that - Initially, you set the pin. - You clear the pin when the M

Re: [Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-15 Thread 张荣雨
be set ,but it was really not a wake up situation.   Did I make myself clearly? Or I misunderstanded something? Thanks a lot. --- 09年6月16日,周二, Janos Sallai 写道: 发件人: Janos Sallai 主题: Re: [Tinyos-help] Atmega1281 sleep and active time analysis 收件人: "张荣雨" , "tinyos forum"

Re: [Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-15 Thread Janos Sallai
a flag or something else? > > Thanks. > --- 09年6月15日,周一, Janos Sallai 写道: > > 发件人: Janos Sallai > 主题: Re: [Tinyos-help] Atmega1281 sleep and active time analysis > 收件人: "张荣雨" , "tinyos forum" > > 日期: 2009年6月15日,周一,下午10:35 > > It wakes up when an interru

Re: [Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-15 Thread Janos Sallai
n platform Tinyos1.x,but I can't find > the ISR sorce code in Tinyos 2.x. > > Hope for more advice and thanks a lot for you help. > --- 09年6月12日,周五, Janos Sallai 写道: > > 发件人: Janos Sallai > 主题: Re: [Tinyos-help] Atmega1281 sleep and active time analysis > 收件人: "张荣

Re: [Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-12 Thread Janos Sallai
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, 张荣雨 wrote: > Hi all: > > Now I am analysing the atemga1281 sleep and active time on

[Tinyos-help] Atmega1281 sleep and active time analysis

2009-06-11 Thread 张荣雨
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