I have a ATMega1284 ( not a pico power part ) project that im FINALLY getting to go to sleep.
it sleeps just fine but on wakeup it resets. Grrrr
If I use SLEEP_MODE_IDLE everything is fine, if I use SLEEP_MODE_PWR_DWN it resets on wakeup
My Sleep code
cli(); set_sleep_mode(SLEEP_MODE_PWR_DOWN); //set_sleep_mode(SLEEP_MODE_IDLE); // sleep_mode() has a possible race condition sleep_enable(); sei(); sleep_cpu(); sleep_disable();
Other that that it's working great, I'd just like to reduce power as much as possible. I'm about ready to just use idle mode :(
For those reading my post history yes the full swing osc fixed my start up issue. I just don't want to bring that old thread back to life
Thanks for the help!
Keith