Sine-wave generator outputs precise periods
JM Terrade, Clermont-Ferrand, France -- 4/26/2001
Rectangular pulse generators, even at high frequencies, are easy to
design. However, the design becomes more difficult if you need a signal that
contains a precise number of periods with a sinusoidal shape. Although it is
easy to produce a good sine wave, the difficulty is producing a signal with a
precise number of periods. The signal has to start and stop exactly at 0V. The
scheme in Figure 1 can produce one to 15 periods of a 20-MHz sinusoidal wave. The scheme has two main characteristics: The positive edge of a 5V signal triggers the input, and the output is one to 15 periods of a 20-MHz signal, adjustable to within ±10%.Initially, the trigger input is inactive, the generator is disabled, and the counter is loaded with the number N. When the trigger input becomes active, the counter waits, and the end-count output enables the generator. A sine wave appears at the output. At the end of each period of the sine wave, the comparator produces a sync signal that drives the counter's clock input. When N periods of the output wave have occurred, the end-count signal disables the generator.
In the actual circuit, a MAX038, IC1, is the generator (Figure 2). This IC contains the sine-wave generator and the comparator. The sync signal is available at Pin 14. The counter has to be fast enough to stop the generator before the next output period starts. The 74AC191, IC2, is a 4-bit up/down counter with preset inputs. NAND gates IC3A and IC3B disable the counter after the end-count goes active. A one-shot circuit, IC5A, ensures that the input trigger pulse is long enough to allow 15 pulses. A MOS switch, IC4, short-circuits the oscillator capacitor, C1, to stop IC1's generator. If the circuit simply grounds C1 to stop the generator, the output voltage is not zero. To obtain a zero output voltage, the circuit connects input Pin 5 of IC1 to a negative 0.5V-dc voltage generator comprising an LF356N and associated components.
Because the signal at Pin 5 of IC1 goes positive and negative, IC4's switch requires a ±5V supply. The level for the command signal also has to swing positive and negative. MOS transistor Q1 provides the level-shifting from 0 to 5V logic levels to ±5V, or 4016, logic levels. NAND gates IC3C and IC3D allow a fast drive for Q1.
When the trigger input goes high, one-shot IC5A starts running. The voltage at B also goes high for 10 µsec. This delay must be longer than 16 periods of the output signal. The voltage at D now goes low and enables the counter. As before, IC3C and IC3D invert the level at D, and the 5V drive turns off Q1. A –5V level is present at E, and IC4 switches are off. The internal oscillator of IC1 is now running, and a signal is present at the output, S. Each time the output signal is positive, the sync output at F is also positive. At the end of each period, a positive-going edge appears at F. Each positive edge at F makes counter IC2 count down by one.
When the circuit has produced N periods at S, the voltage at C goes high, which indicates end of count. The voltage at D goes high and disables the counter. IC3C and IC3D invert the voltage at D, and the resulting 0V drive turns on Q1. A 5V level is present at E, and IC4 switches are on. The internal oscillator of IC1 stops, and the output signal at F returns to zero. Before returning to the original state, the signal at B should return to zero, which happens after the end of the delay that one-shot IC5A produces.
All is now ready for another train of pulses. Using S1, you can program the circuit for one to 15 pulses. The circuit can produce other signal shapes, depending on how you connect A0 and A1 of IC1 (Table 1). You can also replace S1 with a µC to produce any pattern of pulses.
© 2009, Reed Business Information, a division of Reed Elsevier Inc. All Rights Reserved.

