I built a simple op-amp circuit using LM324 (SO-14 package). The structure of the circuit is shown below and Vout = 1.65 + 3.3*Vi. I first used 3.3V single power supply as Vcc and applied a signal 0.125+0.125*sin(t) to Vi. The Vout was suppose to be 2.0625 + 0.4125*sin(t). However, the actual output was capped at about 2.0V and only the lower half of sin(t) was correct. Assuming VCC might not be high enough, I changed VCC to 5V and this time, Vout was correct as full sin wave with offset at about 2.0V.
Since the LM324 datasheet says it supports single power supply from 3V to 30V, how come the Vout was capped at about 2.0V when VCC was 3.3V?
All resistors are in kilo ohms and I think there shouldn't be any current driving capability issue.