Reading current value of alarm downcounter after coming out of deep sleep

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 18, 2016 by lpcware
Content originally posted in LPCWare by toad on Thu Mar 03 15:59:36 MST 2016
I have a 4357 waking from deep sleep both from external wake-ups and the alarm counter. After wake-up the idle daemon needs to read the current downcounter value to see how much time has elapsed. When I read the counter immediately after coming out of deep sleep it reads a downcounter value of what was initially preloaded, if I wait 1mS it then returns a correct count. Is there some other way without the delay ?