Skip to main content
Js.1218
Visitor II
November 13, 2019
Question

How can I turn off a PWM signal and turn on a High (one) in the same pin?

  • November 13, 2019
  • 0 replies
  • 418 views

I´m using a PWM signal and the complementary with TIM1(timer1). The Pwm´s complementary singal is going out from pin A7 then I want to turn off the pwm signal from that pin and turn on a HIGH value (one) in the exact same pin (A7).

The thing is that I can´t do that using HAL_GPIO_WritePin(), I think that is because of the port is not in GPIO mode.

Can somebody help me please?

That would be really helpfull.

I have got a STM32F103C8

This topic has been closed for replies.