I'm making a simple op amp circuit to use it as a compactor.
I connect the non-inverting point to a simple circuit and the inverting to a 3 volt dc supply.
the circuit should compare the voltage at the non-inverting terminal with the 3 volt.
Actually the circuit is working very well . But, when I change the value of R1 and R2 to 500 M ohm the circuit goes crazy .The voltage at the point between R1 and R2 is no longer 2 volt it changes to 2.4 volt
I know that the high value of the resistance made that.
What should I do to solve this problem and make the circuit works well at 500 M ohm.