cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup STM32WB timer to 1500kHz?

MM..1
Chief II

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

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

Unfortunately, is not possible to do that.

Best Regards

View solution in original post

4 REPLIES 4
Remy ISSALYS
ST Employee

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

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...

Hello,

Unfortunately, is not possible to do that.

Best Regards

In other companies people make frequency generators with phase adders / accumulators, ie NCO/DDS

These are incredibly simple and flexible, got ASICs from the 1990's using this technique for accurate/flexible baud rate generators.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..