Hello,
I have problems with my circuit.
Vth is an exponentially rising then falling waveform, generated from a monostable vibrator square wave passing through RMCM.
A bias was added to Vth so it has maximum and minimum values of 3.3V and 1.6V(the baseline).
I would like to reset Vth to baseline after it reaches the peak faster, rather than waiting for the exponential decay.
Following is the circuit I designed.
My idea is to set the thresholds of the Schimitt trigger to be 1.6V and 3.2V. When Vth reaches 3.2V the Schimitt trigger switches on the MOS and CM dischages through RD. When Vth goes back to the baseline, the Schmitt trigger switches off the MOS and Vth stays in the baseline.

I used an opamp to realise the Schmitt trigger with the following circuit.
The parameters are: R1=4.84kΩ, R2=10kΩ, Vref=2.155V, Vp=3.3V, Vn=0V.

Following are the real signals I got. The blue curve is Vth, the green curve is the output from the Schmitt trigger, and the red curve is the voltage in the drain terminal(RD= 22kΩ).

When I connect the MOS source terminal back to Vth, the circuit started to oscillate. I tried to add a resistor in this path and change the value of RD but it didn't work. The circuit either oscillated or nothing changed to Vth.
The following figure shows the expected result: Vth should return to the baseline faster.
My I ask which part did I do wrong? any advice would be appreciated.
I have problems with my circuit.
Vth is an exponentially rising then falling waveform, generated from a monostable vibrator square wave passing through RMCM.
A bias was added to Vth so it has maximum and minimum values of 3.3V and 1.6V(the baseline).
I would like to reset Vth to baseline after it reaches the peak faster, rather than waiting for the exponential decay.
Following is the circuit I designed.
My idea is to set the thresholds of the Schimitt trigger to be 1.6V and 3.2V. When Vth reaches 3.2V the Schimitt trigger switches on the MOS and CM dischages through RD. When Vth goes back to the baseline, the Schmitt trigger switches off the MOS and Vth stays in the baseline.

I used an opamp to realise the Schmitt trigger with the following circuit.
The parameters are: R1=4.84kΩ, R2=10kΩ, Vref=2.155V, Vp=3.3V, Vn=0V.

Following are the real signals I got. The blue curve is Vth, the green curve is the output from the Schmitt trigger, and the red curve is the voltage in the drain terminal(RD= 22kΩ).

When I connect the MOS source terminal back to Vth, the circuit started to oscillate. I tried to add a resistor in this path and change the value of RD but it didn't work. The circuit either oscillated or nothing changed to Vth.
The following figure shows the expected result: Vth should return to the baseline faster.
My I ask which part did I do wrong? any advice would be appreciated.

