So I have PWM signal controlling an N-FET switch at around 20kHz.
While it works in theory, in reality it takes longer to switch the MOSFET off. I assume it is because of output capacity parameter?
And then there's the fact that it starts shutting off from negative voltage. Why is that?
Real world example uses BS170.
Blue trace - Vgs, Green trace - Vd:
Yellow trace - Vgs, Red trace - Vd: