why is my op amp doing this?

AFex54

Apr 10, 2015
144
Joined
Apr 10, 2015
Messages
144
Im using an lm324 and a 9V supply with this circuit.
the output will sit around 8V and will not hold a sample it justs climb back to this voltage after opening the switch,
I tried this with a tl074 and it behaves correctly , what is the issue with using an lm324?
290px-Sampleandholdcircuit.png
 

Laplace

Apr 4, 2010
1,252
Joined
Apr 4, 2010
Messages
1,252
The issue is input bias current charging the capacitor and thereby changing the capacitor voltage. According to the spec sheets the typical input bias current for the LM324 is 40 nA whereas for the TL074 it is 65 pA. Both op amps have the same problem, but it is 615 times worse for the LM324.
 
Top