Skip to main content
sunwoo lee
Associate
March 17, 2017
Question

I want to adjust duty cycle.

  • March 17, 2017
  • 1 reply
  • 609 views
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

    This topic has been closed for replies.

    1 reply

    S.Ma
    Principal
    March 17, 2017
    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.