Wake up at fixed time on lpc812

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Wake up at fixed time on lpc812

886件の閲覧回数
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 返信

708件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------