I am working with a PMOS-based switching circuit where the PMOS turns on for 20 ms with a total period of 40 ms (i.e., a 50% duty cycle). In the schematic, there is a capacitor C1 and resistor R2 placed between the gate and source terminals of the PMOS.
Keep in mind that LTSpice voltage sources are ideal, which means that the internal resistance is zero. They are not a good model for any practical power source, driving circuit, etc.
It seems to me that C1 would cause a (potentially large) current from V2 to be sunk into the V1 supply (an Arduino pin?) anytime that V1 switches from HIGH to LOW...
Assume V1 goes from LOW to High Z (maybe open collector or drain ? ).
When V1 is LOW the MOSFET is ON.
When V1 goes HIGH Z, the capacitor transfers V2 to the gate turning OFF the MOSFET, hence speeds the turning OFF of MOSFET.
However, there is too much that we are not being told.
How are the above 2 statements linked? For example the first statement might be about what you are trying to do and the second one might be about a circuit you found on the internet that you thought might fulfil the needs of the first statement. Or not. Or something else.
I note the load on the MOSFET in the circuit is 10k, is that representative of the load you are driving? If not, then what is your intended load?
There are too many unanswered questions to be helpful, others have posed some of the questions that need answers.
Probably not desirable, but certainly possible (e.g., if V1 is disconnected, powered down, or reset). It would be desirable to have a defined input on the MOSFET gate when V1 is floating.
The OP circuit connects the input directly to the gate (or base), and the RC filter goes to source (or emitter) thus increasing switching time and decreasing input impedance..
I think that figuring out the input properties will reveal more bogus with the OP circuit.
It seems to me that C1 increases gate capacitance, and will therefore slow down transitions. Normally that's not a good thing for a mosfet used in PWM mode - it will get hotter.