PWM and MOSFET

For general Flowcode discussion that does not belong in the other sections.
Post Reply
Sergejs
Posts: 143
http://meble-kuchenne.info.pl
Joined: Tue Oct 19, 2021 9:31 am
Has thanked: 73 times
Been thanked: 5 times

PWM and MOSFET

Post by Sergejs »

When I limit begin of PWM duty cycle it also works and give unstable Volts on the pin output. Is it wrong working and how it correct?
01_PIC_DRIVE.fcfx
(11.38 KiB) Downloaded 29 times

chipfryer27
Valued Contributor
Posts: 1149
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 285 times
Been thanked: 412 times

Re: PWM and MOSFET

Post by chipfryer27 »

Hi

I think you need to provide a bit more information.

Your title is PWM and MOSFET suggesting the Pin connects to the gate of your transistor, but you haven't said how you know the voltage isn't stable. You would need a scope or logical analyser to see what is happening at the pin. Simulating, your chart does as expected.

What is it you are intending to drive? There will be a minimum duty cycle that things can work down to. An LED will have a lower duty cycle than say a motor.

Regards

Post Reply