LLS with two wakeup sources

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

LLS with two wakeup sources

1,533 次查看
mathiasbucher
Contributor I

Hi All

I'm trying to implement the LLS mode on my MK22FX512VLH with two wakeup sources: CMP0 and CMP1. Unfortunately, only CMP0 wakes up the MCU, CMP1 has no effect. Does anyone know why?

If I enable only CMP0 or CMP1, it works.

Regards,

Mathias

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

1,326 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi, Mathias,

Any wake up source of LLWU with interrupt happens, it will wake up the core from LLS mode. The related CMP interrupt flag and LLWU interrupt flag will set accordingly.

The LLWU interrupt must not be masked by the interrupt controller to avoid a scenario where the system does not fully exit stop mode on an LLS recovery.


Wish it helps.
best regards
Ma Hui

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

0 项奖励
回复

1,326 次查看
mathiasbucher
Contributor I

Hi Hui,

As I answered you by mail, all flags (CMP0 and CMP1 flag in LLWU_F3, CMP0 & CMP1 & LLWU flag in NVIC) are cleared in LLWU interrupt routine.

What does "LLWU interrupt must not be masked by the interrupt controller" exactly mean? How do I have to route the LLWU interrupt, if it must not be masked by NVIC?

Best regards,

Mathias

0 项奖励
回复

1,324 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Mathias,

I do a test with TWR-K21F120M boar (similar with K22 120MHz product) and both CMP0 and CMP1 could wake up core from LLS low power mode.

Please check attached code for more detailed  info.


Wish it helps.
best regards
Ma Hui

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

0 项奖励
回复