2023-10-14 02:47 AM - edited 2023-10-14 02:54 AM
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
2023-10-14 06:19 AM
HAL_TIMEx_PWMN_Start(&htim1, TIM_CHANNEL_1)
This is not required I think.
2023-10-15 05:09 AM
It is worked on CH2 AND CH2N.
WHAT WILL BE THE REASON
2023-10-15 05:32 AM - edited 2023-10-15 05:32 AM
please post the complete code.
2023-10-15 10:57 PM
Read out and check/post content of TIM and relevant GPIO registers.
JW