The OPA335 model doesn't seem accurate in generating my simulation. The circuit works satisfactory on a lab setup. Please advise.
On the circuit below, R2 and R3 create a mid point supply. Initially C1 is discharged and therefore the output will go high. C1 starts charging from output through R1.
When VC1>VIN+ the output toggles low, C1 starts discharging Through R1.
R4 provides hysteresis whenever the output changes state.