Detect wakeup source after Deep Power-down

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Detect wakeup source after Deep Power-down

跳至解决方案
1,381 次查看
vanska
Contributor II

Hi,

I'm using Deep Sleep and Deep Power-down in our application. In both the wakeup can be triggered by RTC alarm and two GPIOs (Deep Sleep: PINT, Deep Power-down: dedicated wakeup pins).

I need to use Deep Power-down to minimize the power consumption for most of the time (Power-down is not an option since it drives all pins low). The problem is that I also need to know which wakeup source I can blame after the wakeup. In Deep Power-down a wakeup causes a chip reset which means I cannot use RTC general purpose registers to store the wakeup source data (I assume there's no time for using ISR before the reset occurs).

Is there any way I could see the wakeup source after waking up from Deep Power-down?

I'm using LPC55S28.

Thanks.

标签 (1)
0 项奖励
回复
1 解答
1,369 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi vanska 

We can check general purpose always on domain data storage. I extract it from UM11126.If this doesn't help, please contact me again. 

 

ZhangJennie_0-1685677592174.png

This is General purpose always on domain data storage.

Remark: This register is managed and updated by the ROM boot and cannot be updated by any application.

Hope this helps,

Jun Zhang

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,370 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi vanska 

We can check general purpose always on domain data storage. I extract it from UM11126.If this doesn't help, please contact me again. 

 

ZhangJennie_0-1685677592174.png

This is General purpose always on domain data storage.

Remark: This register is managed and updated by the ROM boot and cannot be updated by any application.

Hope this helps,

Jun Zhang

 

0 项奖励
回复
1,271 次查看
vanska
Contributor II

Thanks @ZhangJennie!

I was already using AOREG1 storage for logging purposes but the problem was that it didn't provide information about which I/O caused the wakeup (indeed it shows if it was caused by the RTC alarm or some wakeup pin). But after taking another look at the user manual, I found the WAKEIOCAUSE register which was the missing piece of the puzzle. Now it works perfectly!

vanska_0-1686670536024.png

 

0 项奖励
回复