EDN logo


Design Ideas: February 15, 1996

Swop amp makes square-wave generator

Jim Todsen,
Burr-Brown Corp
Tucson, AZ


thumbnailThe circuit in Figure 1 is a simple, adjustable square-wave generator. It provides a low-cost means to generate precise square waves that rival those of expensive function generators. The circuit can swing ±2V into a 50 Ohm load, and it operates from ±5V supplies with 55- and 35-mA quiescent currents from the positive and negative supplies, respectively. The key component in this circuit is the OPA678 switchable-input op amp (swop amp), IC4. This device is a fast-settling op amp with high output-drive capability.

The swop amp has two independent differential inputs, A and B. The TTL input CHA [overscored] selects the active input: A for CHA [overscored] low and B for CHA [overscored] high. The OPA678 can switch rapidly (typically, in 4 nsec) between inputs. The VFC121 voltage-to-frequency converter (IC1) provides a convenient adjustable clock. The duty cycle of IC1 is a function of its output frequency. The D flip-flop IC2 provides a 50%-duty-cycle clock for IC4 by toggling on every rising edge of IC1's output. RTERM "squares up" IC2's output and is optional.

COS, CINT, and RIN determine the frequency range of IC1's output. The temperature drift of these components affects the temperature stability of IC1's output frequency. You'll obtain best results with NP0 capacitors and low-TCR resistors. For the values shown, the clock signal at IC4's CHA [overscored] input is adjustable between 10 and 750 kHz. A convenient feature of IC1 is its 2.6V reference output. You use this in setting the frequency with potentiometer P1. The reference also serves in setting the levels of the output square wave.

IC3A inverts the reference, allowing you to use P2 to adjust the offset in the range ±2V. P3 adjusts the amplitude between 0 and +2.3V. IC3B and IC3C buffer the offset and amplitude signals. The buffered offset voltage goes directly to IC4's A input. IC3D sums the offset and amplitude voltages and supplies IC4's B input. IC4 is configured as a follower, so when CHA [overscored] is low, IC4's output is at the "lower" level, or the offset voltage, and when CHA [overscored] is high, IC4's output equals the "upper" level, which equals offset plus amplitude.

Even with RP2 and RP3 attenuating the reference, it is still possible to exceed the output range of IC3D. In that case, increasing the offset or the amplitude further produces no increase in IC3D's output. To overcome this limitation, S1 allows you to set the lower and upper levels independently by feeding P3's buffered output directly to input B.

thumbnail Figure 2 shows a scope photo of the adjustable-frequency clock from IC1 (Trace A) and the output from IC4 driving a back-terminated 50 Ohm coax cable (Trace B). The offset and amplitude are -1V and +1V, respectively. The output signal swings ±500 mV because of the 50% attenuation from the back-termination. The output frequency is 750 kHz. This rate requires a 1.5-MHz output from IC1, its maximum operating frequency. IC1 could operate at higher frequencies, but at the expense of increased nonlinearity, jitter, and temperature drift. For higher speeds, replace IC1 and IC2 with a faster clock generator. The transition and settling times of the OPA678 allow clock speeds exceeding 20 MHz. For best results, follow sound high-speed layout techniques, use a heavy copper ground plane, and place bypass capacitors close to the swop amp's power-supply pins. (DI #1829)



| EDN Access | feedback | subscribe to EDN! |
| design features | out in front | design ideas | departments | products |


Copyright © 1996 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.