PWM like signal during LLS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PWM like signal during LLS

Jump to solution
821 Views
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... ?

Labels (1)
0 Kudos
1 Solution
667 Views
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.

View solution in original post

0 Kudos
2 Replies
667 Views
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 Kudos
668 Views
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 Kudos