The present invention relates to acquisition of an input signal, and more particularly to a self-adjusting hold-off trigger for an acquisition system which is based on approximate time between trigger level crossings by the input signal.
U.S. Pat. No. 7,072,804, issued to Dennis J. Weller on Jul. 4, 2006, discloses a digital trigger circuit having an input filter for producing low and high frequency rejection trigger signals, as well as AC and DC trigger signals, derived from a digitized input signal. One of the four trigger signals is selected by a multiplexer and input to a trigger comparator having an upper trigger level and a lower trigger level to provide a desired amount of hysteresis, one trigger level being a desired trigger level and the other being a hysteresis level.
The hysteresis in the trigger comparator provides a noise rejection function. Low levels of noise are ignored. For rising edge trigger events, without hysteresis the noise may cause the falling edge of the digitized input signal to be detected as a rising edge. As shown in
Unfortunately a trigger comparator with hysteresis waits until the input trigger signal has passed above or below both levels (depending upon whether triggering is on the rising or falling edge of a signal) so that it doesn't mistakenly trigger on noise. When a state machine, which generates a trigger from the output of the trigger comparator, is set up for pulse width triggering, this may result in an error since the measured width from above the high level to below the low level may not accurately reflect the pulse width at the desired trigger level. Also rising edge trigger events stop occurring when the trigger level is near the minimum peak value for the digitized input signal, and falling edge trigger events stop occurring when the trigger level is near the maximum peak value for the digitized input signal.
U.S. Pat. No. 4,771,193, issued to Genichiro Ohta on Sep. 13, 1988 shows an analog circuit for triggering on a maximum length pulse within an input signal. As shown in FIG. 2 of the '193 patent, an input digital signal (a) produces a ramp signal (b) for each pulse, the height of the ramp being a function of the width of the pulse. A capacitor is charged, as shown by signal (c), and enables a sweep (I) that starts at the conclusion of the longest pulse. In this way the measuring instrument triggers on a non-signal interval indicated by the longest pulse width. This trigger circuit operates on a peak detection basis, i.e., triggering on the highest peak of the ramp signal (b).
U.S. Pat. No. 5,223,784, issued to Theodore G. Nelson, et al on Jun. 29, 1993, shows a circuit for triggering an acquisition system only once during a period of an input signal. A first trigger comparator detects qualifying trigger events in an input signal using a first reference trigger level, which qualifying trigger events charge a capacitor. A second trigger comparator compares the voltage on the capacitor with a second reference trigger level, and produces a pulse if the capacitor voltage has a predetermined relationship to the second reference trigger level. Subsequent trigger events which occur before a predetermined period of time, determined by an RC time constant, are unable to produce another trigger event.
The above-discussed patents are analog trigger circuit implementations. With the current digital storage oscilloscopes digital trigger circuit implementations are generally desired. Also these patents do not consider measuring an average duration between threshold crossings and then triggering only when a potential trigger event is preceded by a time related to the average duration.
What is desired is a self-adjusting hold-off trigger that uses an approximate time based upon average or peak time or duration between a qualified trigger event and a preceding edge event.
Accordingly the present invention provides a self-adjusting hold-off trigger circuit that detects a threshold crossing between consecutive samples of a digitized input signal as edge events, identifies the crossing as a qualified trigger event if the crossing is in a desired direction based upon trigger criteria, and provides a trigger output when the qualified trigger event occurs greater than an approximate average or peak time after a preceding edge event.
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.
The present invention has a trigger comparator that does not use hysteresis, so for the digitized signal of
Referring now to
For each threshold crossing detected by the XOR gate 16, the first timing multiplexer 18 selects a constant value—“0” (as shown) or “1” depending upon a desired starting count value. The value from the first timing multiplexer 18 is loaded into a time register 22 each sample clock cycle, the output of which is coupled to a maximum time comparator 24 that is used to prevent the time value from getting too large in the event the input signal has a significant drop-out period. If the time stored in the time register 22 exceeds the maximum value applied to the maximum time comparator 24, then a second timing multiplexer 26 selects a “zero” increment for adding back to the time register via an adder 28. The output from the maximum time comparator 24 may also be used to provide a flag to a user that there is a gross error in the input signal. Otherwise the second timing multiplexer 26 selects a “one” increment for input to an adder 28 to increase the time value stored in the time register 22 via the first timing multiplexer 18. Thus the time loop increments the time value in the time register 22 each sample clock cycle so long as there is no trigger level crossing detected; resets the time value for each detected trigger level crossing; and keeps the time value from exceeding a predetermined maximum value.
The time value from the time register 22 also is input to a subtractor 30 where a current average value from an average register 32 is subtracted from the time value. The result from the subtractor 30 is adjusted in a first multiplier 34 by a first factor, n, and added to the current average value in an average adder 36. The average value and the output from the average adder 36 are input to a second multiplexer 38. The output from the second multiplexer 38 is determined by the direction signal from the AND gate 20. If there is no rising edge, then the current average value is transferred back into the average register 32. If there is a rising edge, then the updated average value from the average adder 36 is loaded into the average register 32. The average value from the average register 32 is multiplied (40) by a second factor, k, and applied as an approximate average level to an output comparator 42. Also input to the output comparator 42 is the time value from the time register 22. The output comparator 42 provides an enable signal to an output AND gate 44. Also input to the output AND gate 44 is the direction signal from the AND gate 20. When a rising edge occurs and the time value representing time from the preceding edge of the digitized input signal exceeds the approximate average value, the output AND gate 44 provides a trigger event for signal acquisition. The factors, n and k, generally have a value between zero and one.
Although the above description applies to a rising edge trigger circuit, appropriate modifications may be made to produce a falling edge trigger circuit. Also where multiple pipes of samples resulting from oversampling of the input signal to produce multiple samples per sample clock are used, the process described above may be readily applied. Further trigger events may be implemented that use more complex qualifiers, such as a specific pulse width, a serial data packet, etc. For these higher level qualifiers, the hold-off may be adjusted at this higher level, i.e., triggering when the average time between serial data packets between devices exceeds the average, or the like.
The basic concept is further illustrated by the flow diagram of
AVERAGE=AVERAGE+(TIME−AVERAGE)/8
where n=⅛.
A similar algorithm may be used to use peak time values rather than average time values as the trigger criteria, as shown in
Thus the present invention provides a self-adjusting hold-off trigger by detecting each crossing of a trigger level by a digitized input signal as edge events, qualifying each edge event as a qualified trigger event if the crossing is in the desired direction, and generating a trigger output when a qualified trigger event occurs that exceeds an average or peak time from a preceding edge event.
The current application is a non-provisional application based upon and claiming the filing date under 35 U.S.C. 119(e) of provisional application Ser. No. 60/835,562, filed on Aug. 3, 2006, which provisional application is abandoned upon the filing of this non-provisional application.
Number | Date | Country | |
---|---|---|---|
60835562 | Aug 2006 | US |