cancel
Showing results for 
Search instead for 
Did you mean: 

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

thannara123
Senior

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

4 REPLIES 4
SRedd.5
Senior III

HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1)

This is not required I think.

thannara123
Senior

It is worked on CH2 AND CH2N.

WHAT WILL BE THE REASON

please post the complete code.

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

JW