Abstract:
A peak detector is comprised of two related circuits having similar circuit parameters, each providing an output in response to a repetitive waveform applied to the detector. The two outputs are combined to eliminate the dependence on the circuit parameters to provide as an output of the detector an accurate, wideband peak voltage of the applied waveform.

Description:
BACKGROUND OF THE INVENTION 
     For instrument applications such as universal counters and oscilloscopes, a peak detector for repetitive waveforms is a valuable addition to the various input channels. It can provide a means for automatic triggering, signal amplitude measurement, and other waveform parameter measurements such as risetime. To be adequate for this application, the peak detector must exhibit good accuracy over a wide input dynamic range and over the instrument&#39;s entire operational frequency range. Furthermore, it must also exhibit good accuracy with any arbitrary input waveshape. Good accuracy in this case means the output detected voltage must be a DC level within a few millivolts of the input peak level. 
     Peak detectors in the prior art cover a variety of circuits with different operational characteristics. For example, there are detectors for amplitude modulation (AM), that is, envelope detectors, and detectors for detecting and holding the amplitude of a single pulse indefinitely. Input waveforms and the corresponding detected output waveforms for these prior art detectors are illustrated in FIGS. 1A and 1B. 
     The AM detector for the waveform in FIG. 1A is common and simple; it typically comprises only three elements: a diode for a unidirectional flow of current; a capacitor for storing the peak amplitude; and a resistor for discharging the capacitor. This circuit is shown in FIG. 1D. This type of detector is normally designed for use only with one carrier frequency where its output must decay fast enough to follow the lower modulating frequency to develop the modulating envelope. Further, the input waveshape for this type of detector is known and is usually a sinusoid of fixed frequency. Because of the diode in series with the input, there is always a difference of approximately 0.6 volt between the input and output voltages caused by the forward voltage drop of the diode. But, since only the envelope information is desired, the fact that at the peaks the input differs from the output by this forward voltage drop of the diode ([V F  ] pk ) has no significance. This would not be the case if this type of detector is used for wideband applications. There, the presence of the forward voltage drop of the diode, the fast decay for the circuit to function properly at low frequencies, and the dependence on input waveshape would make this type of detector unsuitable for wideband applications. 
     The detector used for short pulses is generally designed to achieve an accurate peak output voltage reflecting the peak input voltage. Further, it is designed to hold the peak voltage for a relatively long time. A typical circuit of this type of detector is shown in FIG. 1C. This type of circuit generally has no inherent output decay to allow the output to follow a slowly decreasing input amplitude. This can be seen in the input and output waveforms in FIG. 1B. Although nominally wideband in nature, because it detects pulses, the upper frequency limit to these circuits is only a few megahertz. Therefore, this type of detector is also not suitable for wideband, repetitive waveform detection. It does, however, have the accuracy lacking in the detectors, because of the typical inclusion of the diode in the voltage follower feedback loop. One can take advantage of this fact and add an element, e.g., a resistor or a current sink, to slowly discharge the storage capacitor to provide the desirable output decay. To extend the circuit to high frequency performance beyond a few megahertz, however, requires a high gain feedback amplifier with extreme bandwidth and stability beyond the input frequency range. This is extremely difficult and costly to achieve. 
     SUMMARY OF THE INVENTION 
     That the output differs from the input by one forward diode voltage drop at peak amplitude is a fundamental disadvantage of the AM detector for accurate wideband application. That is, 
     
         V.sub.OUT =[V.sub.IN -V.sub.F ].sub.pk 
    
     If the forward drop is precisely know, then by adding it to V OUT , one can obtain the peak value of V IN , or [V IN  ] pk . To find the peak value for the diode forward voltage [V F  ] pk , however, is not trivial. It varies with the peak diode current, which, in turn, depends on the input waveshape. For instance, low duty cycle pulses and triangle waveforms result in a high forward voltage V F  due to the peak occurring for a brief portion of the input period. In contrast, square waves result in low forward voltage V F , because half of the input is at the peak voltage level. However, the peak detector according to the present invention generates two DC voltages that differ by [V F  ] pk  ; it then takes the difference between these voltages and recombines them with an operational amplifier to arrive at an accurate peak voltage output independent of the diode forward drop. In the preferred embodiment, two diode detector circuits are used to provide the two DC voltages. By making the diodes substantially identical in the two circuits, the peak DC levels derived from each of the two circuits can be made to have a related dependence on the diode forward voltage parameter. The two DC levels, then, can cancel out the related diode forward voltage parameter to provide the accurate peak voltage output required. 
    
    
     DESCRIPTION OF THE DRAWINGS 
     FIG. 1A shows the relationship between the input and output waveforms to the amplitude modulation (AM) detector in the prior art. 
     FIG. 1B shows the relationship between the input and output waveforms to a detector circuit having an infinite hold capacity in the prior art. 
     FIG. 1C shows a circuit for the detector having the input-output relationship of FIG. 1B. 
     FIG. 1D shows a circuit for the detector having the input-output relationship of FIG. 1A. 
     FIG. 2 shows a circuit having two peak detectors to provide two DC levels in accordance with the present invention. 
     FIG. 3 shows the preferred embodiment of the peak detector in accordance with the present invention. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     The technique in accordance with the present invention measures the forward voltage drop of the diode (V F ) at the peak and uses it to calculate the correct peak voltage as the output. Two AM-type detectors 2 and 4 are employed, one 2 being of the conventional three-element design comprising one diode 14 in series with a capacitor 16 and a resistor 18 in parallel and the other 4 having two diodes 6 and 8 instead of one in series with a capacitor 20 and a resistor 22 in parallel, the capacitors 16, 20 and resistors 18, 22 both being tied to some voltage level, ground and -V respectively in the present example. As shown in FIG. 2, both detector inputs 10 and 12 are connected together to an input port 15 where an input waveform is applied. If the values of the capacitors 16 and 20 and resistors 18 and 22 are large enough, a slow decay rate results. The outputs 24 and 26 to the circuit in FIG. 2 then are: 
     
         V.sub.OUT1 =[V.sub.IN ].sub.pk -[V.sub.FD1 ].sub.pk -[V.sub.FD2 ].sub.pk, and 
    
     
         V.sub.OUT2 =[V.sub.IN ].sub.pk -[V.sub.FD3 ].sub.pk, 
    
     where the brackets [ ] pk  indicate the peak value of the enclosed quantity, that is, [V FD1  ] pk , [V FD2  ] pk , and [V FD3  ] pk  are the peak forward voltages of diodes 6, 8, and 14, respectively, and [V IN  ] pk  is the peak input amplitude. With these two outputs 24 and 26 being essentially DC levels, their difference is -[V FD1  ] pk  -[V FD2  ] pk  +[V FD3  ] pk . Using diodes with matched forward voltages, this difference becomes [V FD3  ] pk . Now, if this difference is added to V OUT2 , the value for [V IN  ] pk  results. This can be accomplished with the preferred embodiment shown in FIG. 3. For accuracy and simplicity, a single operational amplifier 30 is used to achieve this result. An operational amplifier 32 operates as a voltage follower (unity gain) to buffer current through a resistor 34 to amplifier 30 away from resistor 22. Amplifier 30, in addition to subtracting output 26 from output 24, also buffers the output current and the currents through output resistors 34 and 36 away from resistor 18. It also provides a gain of two to its input 26, thus providing essentially a multiple of two of its input 26 less the diode forward drop. If resistors 34 and 36 are made equal, it performs the arithmetic operation of V OUT  =2V OUT2  -V OUT1 . Hence, from the circuit of FIG. 3, it follows that ##EQU1## 
     Since only the diodes 6, 8, and 14 experience the input frequency range, the frequency response of the peak detector is limited predominantly by diode switching performance, which incidentally is very good for Schottky diodes. This technique may be implemented with discrete components, or with components integrated on a chip. Matched components are necessary for good accuracy. Capacitors 16 and 20 are made to match so that the computed value for [V F  ] pk  is accurate. Input loading is small; it is the diode capacitances in parallel with the low value capacitor that discharge currents into resistors 34 and 36. The output voltage at the output port 38 may require a number of input cycles to reach full peak value, but this is of little consequence for repetitive input waveforms. Furthermore, power required of the input signal at input port 15 can be negligibly small since it is only that drawn by the two discharge resistors 18 and 22. 
     By making the discharge resistors 18 and 22 different values, two further benefits result. Owing to the action of the subtracting operational amplifier 30, the output decay rate equals 
     
         2d(V.sub.OUT2)/dt-d(V.sub.OUT1)/dt. 
    
     Hence, the output decay can be made slower than the capacitive decays. This means a smaller capacitor value may be used to arrive at a suitable output decay. This results in a desirable initial slow drop which extends operation to low frequencies, and then a fast decay a short time later, thus allowing the detector to adapt quickly to a new lower peak amplitude input signal.