Dear community,
I built a circuit to switch gain of a 20kHz to 40kHz signal between 1, 10 and 100 with an TL082 and two times two 2N7002 switches [1]. I got horrible ringing / osccilations of about 400kHz. reducing Rx_1 and Rx_amp_out1 to 10kOhm and adding a 100pF cap parallel to Rx_amp_out1 did only slightly improve the behavior. Simulating in LTspice [2] I found that my original circuit phase margin was too low but with the 100pF cap should have been sufficient.
Any guidance who do debug / improve?
I already ordered a PGA103 which I hope makes the job for me but maybe someone can guiode me how to fix my circuit
BR,
BastelBaus
[1]

[2]

I built a circuit to switch gain of a 20kHz to 40kHz signal between 1, 10 and 100 with an TL082 and two times two 2N7002 switches [1]. I got horrible ringing / osccilations of about 400kHz. reducing Rx_1 and Rx_amp_out1 to 10kOhm and adding a 100pF cap parallel to Rx_amp_out1 did only slightly improve the behavior. Simulating in LTspice [2] I found that my original circuit phase margin was too low but with the 100pF cap should have been sufficient.
Any guidance who do debug / improve?
I already ordered a PGA103 which I hope makes the job for me but maybe someone can guiode me how to fix my circuit
BR,
BastelBaus
[1]

[2]

