Editor's note: Here is another neat guest tech article from my friend and colleague, Jerry Steele, Applications Manager, ON Semiconductor. (I think these short article tips are really useful)
Recently a colleague was tasked with recommending a simple pulse width modulation circuit to a customer. A straightforward approach might implement an oscillator with a square-wave output, followed by an integrator to provide a triangle waveform for a comparator with the control input for the pulse width depicted in Figure 1. While the circuit shown would work fine, I wanted to demonstrate to my colleague how using an input as an output could save her an op amp.
One approach to a pulse width modulator.
You can save one of the op amps by using a classic op amp (or comparator) relaxation oscillator. The trick here is to use the signal at the capacitor of the oscillator as the source of the triangle wave. The main caveat is that for large amplitudes at the capacitor the waveform is more exponential rather than linear. Linearity improves as the swing across the capacitor is reduced, and in general if the swing at the capacitor is around an order of magnitude lower than the amplifier or comparator output it is pretty linear. The reduced level is a result of selecting values in the positive feedback that provide transition levels at the input of around one-tenth those of the output. But the main point of this blog is the concept of using what is normally an input to a circuit as an output since it provides the required waveform. The concept is shown in Figure 2.
Using an input as an output provides the triangle wave for the duty cycle comparator.
You can also take advantage of the technique of using an input as an output if you need a sine wave. In this case resort to the classic phase shift oscillator that is always shown using a high pass phase shift network:
The phase shift oscillator is shown most often with a high pass feedback network.
To get a sine wave use a low pass network. The output is still a square wave, but the input to the circuit is a pretty decent square wave. It won't be state of the art for low distortion, but it is pretty clean.
Figure 4 illustrates a schematic and simulation of a phase shift oscillator used to generate a sine wave.
Using a low pass network on a phase shift oscillator provides a pretty decent sine wave signal at the inverting input. Never underestimate the power of using an input as an output.
Do you find this application useful? Have you ever encountered a need like this before?