I have an impulse train of amplitude 1V with constant pulse width \$\tau\$ and I would like to build a circuit that takes this signal and converts it to a constant DC voltage of value \$\tau\$. I can only use opamps, comparators, resistors, DC power supply, diodes and capacitors. How can I build such a circuit?
I thought about using an integrator but this will not really give me the area under the pulse but rather an antiderivative of the signal I believe.
EDIT : In response to a comment of @pipe, here's what I can tell more about the circuit :
- The input impulse train can have a pulse width from [~0 to 300us] that is constant.
- Let's say that my expected values for the output voltage is in mV such that 300mV correspond to a pulse width of 300us.