cancel
Showing results for 
Search instead for 
Did you mean: 

PWM with multiple interrupts at different frequencies

Ricko
Senior

Hi,

I am using a STM32L452RET6 (without any RTOS) and I would like to use the same timer for both:

- drive a sounder on PWM at 4KHz (but ideally also other changing frequencies above and below 1ms time period so it can make more elaborate sounds which)

- generate and also 1ms interrupt to check other tasks.

 

What would be the best way to configure and use the micro to implement that?

 

Thank you as always 🙂

0 REPLIES 0