AnsweredAssumed Answered

NucleoF103, CubeMX HAL, PWM Out Tim3CH1

Question asked by on May 4, 2016
Latest reply on May 7, 2016 by Clive One
im working on a project to drive a WS2812B led string.

i use TIM1 as time source and TIM3 for the PWM generation.

im so far able to achieve a PWM signal @ 800kHz.
For testing, i tried (see stm32f1xx_it.c) to drive the first 3 leds in the led string (24bit per led), therefore, send 3x 0x555555 (3x24bit). i get a 0-1-0-1... data out by using the 
HAL_TIM_PWM_PulseFinishedCallback function. but unfortunately, after 3x24 times calling the callback, the output sent way more than these 3x24 pulses, since way more than 3 leds are turned on.

is it possible that it is not possible, after each pulse to stop the timer and pwm, set the CCR register and then start it again?