cinch
Member level 2
Hi,
I am designing a switched cap LPF to average out a square wave. The frequency of square wave is 10kHz. The magnitude of the input square wave varies. The circuit should give an output which is the mean of +ve and -ve amplitude of the square wave.
For eg: If input square wave is varying from 1V to 1.2V, the output should give 1.1V. If input sqaure wave is varying from 1V to 2V, output should be 1.5V, etc.
I have tried simple switch capacitor LPF, with switching frequency set to half of input signal frequency. It works for sine wave input but it doesnt work for square wave input.
thanx in advance for suggestions.
Regards,
Cinch
I am designing a switched cap LPF to average out a square wave. The frequency of square wave is 10kHz. The magnitude of the input square wave varies. The circuit should give an output which is the mean of +ve and -ve amplitude of the square wave.
For eg: If input square wave is varying from 1V to 1.2V, the output should give 1.1V. If input sqaure wave is varying from 1V to 2V, output should be 1.5V, etc.
I have tried simple switch capacitor LPF, with switching frequency set to half of input signal frequency. It works for sine wave input but it doesnt work for square wave input.
thanx in advance for suggestions.
Regards,
Cinch