Using STM32WB55 Based on 32 KHz LSE how can we generate 40 KHz signal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-15 4:09 PM
Dear all,
How can we generate a 40 KHz signal based on LSE (32KHz crystal)?
If I Feed the HSE 32MHz / 32 to run the either LPTIMER's would it be still in low power?
Thanks,
mmsya.
Solved! Go to Solution.
- Labels:
-
STM32WB series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-17 2:43 AM
Hello @Community member​ ,
- Enable the LSE crystal as the clock source for the RTC (Real-Time Clock) peripheral.
- Enable the LPTIM peripheral and configure it to run in PWM mode.
- Set the LPTIM's prescaler and ARR (Auto Reload Register) values to generate a 40 kHz PWM signal.
- Configure the LPTIM's compare register to generate the desired duty cycle for the PWM signal.
- Enable the PWM output on the LPTIM's corresponding GPIO pin
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-03-17 2:43 AM
Hello @Community member​ ,
- Enable the LSE crystal as the clock source for the RTC (Real-Time Clock) peripheral.
- Enable the LPTIM peripheral and configure it to run in PWM mode.
- Set the LPTIM's prescaler and ARR (Auto Reload Register) values to generate a 40 kHz PWM signal.
- Configure the LPTIM's compare register to generate the desired duty cycle for the PWM signal.
- Enable the PWM output on the LPTIM's corresponding GPIO pin
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
