Hello again,
Well your transform should have factors in it that include parts that show the periodic nature of the result.
Lets digress slightly to a much simpler example that will illustrate the same thing...
We start with a new circuit, with just a single resistor and capacitor, and RC low pass filter. This is made by connecting a resistor R to a capacitor C in series, with the other end of the cap to ground, and the voltage source connected to the other end of the resistor, and we take the output from across the cap. So we are looking at the voltage across the cap as our response. We first use a step wave input and then later we'll use a square wave input.
To start, we have the transfer function of the equation:
Vc(s)=Vpk/(s*R*C+1)
or more compactly:
Vc=Vpk/(s*R*C+1)
and now we will simplify this to use a peak voltage input of 1 volt and the RC time constant will be equal to 1 second, so we have:
Vc=1/(s+1)
The unit step time function is therefore:
Vc(t)=1-e^-t
or more compactly:
Vc=1-e^-t
Now you seem to be suggesting that we can replace the 't' in the above with 't-t1' where t1 is the duty cycle times the period, and use that as part of the solution. So doing that we get:
Vc2=1-e^-(t-t1)
and we already had Vc1:
Vc1=1-e^-t
So we subtract Vc1-Vc2 and get:
Vc=1-e^-t-(1-e^-(t-t1))
so we get:
Vc=e^(t1-t)-e^(-t)
Now say we have a 50 percent duty cycle and 1 second period, that means t1=0.5*1, so we have:
Vc=e^(0.5-t)-e^(-t)
as the final time result.
Now if we plot this we start with t=0, and there we get the solution:
Vc=0.64872127070013 volts
at t=0, and at t=5 we get:
Vc=0.0043710495391568 volts.
So we dont seem to get anything that is near 0.5 volts average.
Is this what you are trying to do, or did i miss something?
Note this circuit is much more simple so we can work with this much easier and faster for now just to illustrate the concepts.
Here is the simpler circuit:
Code:
Vin o----R---+-------o Vout
|
C
|
GND o--------+-------o GND