Electronic – How to remove DC offset of the input signal without using an opAmp

dc-offsetpulse

Below is a pulse train with a DC offset:

enter image description here

This will go to the circuit below as input.

enter image description here

The thing is this works well in simulation but in real I need to remove the offset of the input signal.

My question is:

How can I remove this DC offset without using another opAmp i.e. just by adding a component to the circuitry ect.? Is there an easy way?

Best Answer

There has been a similar question recently: Solution for adding around 60V dc-offset on digital signal(0 and 5v) of 10MHz frequency

Except you want to remove some offset (not add), so the circuit is a little bit different, but the principles are exactly the same (and well described in this other answer - the only difference is that the capacitor is charged when the signal is at high level, not low).

Here it is:

enter image description here

That will lead to a signal that will swing between 0.5V and 5.5V (due to the diode voltage drop). The advantage compared to a RC filter is that the levels won't change depending on the duty cycle.