Circuit for suppressing ripple of amplitude detector and suppression method thereof
By designing an amplitude detection loop and a ripple loop in the amplitude detector, and using frequency information to adjust the capacitance charge and discharge rate, the problem of ripple interference in the amplitude detector is solved, and the linearity and response of the system are improved Speed achieves frequency matching ripple cancellation.
Patent Information
- Application Number
- CN202411179886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-27
AI Technical Summary
In automatic gain control systems, the amplitude detector is caused by ripple interference caused by frequency changes, which leads to unstable peak detection and affects linearity. The use of only low-pass filters in the prior art may affect the high-frequency components and response speed.
A circuit is designed including an amplitude detection loop and a ripple elimination loop. Through a peak detector, a valley detector, an inverter, a time difference generator, an integrator and a half peak detector, the capacitor is adjusted using frequency information. Charge and discharge rate, match the input signal frequency to eliminate ripple.
It effectively suppresses ripple interference, improves the linearity and response speed of the detector, and is not affected by the input signal amplitude, matches the input signal frequency, and avoids ripple generation.
Smart Images

Figure CN119070606A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of analog integrated circuits, and in particular to a circuit for suppressing ripples of an amplitude detector and a suppression method thereof. Background Art
[0002] In analog circuits, the automatic gain control system is a common circuit that automatically adjusts the gain according to the amplitude of the signal. A stable output signal amplitude helps to improve the dynamic range and linearity of the circuit. The amplitude of the signal is usually implemented by an amplitude detector. The amplitude detector includes a peak detector and a valley detector, which are used to monitor the positive peak and negative peak of the signal respectively. The signals faced by the amplitude detector in the automatic gain control system often have random changes in frequency and amplitude, which is a great challenge for the amplitude detector. Due to the change in frequency, ripples are inevitable during amplitude detection. However, ripples are an unfavorable AC interference, which will cause the positive and negative peak-to-peak values detected by the amplitude detector to not be fixed DC voltages. The AC component will cause the generated peak value V out Instability, which leads to a sharp deterioration in the linearity of the next stage circuit. In the related art, only one low-pass filter is usually used to reduce ripple. Although the low-pass filter can effectively reduce high-frequency ripple, it may also affect the high-frequency component of the signal, causing signal distortion. This effect is particularly obvious when the signal frequency is close to the filter cutoff frequency. At the same time, the low-pass filter will slow down the system's response to sudden changes in signals and may miss some rapidly changing information.
[0003] In summary, the technical problems existing in the relevant technologies need to be improved. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a circuit for suppressing the ripple of an amplitude detector and a suppression method thereof, which can eliminate the ripple by adjusting the charging and discharging speed of the capacitor to match the input signal frequency and is not affected by the amplitude of the input signal.
[0005] To achieve the above-mentioned purpose, an embodiment of the present application provides a circuit for suppressing ripples of an amplitude detector, wherein the circuit includes an amplitude detection loop and a ripple elimination circuit, wherein the amplitude detection loop includes a peak detector, a valley detector and a subtractor, and the ripple elimination circuit includes a first inverter, a second inverter, a time difference generator, an integrator and a half-peak detector, wherein a first output end of the peak detector is connected to a first input end of the subtractor, a first output end of the valley detector is connected to a second input end of the subtractor, a second output end of the peak detector is connected to an input end of the first inverter, a second output end of the valley detector is connected to an input end of the second inverter, an output end of the second inverter and an output end of the first inverter are both connected to an input end of the time difference generator, an output end of the time difference generator is connected to an input end of the integrator, an output end of the integrator is connected to a first input end of the half-peak detector, and an output end of the subtractor is connected to a second input end of the half-peak detector, wherein:
[0006] The amplitude detection loop is used to perform amplitude detection on the differential input signal to obtain the peak-to-peak value of the differential input signal;
[0007] The ripple elimination circuit is used to perform capacitor charge and discharge rate adjustment processing according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal.
[0008] In some embodiments, it also includes:
[0009] The peak detector is used to obtain positive peak signal data of the differential input signal;
[0010] The valley detector is used to obtain negative peak signal data of the differential input signal;
[0011] The subtractor is used to perform a subtraction calculation on the positive peak signal data and the negative peak signal data to obtain the peak-to-peak value of the differential input signal.
[0012] In some embodiments, it also includes:
[0013] The first inverter is used to perform frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data;
[0014] The second inverter is used to perform frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data;
[0015] The time difference generator is used to compare the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal;
[0016] The integrator is used to perform waveform conversion processing on the pulse signal to obtain a control voltage value;
[0017] The half-peak detector is used to perform capacitor charge and discharge rate adjustment processing according to the control voltage value to eliminate ripple information of the differential input signal.
[0018] In some embodiments, the peak detector and the first inverter include a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, a tenth transistor, an eleventh transistor, a twelfth transistor, a thirteenth transistor, a fourteenth transistor, a first ammeter, a second capacitor, and a first inverter unit, wherein the source of the first transistor, the source of the second transistor, the source of the third transistor, the source of the fourth transistor, the source of the fifth transistor, the source of the sixth transistor, the source of the seventh transistor, and the source of the eighth transistor are connected, the gate of the first transistor, the gate of the second transistor, and the drain of the second transistor are connected to the drain of the tenth transistor, and the drain of the first transistor, the drain of the ninth transistor, the drain of the third transistor, and the gate of the fourth transistor are connected to the drain of the tenth transistor. The gate of the first transistor is connected to the body tube, the source of the ninth transistor, the source of the tenth transistor and the drain of the thirteenth transistor are connected, the source of the thirteenth transistor, the second end of the first ammeter, the second end of the second capacitor and the source of the fourteenth transistor are connected, the drain of the fourth transistor, the gate of the tenth transistor, the first end of the first ammeter, the drain of the fifth transistor, the first end of the second capacitor and the gate of the eleventh transistor are connected, the gate of the fifth transistor, the gate of the sixth transistor, the drain of the sixth transistor, the drain of the eighth transistor, and the input end of the first inverter unit are connected to the drain of the twelfth transistor, the gate of the seventh transistor, the drain of the seventh transistor, and the gate of the eighth transistor are connected to the drain of the eleventh transistor, and the source of the eleventh transistor and the source of the twelfth transistor are connected to the drain of the fourteenth transistor.
[0019] In some embodiments, the valley detector and the second inverter include a fifteenth transistor, a sixteenth transistor, a seventeenth transistor, an eighteenth transistor, a nineteenth transistor, a twentieth transistor, a twenty-first transistor, a twenty-second transistor, a twenty-third transistor, a twenty-fourth transistor, a twenty-fifth transistor, a twenty-sixth transistor, a twenty-seventh transistor, a twenty-eighth transistor, a third capacitor, a second ammeter and a second inverter unit, wherein a source of the fifteenth transistor, a source of the sixteenth transistor, a first end of the third capacitor and a first end of the second ammeter are connected, a drain of the fifteenth transistor, a source of the seventeenth transistor and a source of the eighteenth transistor are connected, a drain of the seventeenth transistor, a drain of the twenty-first transistor, a drain of the twenty-third transistor, and a gate of the twenty-third transistor are connected to a gate of the twenty-fourth transistor, and a drain of the eighteenth transistor, a drain of the twenty-second transistor, and a gate of the twenty-first transistor are connected to a gate of the twenty-second transistor. The gate of the eighteenth transistor, the second end of the third capacitor, the second end of the second ammeter, the drain of the twenty-fourth transistor, the drain of the twenty-fifth transistor and the gate of the nineteenth transistor are connected, the drain of the nineteenth transistor, the drain of the twenty-seventh transistor, and the gate of the twenty-seventh transistor are connected, the drain of the twenty-sixth transistor and the source of the nineteenth transistor are connected, the drain of the twenty-sixth transistor and the source of the nineteenth transistor are connected, the drain of the twenty-tenth transistor, the drain of the twenty-eighth transistor, the drain of the twenty-sixth transistor, the gate of the twenty-fifth transistor and the gate of the twenty-sixth transistor are connected to the input end of the second inverter unit, and the source of the twenty-first transistor, the source of the twenty-second transistor, the source of the twenty-third transistor, the source of the twenty-fourth transistor, the source of the twenty-fifth transistor, the source of the twenty-sixth transistor, the source of the twenty-seventh transistor and the source of the twenty-eighth transistor are connected.
[0020] In some embodiments, the time difference generator includes a first NAND gate, a second NAND gate, a third NAND gate, a fourth NAND gate, a fifth NAND gate, a sixth NAND gate, a seventh NAND gate, an eighth NAND gate, a ninth NAND gate, a tenth NAND gate, an eleventh NAND gate and a first XOR gate, wherein the first input terminal of the first NAND gate is connected to the output terminal of the seventh NAND gate, the output terminal of the first NAND gate, the first input terminal of the third NAND gate, the first input terminal of the seventh NAND gate, and the second input terminal of the eighth NAND gate are connected to the second input terminal of the ninth NAND gate, the second input terminal of the second NAND gate is connected to the output terminal of the eleventh NAND gate, the output terminal of the second NAND gate, the second input terminal of the sixth NAND gate, the third input terminal of the eleventh NAND gate, and the first input terminal of the tenth NAND gate are connected to the third input terminal of the ninth NAND gate, and the second input terminal of the third NAND gate is connected to the The output end of the fourth NAND gate is connected, the output end of the third NAND gate, the first input end of the fourth NAND gate, the third input end of the seventh NAND gate, and the first input end of the eighth NAND gate are connected to the first input end of the ninth NAND gate, the second input end of the fourth NAND gate, the first input end of the fifth NAND gate, the second input end of the seventh NAND gate, and the output end of the ninth NAND gate are connected to the second input end of the eleventh NAND gate, the second input end of the fifth NAND gate, the output end of the sixth NAND gate, the fourth input end of the ninth NAND gate, and the second input end of the tenth NAND gate are connected to the first input end of the eleventh NAND gate, the output end of the fifth NAND gate is connected to the first input end of the sixth NAND gate, the output end of the eighth NAND gate is connected to the first input end of the first XOR gate, and the output end of the tenth NAND gate is connected to the second input end of the first XOR gate.
[0021] In some embodiments, the integrator includes a second resistor, a third resistor, a fourth capacitor and an operational amplifier, the second end of the second resistor, the first end of the third resistor, and the first end of the fourth capacitor are connected to the negative input terminal of the operational amplifier, and the second end of the third resistor and the second end of the fourth capacitor are connected to the output terminal of the operational amplifier.
[0022] In some embodiments, the half-peak detector includes a twenty-ninth transistor, a thirtieth transistor, a thirty-first transistor, a thirty-second transistor, a thirty-third transistor, a thirty-fourth transistor, a thirty-fifth transistor, a thirty-sixth transistor and a fifth capacitor, wherein the source of the twenty-ninth transistor, the source of the thirtieth transistor, and the source of the thirty-first transistor are connected to the source of the thirty-second transistor, the gate of the twenty-ninth transistor, the gate of the thirtieth transistor, and the drain of the thirtieth transistor are connected to the drain of the thirty-fourth transistor, the drain of the twenty-ninth transistor, the drain of the thirty-third transistor, the drain of the thirty-first transistor, and the gate of the thirty-second transistor are connected, the drain of the thirty-second transistor, the gate of the thirty-fourth transistor, and the first end of the fifth capacitor are connected to the drain of the thirty-sixth transistor, the source of the thirty-third transistor, the source of the thirty-fourth transistor are connected to the drain of the thirty-fifth transistor, and the source of the thirty-fifth transistor and the second end of the fifth capacitor are connected to the source of the thirty-sixth transistor.
[0023] To achieve the above object, another aspect of an embodiment of the present application provides a method for suppressing a circuit for suppressing ripples of an amplitude detector, the method comprising the following steps:
[0024] Acquire a differential input signal and perform amplitude detection to obtain a peak-to-peak value of the differential input signal;
[0025] The capacitor charge and discharge rate adjustment process is performed according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal.
[0026] In some embodiments, the step of adjusting the capacitance charge and discharge rate according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal includes:
[0027] Performing frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data;
[0028] Performing frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data;
[0029] Compare the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal;
[0030] Performing waveform conversion processing on the pulse signal to obtain a control voltage value;
[0031] The capacitor charge and discharge rate is adjusted according to the control voltage value to eliminate the ripple information of the differential input signal.
[0032] The embodiments of the present application include at least the following beneficial effects: The present application provides a circuit for suppressing the ripple of an amplitude detector and a suppression method thereof. The scheme uses an inverter to monitor the output with frequency information in the amplitude detector, compares the peak detector and the valley detector through a time difference generator to obtain a pulse signal, and inputs the pulse signal with frequency information into an integrator after passing through a capacitor, thereby obtaining a control voltage value related to the input frequency. The control voltage value is connected to the current source in the half-peak detector, and the charging and discharging speed of the capacitor in the parallel branch is regulated so that the charging and discharging speed of the capacitor in the half-peak detector matches the input signal frequency to eliminate the ripple. It can match the frequency of the input signal and is not affected by the amplitude of the input signal, thereby greatly suppressing the ripple caused by the mismatch between the charging and discharging speed and the input signal frequency. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 is a schematic structural diagram of a circuit for suppressing ripples in an amplitude detector provided in an embodiment of the present application;
[0034] Figure 2 It is a schematic flow chart of the steps of a method for suppressing a circuit for suppressing ripples of an amplitude detector provided in an embodiment of the present application;
[0035] Figure 3 is a schematic diagram of the basic principle of an existing peak detector;
[0036] Figure 4 is a schematic diagram of the structure of a peak detector and a first inverter provided in an embodiment of the present application;
[0037] Figure 5 is a schematic diagram of the structure of a valley detector and a second inverter provided in an embodiment of the present application;
[0038] Figure 6 It is a schematic diagram of the logic principle of the time difference generator provided in the embodiment of the present application;
[0039] Figure 7 is a waveform diagram of a time difference generator provided in an embodiment of the present application;
[0040] Figure 8 is a schematic diagram of the structure of an integrator provided in an embodiment of the present application;
[0041] Fig. 9 is a schematic diagram of the structure of a half-peak detector provided in an embodiment of the present application;
[0042] Fig.10 is a waveform diagram of a differential input signal provided in an embodiment of the present application;
[0043] Fig.11is a waveform diagram of the peak-to-peak value of the differential input signal provided in an embodiment of the present application;
[0044] Fig.12 Schematic diagram of the waveform of the output signal of the half-peak detector provided in the embodiment of the present application.
[0045] Description of the drawings: 1. Amplitude detection loop; 101. Peak detector; 102. Valley detector; 103. Subtractor; 2. Ripple elimination circuit; 201. First inverter; 202. Second inverter; 203. Time difference generator; 204. Integrator; 205. Half-peak detector. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of systems and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.
[0047] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".
[0048] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0050] Before describing the embodiments of the present application in detail, some of the terms involved in the embodiments of the present application are first described. The amplitude of a signal is usually realized by an amplitude detector. The amplitude detector includes a peak detector and a valley detector, which are used to monitor the positive peak value and negative peak value of the signal respectively. The basic principle of the simplest peak detector is as follows: Figure 3 As shown in the figure, the peak detector consists of a diode switch D1, a holding capacitor C1 and a discharge resistor R1. The diode switch controls charging and discharging, which is equivalent to a half-wave rectifier. According to the principle of forward conduction and reverse cutoff, when the input signal is greater than the voltage drop on the diode plus the peak voltage, the diode conducts forward, that is, V in >V D1 +V out The forward current flows from the input to the output to charge the capacitor C1, and the output peak voltage rises.
[0051] On the contrary, when the input signal is less than the voltage drop on the diode plus the peak voltage, the diode is reverse cutoff, that is, V in <V D1 +V out There is no reverse current flowing from the output to the input, and the capacitor maintains the current peak voltage.
[0052] The left side is the excitation end, and the right side is the passive end. The peak voltage can never be higher than the input signal. Therefore, the voltage at the output end is at most the maximum value of the input signal, that is, the peak value of the input signal is always detected.
[0053] The difference between the valley detector and the peak detector circuit is that the direction of the diode D1 is opposite, and the control conditions of the valley detector and the peak detector are completely opposite. The principle is similar to the peak detection circuit mentioned above. Therefore, the voltage at the output of the valley detector is at most the minimum value of the input signal, and it always detects the valley value of the input signal.
[0054] Voltage drop is a phenomenon in which the capacitor is slowly discharged through leakage and subsequent load. The current flowing through diode D1 will charge capacitor C1. The expression is as follows:
[0055] Q=∫i(t)dt
[0056] The charge discharges the capacitor, and the expression is as follows:
[0057]
[0058] The charge Q on capacitor C1 is constantly changing. If capacitor C1 cannot change at a corresponding speed, the voltage V on the capacitor will change, and the output peak voltage V outIt cannot remain constant, but once the capacitor C1 is determined, it cannot be changed. Due to the mismatch of charging and discharging speed, ripples will inevitably be generated in the amplitude detection circuit.
[0059] The causes of ripple are analyzed in detail below.
[0060] When receiving the input signal V in When the peak detector output voltage rises immediately to V out ; But when no input signal V is received in or V in <V out When the charge on the capacitor leaks due to parasitic effects, V out It decreases at a fixed slope. When the next input peak signal comes, capacitor C1 will be fully charged again to reach the peak value. out It will show a phenomenon of periodically slowly dropping and then rising, and present a sawtooth shape, thus forming circuit ripple.
[0061] Circuit ripple and conversion rate SR are a pair of compromises. SR is a large signal parameter, defined as the ratio of discharge current to charging capacitance C, and its expression is:
[0062]
[0063] SR can be adjusted by adjusting the capacitance of capacitor C and the size of discharge current I. The larger the SR, the faster the speed, and the better it can track signals with drastic changes in amplitude, but the disadvantage is that the generated ripple is also larger.
[0064] It is worth noting that regardless of V in Ripple will be generated when the voltage drops suddenly or slowly from the highest point. The traditional method of discharge is to discharge through the load resistor R, and the discharge speed is determined by the RC time constant τ. The smaller τ is, the faster the discharge speed is. out Follow V in But in the same time, V out The faster the rise / fall, the narrower the ripple spacing and the denser the ripples will be.
[0065] Obviously, ripple is an unfavorable AC interference, which will cause the positive and negative peak-to-peak values detected by the amplitude detector to be not a fixed DC voltage. The AC component will cause the generated peak value V out The ripple is unstable, which leads to a sharp deterioration in the linearity of the subsequent circuit. Therefore, in order to improve the linearity of the circuit, the ripple must be eliminated.
[0066] There are some shortcomings in the related art. It usually only uses a low-pass filter to reduce ripples. Although the low-pass filter can effectively reduce high-frequency ripples, it may also affect the high-frequency components of the signal, causing signal distortion. This effect is particularly obvious when the signal frequency is close to the filter cutoff frequency. At the same time, the low-pass filter will slow down the system's response to sudden changes in signals and may miss some rapidly changing information.
[0067] In view of this, a circuit for suppressing ripples in an amplitude detector is provided in an embodiment of the present application. The circuit includes a peak detector module, a valley detector module, a subtractor, an inverter, a time difference generator, an integrator and a half-peak detector. An inverter, a time difference generator, an integrator and a half-peak detector module are added on the basis of a traditional amplitude detector to eliminate ripples, wherein the inverter is used to monitor the signal nodes related to the input frequency in the peak detector and the valley detector, and the obtained square wave information is sent to the time difference generator to generate a pulse waveform related to the frequency, and the duty cycle of this pulse waveform is positively correlated with the input frequency. After this pulse waveform is converted into a DC voltage by a capacitor and an integrator, it is used as a control signal to adjust the charging and discharging speed of the current source in the half-peak detector. In other words, the half-peak detector is controlled by the input signal frequency, which can realize that the charging and discharging speed follows the signal frequency and is automatically adjusted without being interfered by the signal amplitude.
[0068] When the frequency of the input signal is very low, the voltage on the capacitor cannot be maintained for a long time due to parasitic effects, so the control voltage will decrease with the signal frequency to slow down the discharge speed of the capacitor in the half-peak detector. Similarly, as the frequency of the input signal increases, the control voltage will gradually increase to speed up the discharge of the capacitor to follow the change of the peak signal. Therefore, the charging and discharging speed of the capacitor in the detector matches the frequency of the input signal, effectively avoiding the generation of ripples.
[0069] Reference Figure 1 , Figure 1 A structural diagram of a circuit for suppressing ripples in an amplitude detector provided by an embodiment of the present invention, referring to Figure 1, the circuit includes an amplitude detection loop 1 and a ripple elimination circuit 2, the amplitude detection loop includes a peak detector 101, a valley detector 102 and a subtractor 103, the ripple elimination circuit includes a first inverter 201, a second inverter 202, a time difference generator 203, an integrator 204 and a half-peak detector 205, the first output end of the peak detector is connected to the first input end of the subtractor, the first output end of the valley detector is connected to the second input end of the subtractor, the second output end of the peak detector is connected to the input end of the first inverter, the second output end of the valley detector is connected to the input end of the second inverter, the output end of the second inverter and the output end of the first inverter are both connected to the input end of the time difference generator, the output end of the time difference generator is connected to the input end of the integrator, the output end of the integrator is connected to the first input end of the half-peak detector, and the output end of the subtractor is connected to the second input end of the half-peak detector, wherein:
[0070] The amplitude detection loop is used to detect the amplitude of the differential input signal to obtain the peak-to-peak value of the differential input signal;
[0071] Specifically, the peak detector is used to obtain the positive peak signal data of the differential input signal; the valley detector is used to obtain the negative peak signal data of the differential input signal; and the subtractor is used to subtract the positive peak signal data from the negative peak signal data to obtain the peak-to-peak value of the differential input signal.
[0072] The ripple elimination switching circuit is used to adjust the capacitor charge and discharge rate according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal.
[0073] Specifically, the first inverter is used to perform frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data; the second inverter is used to perform frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data; the time difference generator is used to compare the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal; the integrator is used to perform waveform conversion processing on the pulse signal to obtain a control voltage value; the half-peak detector is used to perform capacitor charge and discharge rate adjustment processing according to the control voltage value to eliminate the ripple information of the differential input signal.
[0074] Furthermore, it should be noted that if Figure 4 As shown, the peak detector and the first inverter include a first transistor M1, a second transistor M2, a third transistor M3, a fourth transistor M4, a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8, a ninth transistor M9, a tenth transistor M 10 , the eleventh transistor M 11 , the twelfth transistor M 12 , the thirteenth transistor M13 , the fourteenth transistor M 14 , the first ammeter I b1 , a second capacitor C2, and a first inverter unit INV1, wherein the source of the first transistor, the source of the second transistor, the source of the third transistor, the source of the fourth transistor, the source of the fifth transistor, the source of the sixth transistor, the source of the seventh transistor, and the source of the eighth transistor are connected, the gate of the first transistor, the gate of the second transistor, the drain of the second transistor are connected to the drain of the tenth transistor, the drain of the first transistor, the drain of the ninth transistor, the drain of the third transistor, and the gate of the fourth transistor are connected, the source of the ninth transistor, the source of the tenth transistor, and the drain of the thirteenth transistor are connected, and the source of the thirteenth transistor is connected. , the second end of the first ammeter, the second end of the second capacitor and the source of the fourteenth transistor are connected, the drain of the fourth transistor, the gate of the tenth transistor, the first end of the first ammeter, the drain of the fifth transistor, the first end of the second capacitor and the gate of the eleventh transistor are connected, the gate of the fifth transistor, the gate of the sixth transistor, the drain of the sixth transistor, the drain of the eighth transistor, the input end of the first inverter unit and the drain of the twelfth transistor are connected, the gate of the seventh transistor, the drain of the seventh transistor, the gate of the eighth transistor and the drain of the eleventh transistor are connected, and the source of the eleventh transistor, the source of the twelfth transistor and the drain of the fourteenth transistor are connected.
[0075] Furthermore, it should be noted that if Figure 5 As shown, the valley detector and the second inverter include a fifteenth transistor M 15 , the sixteenth transistor M 16 , the seventeenth transistor M 17 , the eighteenth transistor M 18 , the nineteenth transistor M 19 , the twentieth transistor M 20 , the twenty-first transistor M 21 , the twenty-second transistor M 22 , the twenty-third transistor M 23 , the twenty-fourth transistor M 24 25th transistor M 25 , the twenty-sixth transistor M 26 , the twenty-seventh transistor M 27 , the twenty-eighth transistor M 28 , the third capacitor C3, the second ammeter I b2and a second inverter unit INV2, wherein the source of the fifteenth transistor, the source of the sixteenth transistor, and the first end of the third capacitor are connected to the first end of the second ammeter, the drain of the fifteenth transistor, the source of the seventeenth transistor are connected to the source of the eighteenth transistor, the drain of the seventeenth transistor, the drain of the twenty-first transistor, the drain of the twenty-third transistor, the gate of the twenty-third transistor and the gate of the twenty-fourth transistor are connected, the drain of the eighteenth transistor, the drain of the twenty-second transistor, the gate of the twenty-first transistor and the gate of the twenty-second transistor are connected, the gate of the eighteenth transistor, the second end of the third capacitor, the second end of the second ammeter, the drain of the twenty-fourth transistor, the drain of the twenty-fifth transistor and the nineteenth transistor are connected The gates of the transistors are connected, the drain of the nineteenth transistor, the drain of the twenty-seventh transistor, the gate of the twenty-seventh transistor and the gate of the twenty-eighth transistor are connected, the drain of the twenty-sixth transistor, the source of the nineteenth transistor and the source of the twentieth transistor are connected, the drain of the twentieth transistor, the drain of the twenty-eighth transistor, the drain of the twenty-sixth transistor, the gate of the twenty-fifth transistor, and the gate of the twenty-sixth transistor are connected to the input end of the second inverter unit, and the source of the twenty-first transistor, the source of the twenty-second transistor, the source of the twenty-third transistor, the source of the twenty-fourth transistor, the source of the twenty-fifth transistor, the source of the twenty-sixth transistor, the source of the twenty-seventh transistor and the source of the twenty-eighth transistor are connected.
[0076] Furthermore, it should be noted that if Figure 6 As shown, the time difference generator includes a first NAND gate N1, a second NAND gate N2, a third NAND gate N3, a fourth NAND gate N4, a fifth NAND gate N5, a sixth NAND gate N6, a seventh NAND gate N7, an eighth NAND gate N8, a ninth NAND gate N9, a tenth NAND gate N 10 , the eleventh NAND gate N 11 and the first XOR gate N 12, wherein the first input terminal of the first NAND gate is connected to the output terminal of the seventh NAND gate, the output terminal of the first NAND gate, the first input terminal of the third NAND gate, the first input terminal of the seventh NAND gate, and the second input terminal of the eighth NAND gate are connected to the second input terminal of the ninth NAND gate, the second input terminal of the second NAND gate is connected to the output terminal of the eleventh NAND gate, the output terminal of the second NAND gate, the second input terminal of the sixth NAND gate, the third input terminal of the eleventh NAND gate, and the first input terminal of the tenth NAND gate are connected to the third input terminal of the ninth NAND gate, the second input terminal of the third NAND gate is connected to the output terminal of the fourth NAND gate, the output terminal of the third NAND gate, the first input terminal of the fourth NAND gate, and the seventh NAND gate are connected to the output terminal of the fourth NAND gate. The third input terminal and the first input terminal of the eighth NAND gate are connected to the first input terminal of the ninth NAND gate, the second input terminal of the fourth NAND gate, the first input terminal of the fifth NAND gate, the second input terminal of the seventh NAND gate, and the output terminal of the ninth NAND gate are connected to the second input terminal of the eleventh NAND gate, the second input terminal of the fifth NAND gate, the output terminal of the sixth NAND gate, the fourth input terminal of the ninth NAND gate, and the second input terminal of the tenth NAND gate are connected to the first input terminal of the eleventh NAND gate, the output terminal of the fifth NAND gate is connected to the first input terminal of the sixth NAND gate, the output terminal of the eighth NAND gate is connected to the first input terminal of the first XOR gate, and the output terminal of the tenth NAND gate is connected to the second input terminal of the first XOR gate.
[0077] Furthermore, it should be noted that if Figure 8 As shown, the integrator includes a second resistor R2, a third resistor R3, a fourth capacitor C4 and an operational amplifier A, the second end of the second resistor, the first end of the third resistor, and the first end of the fourth capacitor are connected to the negative input terminal of the operational amplifier, and the second end of the third resistor and the second end of the fourth capacitor are connected to the output terminal of the operational amplifier.
[0078] Furthermore, it should be noted that if Fig. 9 As shown, the half-peak detector includes a twenty-ninth transistor M 29 , the 30th transistor M 30 , the thirty-first transistor M 31 , the thirty-second transistor M 32 33rd transistor M 33 , the thirty-fourth transistor M 34 35th transistor M 35 , the thirty-sixth transistor M 36and a fifth capacitor C5, wherein the source of the twenty-ninth transistor, the source of the thirtieth transistor, and the source of the thirty-first transistor are connected to the source of the thirty-second transistor, the gate of the twenty-ninth transistor, the gate of the thirtieth transistor, and the drain of the thirtieth transistor are connected to the drain of the thirty-fourth transistor, the drain of the twenty-ninth transistor, the drain of the thirty-third transistor, the drain of the thirty-first transistor, the gate of the thirty-first transistor are connected to the gate of the thirty-second transistor, the drain of the thirty-second transistor, the gate of the thirty-fourth transistor, and the first end of the fifth capacitor are connected to the drain of the thirty-sixth transistor, the source of the thirty-third transistor, the source of the thirty-fourth transistor are connected to the drain of the thirty-fifth transistor, and the source of the thirty-fifth transistor and the second end of the fifth capacitor are connected to the source of the thirty-sixth transistor.
[0079] See also Figure 2 The embodiment of the present application further provides a method for suppressing a circuit for suppressing ripples of an amplitude detector, which can implement the above-mentioned circuit for suppressing ripples of an amplitude detector. The method includes:
[0080] S100, obtaining a differential input signal and performing amplitude detection to obtain a peak-to-peak value of the differential input signal;
[0081] First of all, it should be noted that the automatic gain control structure is essentially a subsystem, which is composed of multiple sub-modules working together to realize the automatic gain control function, and the functional modules can be adjusted accordingly according to actual needs.
[0082] Usually, the detected amplitude is subjected to a series of mathematical operations to obtain a control voltage V C Or control current I C This quantity contains the output amplitude information, which means that the gain control loop adjusts the gain according to the output amplitude. If the output is too large, the gain is reduced, and if the output is too small, the gain is increased, and finally the output signal of the system is stabilized at a fixed amplitude.
[0083] In some specific embodiments, the amplitude detection loop includes a peak detector, a valley detector, and a subtractor, wherein the peak detector is used to obtain positive peak data of the input signal, the valley detector is used to obtain negative peak data of the input signal, and the subtractor is used to obtain peak-to-peak data of the input signal. The output V O+ is the positive peak value of the input signal, the output of the valley detector V O- The subtractor subtracts the positive peak value from the negative peak value to obtain the output V ou The differential input signal V in+ and V in-The amplitude of the ripple is also included. It is composed of an inverter, a time difference generator, an integrator and a half-peak detector. The inverter is used to obtain the frequency data of the input signal, the time difference generator is used to obtain the pulse signal related to the input frequency, the integrator is used to convert the waveform to generate a control signal, and the half-peak detector is used to detect the peak value of the input signal and control the charging and discharging speed of the capacitor.
[0084] The peak detector and the valley detector are used as amplitude detectors to detect the peak value of the output signal. The peak detector has a differential input and single-ended output structure.
[0085] Among them, the first transistor M1, the second transistor M2, the ninth transistor M9, the tenth transistor M 10 , the thirteenth transistor M 13 and the seventh transistor M7, the eighth transistor M8, the eleventh transistor M 11 , the twelfth transistor M 12 , the fourteenth transistor M 14 is a feedback amplifier, the third transistor M3, the fourth transistor M4, the fifth transistor M5, and the sixth transistor M6 are current mirrors, C2 is a holding capacitor, and I b1 is the discharge current source. The inverter INV1 is connected to the output of the feedback amplifier. The left and right sides of the peak detector are mirrored, the left side is used to detect the peak value of the in-phase output signal, and the right side is used to detect the peak value of the reverse output signal. Output V O+ Output peak voltage, charge the capacitors on both sides, once every half cycle.
[0086] The basic principle is as follows: Taking the right side as an example, the seventh transistor M7, the eighth transistor M8, and the eleventh transistor M 11 , the twelfth transistor M 12 , the fourteenth transistor M 14 It is a classic 5-tube op amp used to compare the input signal V in1+ The peak voltage V O+ The output of the feedback amplifier is at the twelfth transistor M 12 The current flows from the feedback amplifier into the fifth transistor M5 and the sixth transistor M6 in the current mirror. At the same time, the output terminal is used as the input of the inverter to monitor the input signal V in1+ frequency value. When the input signal V in1+ When rising, the inverter output V b It becomes higher accordingly, and vice versa.
[0087] For peak detection: when the current mirror is turned on, it is equivalent to the diode being forward-conducted, and the current is copied to the fifth transistor M5 branch to charge the capacitor. The feedback amplifier acts as a buffer stage, which can both isolate the input and speed up the output. When the current mirror is turned off, it is equivalent to the diode being reverse-cut off, and there is no current in the fifth transistor M5 branch, and the capacitor maintains the peak voltage.
[0088] Specifically, when the input signal V in1+ Rising, the twelfth transistor M 12 The gate voltage is higher than the output V O+ The peak voltage of the output, the twelfth transistor M 12 The small signal current will increase. At the same time, the voltage at the inverter input drops, causing V b Since the seventh transistor M7 and the eighth transistor M8 in the current mirror clamp the branch current, the current of the seventh transistor M7 remains unchanged. 12 The KCL equation of the drain node of the capacitor C is obtained. The increased small signal current can only be extracted from the sixth transistor M6. The increased current of the sixth transistor M6 is copied to the output branch by the fifth transistor M5 and the sixth transistor M6 in the current mirror. This current will charge the capacitor C and output V O+ Voltage rises.
[0089] On the contrary, when the input signal V in1+ Falling, the twelfth transistor M 12 The gate voltage of the twelfth transistor M is lower than the peak voltage of the output terminal Vo+. 12 The small signal current will decrease. At the same time, the voltage at the inverter input increases, causing V b The eleventh transistor M 11 The gate voltage of the eleventh transistor M 11 The current increases, and the current copied to the input branch through the seventh transistor M7 and the eighth transistor M8 in the current mirror increases, so that the eighth transistor M8 and the twelfth transistor M 12 The drain node of the eighth transistor M8 and the twelfth transistor M6 no longer needs to draw current from the sixth transistor M6. The sixth transistor M6 only provides current but does not consume current. 12 The drain node potential will be pulled up to VDD, the fifth transistor M5 is turned off, the sixth transistor M6 is turned off, the circuit enters a short equilibrium state, and the output is the peak value of the current signal.
[0090] Similarly, the valley detector is always detecting the minimum value of the signal. The function of the valley detector is opposite to that of the peak detector, and the circuit structure is upside down. The inverter connected to the valley detector is used to detect the input signal V in1- frequency. When the input signal Vin1- When rising, the inverter output V a The principle of the valley detector detecting the negative peak is the same as the principle of the peak detector detecting the positive peak, which will not be described here.
[0091] S200, performing capacitor charge and discharge rate adjustment processing according to the peak-to-peak value of the differential input signal to eliminate ripple information of the differential input signal;
[0092] It should be noted that, in some embodiments, step S200 may include steps S210 to S250.
[0093] S210, performing frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data;
[0094] S220, performing frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data;
[0095] In this embodiment, the output terminals of the two inverters obtain a voltage value V related to the frequency of the input signal. a and V b Both of these are pulse signals, and the difference between their rising edges represents the period of the input signal.
[0096] S230, comparing the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal;
[0097] In this embodiment, the present invention uses a time difference generator to calculate V a and V b The rising edge time difference between two signals. The time difference generator is implemented using a classic three-state phase frequency detector based on NOR gates and XOR gates.
[0098] The time difference generator circuit detects the time difference between the positive edges of its two inputs and produces an output digital pulse with a width equal to the input time difference.
[0099] V a Analysis of point input:
[0100] Node ① is used as the input of the SR latch, and node ② is used as the output of the SR latch. The state of node ② is opposite to that of input node ①. Node ① and ② inputs generate output node X. Due to the characteristics of the NAND gate, the output is low only when all inputs are high.
[0101] Assume that node ⑦ is high, when input V aWhen the point is low, the output node ① is low, one of the PMOS is turned on, causing node ② to be high, node X output is high, node ⑨ output must be high, node ⑤ output is low, node ⑦ output is high, the assumption is established, and the circuit remains stable.
[0102] When the input V a When it suddenly jumps to high, node ① becomes high, node ② is maintained high because node ⑤ is low, node X output is low, and the inputs of the four-input NAND gate are all high, causing node ⑨ to be low, resulting in node ⑤ output high. Nodes ① and ⑤ are both high, causing node ② to jump from high to low. The falling edge of node ② causes the rising edge of node X, causing node X to jump from low to high in a very short time. It can be seen from this that the falling edge of the output node X detects the rising edge of node ①, that is, the detection input terminal V a The rising edge of the point.
[0103] V b Analysis of point input:
[0104] Similarly, assuming that node⑧ is high, when the input V b When the point is low, the output node ③ is low, causing node ④ to be high, and node Y output is high. When the output of node ⑨ is high, node ⑥ outputs a low point, and node ⑧ outputs high. The assumption is established and the circuit remains stable. Similarly, the falling edge detection of node Y V b The rising edge of the point.
[0105] When nodes ①, ②, ③, and ④ are all high, node ⑨ outputs low. If any low level appears at nodes ① to ④, node ⑨ outputs high, causing nodes ⑤ and ⑥ to have low levels, which control nodes ② and ④ to output low, causing nodes X and Y to rise from low levels to high. It can be seen that the rising edge of the output nodes X and Y is controlled by the rising edge of node ⑨.
[0106] After passing through an XOR gate circuit at nodes X and Y, the output V K , detect the difference in the falling edge time of the output nodes X and Y, that is, detect the input terminal V a and V b The waveform of the time difference generator in the present invention is as follows: Figure 7 shown.
[0107] S240, performing waveform conversion processing on the pulse signal to obtain a control voltage value;
[0108] In this embodiment, the pulse waveform V with frequency information K For a fixed capacitor C C Charge and discharge, so that the pulse signal can be converted into a rectangular wave signal, and the voltage height V of the rectangular wave c It is obtained by the following formula:
[0109]
[0110] Where I is the fixed capacitor C C Charging current source, t is the pulse waveform V K It can be seen that the higher the frequency of the input signal, the higher the voltage V a and V b The faster the change, the faster the waveform V K The smaller the duty cycle, the higher the voltage value V of the right-angle wave. c In other words, the voltage value V c The size represents the frequency of the input signal.
[0111] The present invention inputs the right-angle wave into the integrator and the reference voltage V REF After comparison, the controlled DC voltage V ctrl .
[0112] The operational amplifier A of the integrator in the present invention can be realized by a general-purpose five-tube amplifier, and the inverting input terminal is connected to the right-angle wave voltage V of the previous stage. c , the non-inverting input terminal is connected to the reference voltage V REF , output terminal V ctrl Connect to the voltage control terminal of the half-peak detector of the next stage. Add resistors and capacitors between the input and output of the op amp to form a closed-loop feedback form, thereby realizing the function of the integrator. The integrator first converts the input V c With the preset reference voltage V REF After comparison, the difference between the two inputs is integrated. According to the virtual short and virtual open, the current flowing through the integral capacitor C4 is:
[0113]
[0114] The integrator output voltage is:
[0115]
[0116] Since the integrator input V c And the reference voltage V REF are all DC voltages that do not change with time t, which can be simplified as:
[0117]
[0118] A feedback resistor R3 is connected in parallel to the capacitor C4 of the integrator to realize a low-pass path to filter out the high-frequency components of the right-angle wave. Therefore, the output voltage V ctrl It is a DC voltage with frequency information, which can be used as a control voltage to automatically adjust the speed of capacitor charging and discharging in the subsequent half-peak detector.
[0119] S250, adjusting the capacitor charge and discharge rate according to the control voltage value to eliminate the ripple information of the differential input signal.
[0120] In some specific embodiments, the half-peak detector is a half-side circuit of the peak detector, and the circuit structure is simple and easy to implement. 29 , the 30th transistor M 30 , the thirty-third transistor M 33 , the thirty-fourth transistor M 34 35th transistor M 35 It is a classic 5-tube op amp used to compare the subtractor output signal V ou The peak voltage V out The thirty-first transistor M 31 35th transistor M 35 is a current mirror, C5 is a holding capacitor, and the thirty-sixth transistor M 36 As a discharge current source, the DC voltage V with input signal frequency information ctrl as the control voltage of its gate.
[0121] When the input voltage V ou When rising, the input pipe M 33 The small signal current increases, and the increased small signal current increases from M 31 Extraction, M 31 The increased current is reflected by the current mirror M 31 、M 32 The increased current will charge capacitor C5 because the discharge current source M 36 It works in the saturation region and discharges with a stable current, so the output voltage V out Thus, the output of the half-peak detector achieves peak-to-peak tracking of the subtractor amplitude.
[0122] When the frequency of the input signal decreases, the pulse waveform V K The increase in duty cycle causes the integrator output voltage V ctrl becomes smaller, making the originally stable discharge current source M 36 The gate-source voltage drops and the on-current decreases, which can effectively reduce the discharge speed of the holding capacitor C5. 36 The transistor size is reduced to match the reduced frequency of the input signal, which effectively eliminates the ripple generated during the operation of the amplitude detector.
[0123] In summary, the embodiments of the present invention can be unaffected by the frequency of the input signal and effectively eliminate ripples. The principle is to use the frequency information extracted from the amplitude detector to generate a control voltage to adjust the speed of charging and discharging the capacitor in the peak detector. Specifically, an inverter is used to monitor the output with frequency information in the amplitude detector, and a pulse signal is obtained by comparing the peak detector and the valley detector through a time difference generator. The pulse signal with frequency information is input into an integrator after passing through a capacitor, thereby obtaining a control voltage value related to the input frequency. This voltage value controls the current source connected to the half-peak detector to regulate the charging and discharging speed of the capacitor in the parallel branch. The charging and discharging speed of the capacitor in the half-peak detector is matched with the input signal frequency to eliminate ripples.
[0124] The present invention provides a method for automatically following the input signal frequency to eliminate ripples, which effectively solves the problem of signal distortion caused by frequency changes. The half-peak detector circuit has a simple structure and an automatically adjusted charge and discharge current source, which can match the frequency of the input signal and is not affected by the amplitude of the input signal.
[0125] The present invention utilizes the frequency information in the output of the detector, so that frequency extraction can be realized without complex detection circuits. The amplitude detection of the half-peak detector can be adjusted by detecting the input signal frequency to realize accurate reading of the amplitude in the automatic gain control system.
[0126] Compared with the prior art, the present invention can greatly suppress the ripple generated by the mismatch between the charging and discharging speed and the input signal frequency, and will not limit the system bandwidth and affect the overall performance.
[0127] Compared with the fixed charging and discharging speed of the previous peak detector and amplitude detector, the half-peak detector here has an automatically adjustable charging and discharging current source, which can automatically adjust the size of the charging and discharging current according to the frequency of the input signal while effectively detecting the peak value. The present invention can almost completely match the input frequency to eliminate the ripple of the amplitude detector by accurately designing the size of the discharge current source.
[0128] Fig.10 The effect of the present invention is demonstrated. Fig.10 The input signal V in+ and V in- It is a set of differential signals with an amplitude of 0.32V and a frequency of 10Hz within 0.05-0.25s; an amplitude of 0.65V and a frequency of 20Hz within 0.25-0.35s; an amplitude of 1V and a frequency of 40Hz within 0.35-0.55s; then, the amplitude of the signal gradually decreases at a frequency of 80Hz.
[0129] Fig.11 The output result without using the present invention is shown. It can be seen that the output voltage V ouAlthough the amplitude can be detected, there is serious ripple interference. In particular, when the frequency is relatively low, the discharge speed mismatch causes obvious ripples. The superposition of these AC components will cause the gain of the automatic gain control system to be unstable and the linearity to be deteriorated.
[0130] Fig.12 The output results after using the present invention are shown. Thanks to the control of the charge and discharge current, the output ripples at different frequencies are greatly eliminated, and the amplitude of the input differential signal can be clearly distinguished. The method of the present invention effectively eliminates the ripples in the amplitude detector.
[0131] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0132] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A circuit for suppressing ripple of an amplitude detector, characterized in that: The circuit includes an amplitude detection loop and a ripple elimination circuit, the amplitude detection loop includes a peak detector, a valley detector and a subtractor, the ripple elimination circuit includes a first inverter, a second inverter, a time difference generator, an integrator and a half-peak detector, the first output end of the peak detector is connected to the first input end of the subtractor, the first output end of the valley detector is connected to the second input end of the subtractor, the second output end of the peak detector is connected to the input end of the first inverter, the second output end of the valley detector is connected to the input end of the second inverter, the output end of the second inverter and the output end of the first inverter are both connected to the input end of the time difference generator, the output end of the time difference generator is connected to the input end of the integrator, the output end of the integrator is connected to the first input end of the half-peak detector, and the output end of the subtractor is connected to the second input end of the half-peak detector, wherein: The amplitude detection loop is used to perform amplitude detection on the differential input signal to obtain the peak-to-peak value of the differential input signal; The ripple elimination circuit is used to perform capacitor charge and discharge rate adjustment processing according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal.
2. The circuit according to claim 1, characterized in that Also includes: The peak detector is used to obtain positive peak signal data of the differential input signal; The valley detector is used to obtain negative peak signal data of the differential input signal; The subtractor is used to perform a subtraction calculation on the positive peak signal data and the negative peak signal data to obtain the peak-to-peak value of the differential input signal.
3. The circuit according to claim 1, characterized in that Also includes: The first inverter is used to perform frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data; The second inverter is used to perform frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data; The time difference generator is used to compare the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal; The integrator is used to perform waveform conversion processing on the pulse signal to obtain a control voltage value; The half-peak detector is used to perform capacitor charge and discharge rate adjustment processing according to the control voltage value to eliminate ripple information of the differential input signal.
4. The circuit according to claim 1, characterized in that The peak detector and the first inverter include a first transistor, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a sixth transistor, a seventh transistor, an eighth transistor, a ninth transistor, a tenth transistor, an eleventh transistor, a twelfth transistor, a thirteenth transistor, a fourteenth transistor, a first ammeter, a second capacitor, and a first inverter unit, wherein a source of the first transistor, a source of the second transistor, a source of the third transistor, a source of the fourth transistor, a source of the fifth transistor, a source of the sixth transistor, a source of the seventh transistor, and a source of the eighth transistor are connected, a gate of the first transistor, a gate of the second transistor, and a drain of the second transistor are connected to a drain of the tenth transistor, and a drain of the first transistor, a drain of the ninth transistor, a drain of the third transistor, and a gate of the fourth transistor are connected. The source of the ninth transistor, the source of the tenth transistor and the drain of the thirteenth transistor are connected, the source of the thirteenth transistor, the second end of the first ammeter, the second end of the second capacitor and the source of the fourteenth transistor are connected, the drain of the fourth transistor, the gate of the tenth transistor, the first end of the first ammeter, the drain of the fifth transistor, the first end of the second capacitor and the gate of the eleventh transistor are connected, the gate of the fifth transistor, the gate of the sixth transistor, the drain of the sixth transistor, the drain of the eighth transistor, and the input end of the first inverter unit are connected to the drain of the twelfth transistor, the gate of the seventh transistor, the drain of the seventh transistor, and the gate of the eighth transistor are connected to the drain of the eleventh transistor, and the source of the eleventh transistor and the source of the twelfth transistor are connected to the drain of the fourteenth transistor.
5. The circuit according to claim 1, characterized in that The valley detector and the second inverter include a fifteenth transistor, a sixteenth transistor, a seventeenth transistor, an eighteenth transistor, a nineteenth transistor, a twentieth transistor, a twenty-first transistor, a twenty-second transistor, a twenty-third transistor, a twenty-fourth transistor, a twenty-fifth transistor, a twenty-sixth transistor, a twenty-seventh transistor, a twenty-eighth transistor, a third capacitor, a second ammeter and a second inverter unit, wherein a source of the fifteenth transistor, a source of the sixteenth transistor, a first end of the third capacitor and a first end of the second ammeter are connected, a drain of the fifteenth transistor and a source of the seventeenth transistor are connected to a source of the eighteenth transistor, a drain of the seventeenth transistor, a drain of the twenty-first transistor, a drain of the twenty-third transistor, and a gate of the twenty-third transistor are connected to a gate of the twenty-fourth transistor, a drain of the eighteenth transistor, a drain of the twenty-second transistor, and a gate of the twenty-first transistor are connected to a gate of the twenty-second transistor, The gate of the eighteenth transistor, the second end of the third capacitor, the second end of the second ammeter, the drain of the twenty-fourth transistor, the drain of the twenty-fifth transistor and the gate of the nineteenth transistor are connected, the drain of the nineteenth transistor, the drain of the twenty-seventh transistor, and the gate of the twenty-seventh transistor are connected to the gate of the twenty-eighth transistor, the drain of the twenty-sixth transistor and the source of the nineteenth transistor are connected to the source of the twentieth transistor, the drain of the twentieth transistor, the drain of the twenty-eighth transistor, the drain of the twenty-sixth transistor, the gate of the twenty-fifth transistor and the gate of the twenty-sixth transistor are connected to the input end of the second inverter unit, and the source of the twenty-first transistor, the source of the twenty-second transistor, the source of the twenty-third transistor, the source of the twenty-fourth transistor, the source of the twenty-fifth transistor, the source of the twenty-sixth transistor, the source of the twenty-seventh transistor and the source of the twenty-eighth transistor are connected.
6. The circuit according to claim 1, characterized in that The time difference generator includes a first NAND gate, a second NAND gate, a third NAND gate, a fourth NAND gate, a fifth NAND gate, a sixth NAND gate, a seventh NAND gate, an eighth NAND gate, a ninth NAND gate, a tenth NAND gate, an eleventh NAND gate and a first XOR gate, wherein the first input end of the first NAND gate is connected to the output end of the seventh NAND gate, the output end of the first NAND gate, the first input end of the third NAND gate, the first input end of the seventh NAND gate, and the second input end of the eighth NAND gate are connected to the second input end of the ninth NAND gate, the second input end of the second NAND gate is connected to the output end of the eleventh NAND gate, the output end of the second NAND gate, the second input end of the sixth NAND gate, the third input end of the eleventh NAND gate, and the first input end of the tenth NAND gate are connected to the third input end of the ninth NAND gate, and the second input end of the third NAND gate is connected to the fourth NAND gate. The output end of the gate is connected, the output end of the third NAND gate, the first input end of the fourth NAND gate, the third input end of the seventh NAND gate, and the first input end of the eighth NAND gate are connected to the first input end of the ninth NAND gate, the second input end of the fourth NAND gate, the first input end of the fifth NAND gate, the second input end of the seventh NAND gate, and the output end of the ninth NAND gate are connected to the second input end of the eleventh NAND gate, the second input end of the fifth NAND gate, the output end of the sixth NAND gate, the fourth input end of the ninth NAND gate, and the second input end of the tenth NAND gate are connected to the first input end of the eleventh NAND gate, the output end of the fifth NAND gate is connected to the first input end of the sixth NAND gate, the output end of the eighth NAND gate is connected to the first input end of the first XOR gate, and the output end of the tenth NAND gate is connected to the second input end of the first XOR gate.
7. The circuit according to claim 1, characterized in that The integrator includes a second resistor, a third resistor, a fourth capacitor and an operational amplifier, the second end of the second resistor, the first end of the third resistor, and the first end of the fourth capacitor are connected to the negative input terminal of the operational amplifier, and the second end of the third resistor and the second end of the fourth capacitor are connected to the output terminal of the operational amplifier.
8. The circuit according to claim 1, characterized in that The half-peak detector includes a twenty-ninth transistor, a thirtieth transistor, a thirty-first transistor, a thirty-second transistor, a thirty-third transistor, a thirty-fourth transistor, a thirty-fifth transistor, a thirty-sixth transistor and a fifth capacitor, wherein the source of the twenty-ninth transistor, the source of the thirtieth transistor, and the source of the thirty-first transistor are connected to the source of the thirty-second transistor, the gate of the twenty-ninth transistor, the gate of the thirtieth transistor, and the drain of the thirtieth transistor are connected to the drain of the thirty-fourth transistor, the drain of the twenty-ninth transistor, the drain of the thirty-third transistor, the drain of the thirty-first transistor, and the gate of the thirty-second transistor are connected, the drain of the thirty-second transistor, the gate of the thirty-fourth transistor, and the first end of the fifth capacitor are connected to the drain of the thirty-sixth transistor, the source of the thirty-third transistor, the source of the thirty-fourth transistor are connected to the drain of the thirty-fifth transistor, and the source of the thirty-fifth transistor and the second end of the fifth capacitor are connected to the source of the thirty-sixth transistor.
9. A method for suppressing a circuit for suppressing ripples in an amplitude detector, characterized in that: The method comprises the following steps: Acquire a differential input signal and perform amplitude detection to obtain a peak-to-peak value of the differential input signal; The capacitor charge and discharge rate adjustment process is performed according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal.
10. The method according to claim 9, characterized in that The step of adjusting the capacitance charge and discharge rate according to the peak-to-peak value of the differential input signal to eliminate the ripple information of the differential input signal includes: Performing frequency signal node detection on the positive peak signal data to obtain square wave information of the positive peak signal data; Performing frequency signal node detection on the negative peak signal data to obtain square wave information of the negative peak signal data; Compare the square wave information of the negative peak signal data with the square wave information of the positive peak signal data to obtain a pulse signal; Performing waveform conversion processing on the pulse signal to obtain a control voltage value; The capacitor charge and discharge rate is adjusted according to the control voltage value to eliminate the ripple information of the differential input signal.
Citation Information
Patent Citations
Semiconductor device outputting oscillation signal
CN101436858A
System and method for suppression of peaking in external LC filter of buck regulator
CN104185946A
Baseline correction in PET utilizing continuous sampling ADCs to compensate for DC and count rate errors
US20040188623A1
