Skip to main content
MM..1
Super User
August 7, 2022
Solved

How to setup STM32WB timer to 1500kHz?

  • August 7, 2022
  • 4 replies
  • 1282 views

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

This topic has been closed for replies.
Best answer by Remy ISSALYS

Hello,

Unfortunately, is not possible to do that.

Best Regards

4 replies

Remy ISSALYS
ST Technical Moderator
August 19, 2022

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
August 20, 2022

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
August 24, 2022

Hello,

Unfortunately, is not possible to do that.

Best Regards