cancel
Showing results for 
Search instead for 
Did you mean: 

I want to adjust duty cycle.

sunwoo lee
Associate II
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

1 REPLY 1
S.Ma
Principal
Posted on March 17, 2017 at 10:05

Preliminary checkup of STM32Cube HAL/LL example for same MCU boards related to timer and PWM would be good start.