This sawtooth oscillator circuit, drawing less than 3.2 µA and working at under one volt, is a useful building-block that fits the bill for extremely low-power consumption and operation to low supply voltages. It could be used as the basis for a PWM control loop, a timer, a VCO, or as a capacitance-to-frequency converter. It's a nifty circuit because it a) uses an open-drain comparator output to make an accurate switched current source, and b) uses a latch function to make a simple comparator into a window comparator, while needing no extra components.
The appeal in this circuit is found in the combination of the tiny size, the ridiculously low number of external components, a low supply current, and the ability to maintain a constant amplitude and frequency despite the variable battery voltage. Unlike the classic op-amp astable multivibrator, this design features comparator thresholds that are set by precision reference voltages rather than the output swing of the op amp in combination with resistor feedback. A ratiometric fixed-frequency design of this type usually results in a variable amplitude sawtooth waveform, which is undesirable in PWM control loops as it can affect the loop gain. As a side benefit, the up/down ramps can be independently controlled by scaling R1 and R2.
Referring to Figure 1, there are only eight components in this circuit: two ICs, four resistors, a capacitor, and a power supply bypass capacitor. The key bits are two Touchstone Semiconductor analog building-block ICs in 4mm2 TDFN packages (the TS12011 and the TS12012), that each contains an op amp, a comparator, and a reference. By leaning on their characteristics, the design can be kept terrifically tiny and simple.
Here's how the circuit works: A summing integrator feeding a window comparator generates the sawtooth wave. The integrator summing node is held at VREF by the feedback action of the amplifier. Thus, a fixed positive reference current set by R1 is balanced by a larger-amplitude switched negative current set by R2. The lower comparator block has an open-drain output; when its output is low, current is pulled from the summing node via R2:
IR1 = (0.87•VREF – 0.58•VREF )/R1 and IR2 (switched) = 0.58•VREF /R2
If IR2 is set to 2•IR1 , a symmetrical triangle wave results.
The frequency is set as follows:
where V is the difference between 0.87•VREF and 0.58•VREF . Here, f = 850 Hz.
Figure 2 shows the waveforms at the Sawtooth and Pulse outputs.
The window comparator employs a built-in latch function of the TS12012 to provide hysteresis. The latch function has a sly feature — whenis pulled low, the comparator inputs are still active and sensing the input state, until the inputs cross. The comparator in U2 gets set when the ramp crosses the lower threshold at 0.58•VREF , and reset when the ramp crosses 0.87•VREF . The reset pulse is momentary, but puts the latch in a state where the comparator inputs crossing cause it to set and latch again (which happens due to the switched reference current causing the integrator to ramp negative). Net result: no glue logic needed.
The battery voltage ranges down to 0.9V with a miserly V DD current of 3.2 µA. Maximum operating frequency is limited by the op amp slew rate and prop delays to about 3 kHz. Disconnecting R1 and driving it with a voltage source greater than 0.58•VREF gives you a VCO function.