PWM like signal during LLS

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

PWM like signal during LLS

ソリューションへジャンプ
836件の閲覧回数
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 解決策
682件の閲覧回数
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 返答(返信)
682件の閲覧回数
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 件の賞賛
683件の閲覧回数
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 件の賞賛