PWM Pin Output ( high voltage )

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

is there a way to change the stop output voltage of the PWM pin I am using ( GPIO_11  ) .  I am trying to create pulses at a specific frequency but the pin when stoped ( timer disable )  sets to 3.3V.. I want to be able to have to go to zero V.

I have tried changing the OC polarity to Low but that did not work  .Changing the duty cycle and not stopping the PCM timer does not produce good results.

thanks

TIM_OCPolarity_Low

0 Likes
2 Replies
AlanH_86
Employee
Employee
100 replies posted 50 replies posted 25 solutions authored

What frequency and duty cycle are you trying to create?

0 Likes
Anonymous
Not applicable

36mhz frequency and 60 percent duty cycle. I want to them use that as the carrier and pulse from 250 cycles to 2000 cycles depending on factors.

Whenever I stop the Pwm to create the low part of the pulse , the voltage goes high ( instead of low ). So I have tried then changing the duty cycle to zero to fake a Pwm stop. It's. It working well. So back to plan A and trying to find the way ( in software to have the Pwm pulse stop with a low voltage. )

Rob

0 Likes