op-amp ramp circuit gives half voltage
If your chip is ok, then it is probably a "slew rate" problem. That is, you have to check if your opamp is able to follow the ramp. Try with a lower frequency signal, which implies a smaller slope in the ramp.