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... ?
Solved! Go to Solution.
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.
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.
-------------------------------------------------------------------------------
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.