In my circuit (not relevant to the purpose of the question, but if you want I can post it) I have a PWM signal input to a gate driver, two external mosfets (HS and LS) and a load resistor (it's a classic half bridge configuration).
I need to measure the efficiency of the system by doing: Power(rms)_Rload[W] / Power(rms)_Vcc[W]
I am using PSpice for TI and it display the RMS value of Rload and Vcc.
I don't know if it's a "reliable" calculation, because with switching frequency = 10kHz and with 90kHz the calculated RMS power is the same! ... it seems a bit strange to me.
So I decided to export (.csv file) the red plot (below) of Power_Rload[W] and Power_Vcc[W] to excell and do the RMS calculation by hand.

However, I am not clear on what time interval I should take the data and use it in the calculation.
I want to do the calculation at:
f = 10kHz (T = 100us)
f = 30kHz (T = 33.33us)
f = 60kHz (T = 16.66us)
f = 100kHz (T = 10us)
But, before even exporting the red plot (image above) to excell, I have to choose the simulation times:

Which one do I choose for each frequency range?
If I am not mistaken RMS is calculated over a period, so for each frequency the difference between "run to time" and "start saving data after" must be equal to the period (1/f) .. am I wrong?
i.e: in the case of f=10kHz .. I choose T=1/10k = 100us

I need to measure the efficiency of the system by doing: Power(rms)_Rload[W] / Power(rms)_Vcc[W]
I am using PSpice for TI and it display the RMS value of Rload and Vcc.
I don't know if it's a "reliable" calculation, because with switching frequency = 10kHz and with 90kHz the calculated RMS power is the same! ... it seems a bit strange to me.
So I decided to export (.csv file) the red plot (below) of Power_Rload[W] and Power_Vcc[W] to excell and do the RMS calculation by hand.

However, I am not clear on what time interval I should take the data and use it in the calculation.
I want to do the calculation at:
f = 10kHz (T = 100us)
f = 30kHz (T = 33.33us)
f = 60kHz (T = 16.66us)
f = 100kHz (T = 10us)
But, before even exporting the red plot (image above) to excell, I have to choose the simulation times:

Which one do I choose for each frequency range?
If I am not mistaken RMS is calculated over a period, so for each frequency the difference between "run to time" and "start saving data after" must be equal to the period (1/f) .. am I wrong?
i.e: in the case of f=10kHz .. I choose T=1/10k = 100us

Last edited:

