Hi,
I am building a high side switch for a portable experimental setup.
I have a 0-5V PWM source from a microcontroller fed into an NPN and that into a P-Channel MOSFET with a 12V supply. My load is "high current", maybe a couple amps, and purely resistive (some capacitance may exist).
I modeled my RC low pass filter using a 10 Ohm resistor and a 1000uF capacitor, as can be seen below (from http://sim.okawa-denshi.jp/en/PWMtool.php). At 50% duty cycle the voltage settles at 6V, as expected.
But when I build the circuit or model it with LTSpice I dont get that result. The voltage does not settle at 6V but rather at around 9-10V. (Blue is PWM, Red is voltage at the Drain, and green is voltage after the filter)
I have tried changing the load resistance, the values of the RC filter to no avail. Here is a sim using 1k, 10uF for the filter and 1K for the load, this time the output is less than 6V.
What am I doing wrong?
I am building a high side switch for a portable experimental setup.
I have a 0-5V PWM source from a microcontroller fed into an NPN and that into a P-Channel MOSFET with a 12V supply. My load is "high current", maybe a couple amps, and purely resistive (some capacitance may exist).
I modeled my RC low pass filter using a 10 Ohm resistor and a 1000uF capacitor, as can be seen below (from http://sim.okawa-denshi.jp/en/PWMtool.php). At 50% duty cycle the voltage settles at 6V, as expected.
But when I build the circuit or model it with LTSpice I dont get that result. The voltage does not settle at 6V but rather at around 9-10V. (Blue is PWM, Red is voltage at the Drain, and green is voltage after the filter)
I have tried changing the load resistance, the values of the RC filter to no avail. Here is a sim using 1k, 10uF for the filter and 1K for the load, this time the output is less than 6V.
What am I doing wrong?


