Wake up at fixed time on lpc812

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

Wake up at fixed time on lpc812

873 次查看
martinpare
Contributor I

I am working with the LPC812.  The microcontroller will be in Power Down mode and it needs to wake up every 5 minutes or on pin interrupt.  The problem I have right now is that with the code I have, when there is a pin interrupt, it will also reset the 5 minutes timer.

I tried reading the LPC_WKT->COUNT register when waking up with the Pin interrupt, so I could restart the WKT timer with this value when going back in Power Down mode, but I always read 0.

How can I do that?

Thank you!

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

695 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Martin Pare,

    The pin interrupt should not influence the WKT timer.

    When you read the COUNT register, please check this remark in the user manual:

pastedImage_1.png

Please read the register twice in succession.

Please try again.

If you still have question, please let me know!~


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------