Hi, I am working on a circuit to provide a controlled voltage between 0-12V from a PWM pin on a microcontroller. I have set up a non inverting op amp (TI RC4558) with a gain of two, just to test my ideas. The op amp behaves as expected as long as the input signal to the non inverting input is above 0.7V, with the output showing the gain as expected. However, when the input signal drops below this threshold, the output suddenly becomes saturated. I have performed a number of searches, but my google-fu is clearly inadequate. The op amp is connected to a single rail supply of +12V and GND. I have attached some screen shots of the basic circuit I am using and the output on my USB scope. I am totally boggled as to what exactly is occurring.