Skip to main content
thannara123
Associate III
October 14, 2023
Question

pwm complementary Mode not getting Invertered output ie HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1);

  • October 14, 2023
  • 4 replies
  • 1774 views

I am using STM32f103 Controller ,

In that i am trying to make complementary PWM output by using Timer 1

TIM1 with PWM Generation CH1 CH1N ,

But only gets the wave from this HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1); function not getting other inverted signel from the pin PA8 

not getting PWM signal on PA7 

 

HAL_TIM_PWM_Start(&htim1, TIM_CHANNEL_1);

HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1);

 

what is the wrong with me

 

similar doubt thread is here https://community.st.com/t5/stm32-mcus-products/how-to-only-output-stm32-pwm-ch1n-and-disable-ch1-in-quot-pwm/td-p/123113

But i didnt understood the problem

This topic has been closed for replies.

4 replies

SRedd.5
Senior III
October 14, 2023

HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1)

This is not required I think.

thannara123
Associate III
October 15, 2023

It is worked on CH2 AND CH2N.

WHAT WILL BE THE REASON

SRedd.5
Senior III
October 15, 2023

please post the complete code.

waclawek.jan
Super User
October 16, 2023

Read out and check/post content of TIM and relevant GPIO registers.

JW