1)what im doing?..
i am trying to develope the code to switching from power save mode to normal mode using timer2.
description:
i done is make the atmega328P in sleep mode and set the timer2 for 2sec time slice using 125khz frequency.i read in datasheet that when timer2 get triggered it will wake up the controller(atmega 328P) in normal mode.That is whai i have done.
So i am axpecting that timer2 will make the controller wake up after the time slice.
2)problem:
but timer is not going to wake up after given time slice.I observe that by using multimeter to observing the current rate.It is constantlly showing me 38.6mA .Normally by using 125khz frequency in normal mode it draw 44.2mA.
so it has to showing me for first 2sec 38.6mA where controller in sleep mode and when it wake up after 2sec time slice multimeter should be indicate 44.2mA current rate.But it is not showing that.It constantly showing me 38.6mA like controller is not wake up by timer2.
so how to fix this???????
And i also wanted to tell that by making adc and spi disable there should be current rating gets low but surprisingly its not make any difference at all.
rough.ino.ino (1.17 KB)