The present invention relates to pulse or function generation, and more particularly to a triggered direct digital synthesis (DDS) pulse generator architecture that produces a pulse or other waveform at a fixed time after receiving a trigger signal while maintaining an accurate and stable output frequency.
An advantage of using DDS is that the output frequency may be very accurate and stable. The output frequency is determined by a phase accumulator and a DDS clock. The timing error in the phase accumulator circuit is generally much less than the error in the DDS clock. The DDS clock is usually derived from a phase locked loop (PLL) which is referenced to a crystal controlled oscillator (VXCO). This allows the DDS clock to be relatively accurate and stable, allowing the frequency of the signal being generated to be accurate and stable.
Pulse generators have usually had a triggered mode of operation. In this mode an output pulse is generated after receiving a trigger signal at an input. One way to provide a triggered operation using DDS is to start the generation of the output pulse on the next DDS clock after receiving the trigger signal. This leads to a time uncertainty of up to one DDS clock period. For many applications this is unacceptable. Another way to provide triggered operation is for the DDS clock to stop after producing an output pulse and wait for the trigger signal. When the trigger signal arrives, the DDS clock is started and a new output pulse is produced. This type of clock is sometimes referred to as a gated clock. The primary disadvantage of this scheme is that it is difficult to phase lock an oscillator to a reference clock when the oscillator is starting and stopping. Also gated oscillators typically have some frequency variability as they start. To have both accurate operation and triggered operation a DDS generator may have two clocks. One is a phase locked oscillator that is accurate, but cannot be used in the triggered mode. The other clock is not very accurate, but may be stopped and started to allow the triggered mode. Such a DDS generator has a much reduced frequency accuracy specification when operated in the triggered mode.
What is desired is to generate an output pulse at a fixed time after receiving a trigger while maintaining an accurate and stable frequency.
Accordingly the present invention provides a triggered DDS pulse generator architecture that accumulates a phase increment value in response to a DDS clock to generate phase accumulator values for addressing a waveform lookup table which contains a desired output signal. A time measurement circuit determines a time interval between the arrival of a trigger signal and a subsequent cycle of the DDS clock, which time interval is used to either adjust an initial phase accumulator value or delay the DDS clock so that a constant time is maintained between the arrival of the trigger signal and the desired output signal.
The objects, advantages and other novel features of the present invention are apparent from the following detailed description when read in conjunction with the appended claims and attached drawing figures.
The present invention obtains triggered operation with a DDS clock oscillator that is continuously phase locked to a reference clock, such as a voltage crystal controlled oscillator (VXCO), a voltage controlled temperature compensated crystal oscillator (VCTCXO) or the like. When a trigger arrives, the time between the trigger signal and a subsequent DDS clock cycle is measured. The measured time is used to compute an initial phase accumulator value for a phase accumulator in a DDS circuit so that the time between the trigger signal and the start of an output pulse signal is constant. Because the DDS clock is not disturbed during triggered operation, the frequency accuracy of the output pulse signal is not degraded. After the time has been measured, digital computations and adjustment of the phase accumulator are sufficiently good so that no significant error is imparted to the output pulse signal. The only significant error comes from measuring the time between the trigger signal and the subsequent DDS clock cycle. This error shows up as jitter—variability between the arrival of the trigger signal and the generation of the output pulse signal. With care this error is made very small, giving the pulse generator both triggered operation and excellent frequency accuracy.
Referring now to
One example of the DDS pulse generator, as described in the co-pending U.S. patent application Ser. No. [DF7645], uses a negative phase accumulator value as the initial phase accumulator value, and counts up until a positive value occurs at the output. As shown a phase multiplexer 24 has as inputs a phase increment value and a phase increment value minus a modulo or period value. The output of the phase multiplexer 24 is input to an accumulator 26, the output of which is input to an initiation multiplexer 28. The output of the initiation multiplexer 28 is stored in a phase accumulation register 30, the output of which is converted by subsequent stages into an address for a waveform lookup table (not shown here). The output of the phase accumulation register 30 also is fed back to the accumulator 26, and the sign bit is used to select the data output by the phase multiplexer 24—the increment value while the sign is negative and the increment minus the modulo value (effectively subtracting the modulo value) when the sign goes positive. The other input to the initiation multiplexer 28 is an n-bit initial phase accumulator value from the time conversion lookup table 22. The output from the initiation multiplexer 28 is determined by the delayed one-cycle trigger reference from the delay circuit 20.
In operation the trigger flip-flop 12 is set when the input trigger signal goes high and the flip-flop is enabled. The trigger flip-flop 12 is only enabled when the trigger circuit is ready to accept another trigger. The synchronization flip-flops 16, 18 synchronize the user trigger to the DDS clock. Since the first flip-flop 16 occasionally becomes metastable, the second flip-flop 18 assures a good trigger reference for the timing measurement circuit 14. More than two synchronization flip-flops may be used if the DDS clock rate is very high and one clock period does not provide enough time for stabilization. The timing measurement circuit 14 measures the time between the used trigger and the trigger reference to produce the m-bit digital time value which is input to the time conversion lookup table 22. The lookup table 22 is pre-loaded with values that convert measured m-bit digital times to n-bit initial phase accumulator values. The output pulse from the delay circuit 20 switches the initiation multiplexer 28 in the phase accumulation portion of the DDS circuit for one DDS clock period, loading the phase accumulator with the initial phase accumulator value. The output from the phase accumulator register 30 normally varies between −PHASE (or −modulo) and −1. The values in the time conversion lookup table 22 are more negative than −PHASE, causing the first phase accumulator value after a trigger to be negative by an amount necessary to make the trigger-to-start-of-output be a constant time. This is shown in
Although the above describes a pulse generator and the generation of output pulses, the triggered operation described works for other types of DDS signal generators when generating any type of triggered output. Also rather than using the measured time to adjust the phase accumulator value while leaving the DDS clock unchanged, the measured time may be used to delay the DDS clock so that there is a constant time between the arrival of the trigger signal and the delayed DDS clock. Such a circuit may take a number of forms. In one form the time measurement produces a digital value that is then used to insert or remove delay from the DDS clock path by adding or removing delay elements or by adjusting delay elements. In another form an early version of the DDS clock is a two-phase or three-phase clock. When the trigger signal arrives, the magnitude of each phase is acquired—effectively measuring the time between the trigger signal and the DDS clock. The phase magnitudes are then used to produce the DDS clock with an adjusted phase so that the time between the arrival of the trigger signal and the adjusted DDS clock is constant.
In triggered mode when the signal generator has finished making a pulse or burst or sweep, it stops generating a signal and starts waiting for a trigger signal. The DDS circuits are placed into an idle mode. An example of the idle mode is when the phase accumulator is forced to zero where zero specifies the first point in the waveform in the lookup table. When a trigger signal arrives, the time between the used trigger signal and the reference trigger synchronized with the DDS clock is measured. After the measurement is completed, an initial phase accumulator value is found in a lookup table. This value is the amount needed to adjust the waveform so that it is delayed by an amount of time necessary to make the time between the trigger signal arrival and the start of the waveform a constant. This initial value is placed into the phase accumulator and normal operation of the signal generator proceeds.
The concept of using multiple DDS circuits in parallel to achieve a higher data rate complicates triggered operation. The time measurement circuit measured the trigger time relative to the DDS clock, producing a value that ranges between zero and the phase increment. With a single DDS circuit this value is always less than one phase increment since only one data word is generated each DDS clock cycle. However with n DDS circuits operating in parallel, the adjustment to the phase comparator value may be almost as large as n data values. It is important not to skip the first n points of the waveform. The initial points are always generated when the phase accumulator correction is done with subtraction, causing the phase accumulator values to go outside the normal range, and having an address mapping circuit that maps these values into the first point in the waveform lookup table. When the phase accumulator starts incrementing in the normal way, the phase accumulator values reenter the normal range of values and the waveform starts being produced from the very first point.
Thus the present invention provides a triggered DDS pulse generator architecture by measuring a time interval between the arrival of a trigger signal and an internal clock, and using the measured time interval to either adjust the phase accumulator value or to delay the DDS clock so that the time interval between the arrival of the trigger signal and the output pulse remains constant.
Number | Name | Date | Kind |
---|---|---|---|
5598440 | Domagala | Jan 1997 | A |
7084676 | Harron et al. | Aug 2006 | B2 |
7124153 | Grushin | Oct 2006 | B2 |
Number | Date | Country | |
---|---|---|---|
20050138094 A1 | Jun 2005 | US |