Question
I want to adjust duty cycle.
Posted on March 17, 2017 at 07:39
I used TIM1_channel 1 and channel 3 .
TIM3 use ADC triigger.
so I want to update TIM1 duty cylce.
I wrote code below.
HAL_TIM_PWM_Start(&htim1,TIM_CHANNEL_1);
__HAL_TIM_SET_COMPARE(&htim1,TIM_CHANNEL_1,detact_pulse);
HAL_TIM_PWM_Stop(&htim1,TIM_CHANNEL_1);
but I can't see dudy cycle