AnsweredAssumed Answered

I want to adjust duty cycle.

Question asked by Sun_Woo.Lee on Mar 17, 2017
Latest reply on Mar 17, 2017 by KIC8462852 EPIC204278916

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

Outcomes