
The ramp generator in Fig 1a and the triangle-wave generator in Fig 1b charge capacitor C1 linearly. The key to the circuits' linearity is an op-amp adder that sums a reference voltage with the voltage on C1.
For Fig 1a's ramp generator, the adder comprises op-amp IC1, R4, R5, and associated components. The adder sums capacitor C1's voltage, VCAP, via R4 with a constant voltage, VSET, via R5. (Size R2 through R4 to suit your application.) The voltage at the output of the adder is thus
VCAP + VSET
and the voltage across resistor R1 is
VCAP + VSET = VCAP
Because the adder holds the voltage across R1 constant, a constant current flows through R1, charging C1 linearly. Fig 1b operates in a similar manner, except that comparator IC1 switches the polarity of VSET, ultimately producing a triangle-wave output. (DI #1631)