2020-01-21 05:36 AM
i want to generate variable duty PWM using TIM1 & DMA but it not work.
uint16_t variable_duty[10] = {0,1000,2000,3000,4000,5000,6000,7000,8000,9000};
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_1,(uint32_t*)variable_duty,10);
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_2,(uint32_t*)variable_duty,10);
HAL_TIM_PWM_Start_DMA(&htim1,TIM_CHANNEL_3,(uint32_t*)variable_duty,10);
2020-01-21 05:47 AM
The correct setup of everything (not shown in your code) is important. You might look at this example http://fabioangeletti.altervista.org/blog/stm32-interface-ws2812b/
KnarfB
2020-03-23 10:13 AM