simulate this circuit – Schematic created using CircuitLab
I'm using a precision OP AMP LMC6062AIM as a buffer (Voltage follower). The supply is +5V and GND.
The INPUT is a DC voltage (no modulation). If this voltage gets within 1V of the High Rail (so bigger than 4V or about), the output of the OP AMP goes to 5V (the rail). Also tried raising the supply to 7.5V and just like before, at 6.5V Input, the Output goes to the rail.
I've never seen this phenomenon before. I tried the same setup with a similar OP AMP (LMC6482) and this doesn't happen. It works as expected.
Anyone how any idea why this happens, or how it can be corrected?