cancel
Showing results for 
Search instead for 
Did you mean: 

how to change PWM_Periode in the Code?

Samuel1
Associate III

Does anyone know if I can change the PWM signal period in the main loop? after initializing the timer in Cubemx?

1 REPLY 1

PWM period is given by the timer's TIMx_ARR register.

There surely is some incantation in Cube/HAL/LL to change it, but heck, it's just one write to one register.

I don't Cube.

JW