Skip to main content
MM..1
Super User
Aug 7, 2022 9:35 AM UTC
Solved

How to setup STM32WB timer to 1500kHz?

Exist some internal way to do this ? Itry this , but clock config for CPU2 must be 32MHz ...

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Aug 24, 2022 1:19 PM UTC

Hello,

Unfortunately, is not possible to do that.

Best Regards

4 replies

Remy ISSALYS
ST Technical Moderator
Aug 19, 2022 10:13 AM UTC

Hello,

According to the following formula for PWM frequency, there is no possibility to reach a frequency of 1500 kHz.

0693W00000QO4TdQAL.pngThe closest frequency which can be setup is 1,52381 MHz with F_tim = 32 MHz, PSC = 0 and ARR = 20.

Best Regards

MM..1
MM..1Author
Super User
Aug 20, 2022 8:09 AM UTC

CPU1 timer is clocked 64 and this formula is source for question.

I mean A is possible change clock to other value?

B is way to generate 1,5M to pin , then connect back to timer clock input...

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
Aug 24, 2022 1:19 PM UTC

Hello,

Unfortunately, is not possible to do that.

Best Regards