PWM like signal during LLS

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

PWM like signal during LLS

跳至解决方案
917 次查看
dusek_martin
Contributor IV

Hi,

I would like to generate square wave on some pin during sleep mode (e.g. LLS). Duty is not important, the frequency can be 1 kHz - 10 kHz.

Are there any options for MKL27? E.g. LPO, LPTMR, LPUART... ?

标签 (1)
0 项奖励
回复
1 解答
763 次查看
dusek_martin
Contributor IV

This is not ideal as I will have to wake the MCU quite frequently.

I found out that it is possible to output LPO clock using SIM->SOPT1 = SIM_SOPT1_OSC32KSEL(3) | SIM_SOPT1_OSC32KOUT(1);

LPO runs even in LLS mode, so I have 1 kHz square wave everytime.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
763 次查看
nxf56274
NXP Employee
NXP Employee

Hi,

In VLPW , You can use LPTMR to generate pwm. In the interrupt of lptmr, you toggle the IO‘s level. But in LLS, you can't generate the PWM. Because the pins will be latched.
Have a great day,
TIC

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
764 次查看
dusek_martin
Contributor IV

This is not ideal as I will have to wake the MCU quite frequently.

I found out that it is possible to output LPO clock using SIM->SOPT1 = SIM_SOPT1_OSC32KSEL(3) | SIM_SOPT1_OSC32KOUT(1);

LPO runs even in LLS mode, so I have 1 kHz square wave everytime.

0 项奖励
回复