Skip to main content
Samuel1
Associate III
March 1, 2019
Question

how to change PWM_Periode in the Code?

  • March 1, 2019
  • 1 reply
  • 428 views

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

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
March 1, 2019

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