AnsweredAssumed Answered

Stm32f103 nucleo board with cubemx, variable pwm out

Question asked by am.lu on May 3, 2016
Latest reply on May 6, 2016 by Clive One
hello
im working with a nucleof103 and the cubeMX HAL library.
i managed so far to get a steady pwm out via tim3_ch1 on PA6.
but id like to change the DC after each periode, therefore enable interrupts and change then the registers value. but so far, i did not find any function from the HAL library except to completely reinit the entire timer structure. i guess i have to write the the register directly. i dont know yet which one, do i have to write my new pulse width to the ARR or the CCR register?

Outcomes