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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

336 Views
lpcware
NXP Employee
NXP Employee
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 ?
Labels (1)
0 Kudos
1 Reply

322 Views
lpcware
NXP Employee
NXP Employee
bump
0 Kudos