Ripple noise detection circuit
By introducing extraction unit, comparison unit and positive feedback circuit into the ripple noise detection circuit, the problem of unstable ripple noise detection signal is solved, the stability and safety of ripple noise detection are realized, and the ripple noise detection is avoided unqualified ripple noise is avoided. The use of power supply reduces hardware costs and operating risks.
Patent Information
- Application Number
- CN202410941906.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-11-08
AI Technical Summary
The existing ripple noise detection circuit outputs a signal of change in height when the ripple noise is higher than the reference voltage, which is unstable and it is difficult to determine whether the ripple noise exceeds the allowable range of the reference voltage.
A ripple noise detection circuit is designed, including an extraction unit, a comparison unit and a positive feedback circuit. When the ripple noise is greater than the reference voltage, a stable indication signal is output, and the positive feedback circuit ensures the continuous output of the indication signal, which is convenient for subsequent circuit analysis. and handle.
The signal stability of the output of the ripple noise detection circuit is realized, and the power supply with unqualified ripple noise is avoided. The hardware overhead is reduced, and the warning function is provided through the alarm circuit, which avoids economic losses and safety hazards.
Smart Images

Figure CN118914910A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic technology, and in particular to a ripple noise detection circuit. Background Art
[0002] In the field of electronic technology, chips have strict requirements on the power supply voltage. For example, in general, the fluctuation range of the power supply voltage allowed for the integrated circuit chip in the server is: reference voltage ±5%; for some special chips, such as the chip of the expansion backplane, the fluctuation range of the power supply voltage allowed is: reference voltage ±2%. This also puts forward certain requirements for the ripple noise of the power supply. If the ripple noise is not tested, the board with excessive ripple noise will not be identified, resulting in hidden dangers such as failure to boot, abnormal power failure or poor performance. Therefore, a ripple noise detection technology is needed to determine whether the ripple noise of the power supply meets the use requirements.
[0003] In the existing ripple noise detection circuit, when the ripple noise is higher than the reference voltage, the detection circuit outputs a high-level signal; thereafter, when the ripple noise is lower than the reference voltage again, the detection circuit outputs a low-level signal. Therefore, the detection circuit will output a high-low varying signal, and the output signal is unstable, which makes it difficult to determine whether the ripple noise exceeds the reference voltage. Summary of the invention
[0004] An embodiment of the present application provides a ripple noise detection circuit. After the ripple noise is greater than the reference voltage, the detection circuit can continuously output an indication signal. The indication signal is stable, which is convenient for determining whether the ripple noise of the target to be measured exceeds the voltage fluctuation range allowed by the target to be measured voltage.
[0005] In a first aspect, an embodiment of the present application provides a ripple noise detection circuit, comprising: an extraction unit, used to receive a target voltage to be measured, and extract ripple noise from the target voltage to be measured, and output the ripple noise; a comparison unit, comprising: a comparator, a first input terminal of the comparator is connected to the output terminal of the extraction unit to receive the ripple noise, a second input terminal of the comparator is used to receive a reference voltage, after the ripple noise is greater than the reference voltage, the output terminal of the comparator is used to output a stable indication signal, the indication signal is used to indicate that the ripple noise exceeds the allowable voltage fluctuation range of the target voltage to be measured; a positive feedback circuit, coupled between the first input terminal and the output terminal of the comparator, and used to positively feedback the indication signal to the first input terminal when the output terminal outputs the indication signal.
[0006] In the technical solution of the present application, the ripple noise in the target voltage to be measured is first extracted, and the ripple noise is compared with the reference voltage. After the ripple noise is greater than the reference voltage, a stable indication signal is output. That is, once the ripple noise is greater than the reference voltage, the comparison unit outputs a stable indication signal, even if the ripple noise is less than or equal to the reference voltage, the comparison unit still outputs a stable indication signal. The indication signal is continuously output, which is convenient for the downstream circuit to analyze, such as the alarm circuit continuously alarms according to the indication signal, so as to play a warning role. Further, since when any one of the ripple and noise exceeds the allowable fluctuation range of the target voltage to be measured, the target voltage to be measured is unqualified, the technical solution of the present application can extract the ripple and noise (i.e., ripple noise) in the target voltage to be measured, so that the judgment result is closer to the actual situation. Exemplarily, the ripple noise detection circuit of the present application can be used in the production test stage of the power supply, which can prevent the power supply with unqualified ripple noise from entering the use stage, and avoid the economic losses and safety hazards caused by the power supply with unqualified ripple noise during the use stage. Furthermore, the comparator is a hardware structure. In the process of comparing the ripple noise and the reference voltage, it is not necessary to sample the ripple noise, which reduces the hardware overhead. The amplitude of the ripple noise varies, and the ripple noise may be higher than the reference voltage at times and lower than the reference voltage at times. The positive feedback circuit avoids the high and low levels of the comparison unit output by performing positive feedback on the ripple noise, ensures the stability of the indication signal output by the comparison unit, and facilitates the subsequent circuit (such as the alarm circuit) to perform subsequent processing according to the indication signal (for example, continuously outputting the alarm signal).
[0007] In one possible implementation, the comparator includes an operational amplifier, and the positive feedback circuit includes: a diode having a positive electrode and a negative electrode, the positive electrode being connected to the output terminal of the operational amplifier; a positive feedback resistor, one end of which is connected to the negative electrode of the diode and the other end of which is connected to the first input terminal of the operational amplifier.
[0008] In this implementation, the diode has unidirectional conductivity. After the ripple noise is greater than the reference voltage, the indication signal output by the comparison unit passes through the diode and the positive feedback resistor, and the indication signal and the ripple noise are superimposed as the input signal of the first input terminal of the operational amplifier, thereby increasing the difference between the input signal (ripple noise and indication signal) of the first input terminal of the comparator and the input signal (reference voltage) of the second input terminal of the comparator, ensuring that the comparison unit outputs a stable indication signal. In other implementations, the function of the positive feedback circuit can also be realized through other circuit structures.
[0009] In a possible implementation, the extraction unit is provided in plurality, and the input end of each extraction unit is connected to a target voltage to be measured, and is used to extract ripple noise from the connected target voltage to be measured, and output the ripple noise from the output end. The ripple noise detection circuit also includes: a multi-channel gating unit, which has a plurality of input ends, an output end and a control end, each input end of the multi-channel gating unit is connected to an output end of an extraction unit, and the output end of the multi-channel gating unit is connected to a comparison unit, which is used to select an input end from the plurality of input ends of the multi-channel gating unit to connect to the output end of the multi-channel gating unit in response to a gating signal received by the control end, so as to determine the target voltage to be measured from the plurality of voltages to be measured; and a first micro-control unit, which is connected to the control end of the multi-channel gating unit, and is used to output a gating signal.
[0010] In this implementation, the technical problem of ripple noise detection for multiple voltages to be measured is solved. Multiple extraction units are set, and the input end of each extraction unit is connected to a voltage to be measured, and the output end of each extraction unit is connected to an input end of a multiplexer unit, and the output end of the multiplexer unit is connected to a comparison unit. The multiplexer unit controls the input end corresponding to the target voltage to be measured from the multiple input ends of the multiplexer unit by outputting a selection signal, and the multiplexer unit inputs the ripple noise of the target voltage to be measured into the comparison unit through the output end. Furthermore, by switching different voltages to be measured as target voltages to be measured, the purpose of ripple noise detection for multiple voltages to be measured can be achieved.
[0011] In one possible implementation, the first micro-control unit is also used to determine a reference voltage control signal based on the target voltage to be measured, and the comparison unit also includes: a reference voltage generation circuit, which is used to receive the reference voltage control signal, generate a reference voltage, and input the reference voltage to the second input terminal of the comparator.
[0012] In this implementation, in the application scenarios of multiple voltages to be measured, the reference voltage and the allowable voltage fluctuation range of each voltage to be measured may be different. Therefore, when determining the selection signal, the first micro-control unit also needs to determine the reference voltage corresponding to the target voltage to be measured based on information such as the reference voltage of the target voltage to be measured and the allowable voltage fluctuation range, so that the reference voltage can change with the change of the target voltage to be measured.
[0013] In one possible implementation, the first micro-control unit is also used to generate an unlocking control signal, and the comparison unit also includes: a positive feedback release circuit, coupled to the power supply end of the comparator, used to respond to the unlocking control signal, control the comparator to power off, the comparator no longer outputs an indication signal, and the positive feedback of the positive feedback circuit to the ripple noise is released.
[0014] In this implementation, the first micro-control unit generates an unlocking control signal, and the positive feedback release circuit controls the comparator to be powered off in response to the unlocking control signal, so that the comparator no longer outputs an indication signal, and the positive feedback of the positive feedback circuit to the ripple noise is released. In other words, the positive feedback release circuit can control the comparator to be powered off, so that the comparator no longer outputs a stable indication signal, and the positive feedback of the positive feedback circuit to the ripple noise is released, thereby restoring the "comparison" function of the comparator, that is, after the ripple noise is greater than the reference voltage, the comparator outputs a stable indication signal.
[0015] In a possible implementation, the positive feedback release circuit further includes: a first MOS tube, having a gate, a source and a drain, the gate of the first MOS tube being connected to an unlocking control signal, and one of the source and the drain of the first MOS tube being connected to a low voltage end; a second MOS tube, having a gate, a source and a drain, the gate of the second MOS tube being connected to the other of the source and the drain of the first MOS tube that is not connected to the low voltage end, one of the source and the drain of the second MOS tube being connected to a power supply end of the comparator, and the other of the source and the drain of the second MOS tube being connected to a high voltage end; an unlocking resistor, one end of which is connected to the other of the source and the drain of the second MOS tube being connected to the high voltage end, and the other end of which is connected to the gate of the second MOS tube; wherein, when the unlocking control signal is not received, the first MOS tube is turned on, the high voltage end is input to the low voltage end through the unlocking resistor and the first MOS tube, the second MOS tube is turned on, and the high voltage end supplies power to the comparator; when the unlocking control signal is received, the first MOS tube is turned off, the high voltage end is input to the gate of the second MOS tube through the unlocking resistor, the second MOS tube is turned off, the comparator is powered off, and the positive feedback of the positive feedback circuit to the ripple noise is released.
[0016] In this implementation, a specific implementation of a positive feedback release circuit is disclosed. When unlocking is not required, the first micro-control unit does not output the unlocking control signal, the first MOS tube is turned on, the high-voltage end is simultaneously connected to the gate and one of the source and drain of the second MOS tube, the high-voltage end is input to the low-voltage end through the unlocking resistor and the first MOS tube, the second MOS tube is turned on, and the high-voltage end supplies power to the comparator. Among them, the high-voltage end is simultaneously connected to the gate and one of the source and drain of the second MOS tube, and there is no need to connect an additional high-voltage end to input the gate of the second MOS tube, thereby reducing the hardware cost. When unlocking is required, the first micro-control unit does not output the unlocking control signal, the first MOS tube is disconnected, the high-voltage end is input to the gate of the second MOS tube through the unlocking resistor, the second MOS tube is disconnected, the comparator is powered off, and the comparison unit no longer outputs the indication signal, so the positive feedback circuit no longer performs positive feedback on the ripple noise. When the positive feedback release circuit is in a state where the unlocking control signal is not received again, based on the above circuit, the high-voltage end supplies power to the comparator again, and the comparator has the "comparison" function again, and the "comparison" function is: after the ripple noise is greater than the reference voltage, the comparison unit outputs an indication signal. Additionally, the positive feedback release circuit has a simple structure and low hardware cost.
[0017] In a possible implementation, the ripple noise detection circuit further includes: an alarm circuit, configured to output an alarm signal when receiving an indication signal.
[0018] In this implementation, the alarm signal can be used to provide a good reminder to the user.
[0019] In a possible implementation, the alarm circuit includes: a third MOS tube, having a gate, a source and a drain, the gate of the third MOS tube being connected to an indication signal; a device with an indication function being connected in series with the source or drain of the third MOS tube, and being used for turning on the third MOS tube when the third MOS tube receives the indication signal, and the device with an indication function outputting an alarm signal.
[0020] In this implementation, a specific circuit of the alarm circuit is disclosed, but it does not constitute a limitation on the implementation of the alarm circuit.
[0021] In a possible implementation, the ripple noise detection circuit further includes: a signal amplifier coupled between the extraction unit and the comparison unit, configured to amplify the amplitude of the ripple noise and input the ripple noise with the amplified amplitude into the comparison unit.
[0022] In this implementation, the signal amplifier can amplify the amplitude of the ripple noise, which is convenient for the comparison unit to perform signal comparison and reduces the error rate of the comparison result. Generally, the allowable fluctuation range of the ripple noise is generally small, such as ±20mv, which is not convenient for direct comparison, and the error rate of the comparison result is high, which requires a high precision of the comparison unit. For example, if the amplification factor of the signal amplifier is 10, the allowable fluctuation range of the amplified ripple noise is ±200mv, which is convenient for direct comparison, reduces the error rate of the comparison result, and reduces the precision requirement of the comparison unit.
[0023] In a possible implementation, the extraction unit includes: a high-pass filter, which is used to filter the target voltage to be measured and output ripple noise.
[0024] In this implementation, the high-pass filter refers to an electronic filter device that allows signals with a frequency higher than the cutoff frequency to pass, but does not allow signals with a frequency lower than the cutoff frequency to pass. Since the target voltage to be tested is unqualified when either the ripple or the noise exceeds the allowable fluctuation range of the target voltage to be tested, the high-pass filter can simultaneously extract the ripple and noise in the target voltage to be tested, so that the detection object of the ripple noise detection circuit includes both ripple and noise.
[0025] In a possible implementation, the reference voltage is an upper limit value of a voltage fluctuation range allowed by the target voltage to be measured.
[0026] In this implementation, considering the reciprocating change of the amplitude of the ripple noise, the positive voltage and negative voltage of the ripple noise generally appear alternately. Therefore, generally, when the positive voltage is greater than the reference voltage, the negative voltage will also be greater than the reference voltage; when the positive voltage is less than the reference voltage, the negative voltage will also be less than the reference voltage. Therefore, the present application determines the upper limit of the voltage fluctuation range allowed by the target voltage to be measured as the reference voltage, and there is no need to compare the negative voltage of the ripple noise, the circuit structure is simpler, and the cost is lower. In other implementations, the reference voltage can also be the lower limit of the voltage fluctuation range allowed by the target voltage to be measured.
[0027] In a second aspect, an embodiment of the present application provides another ripple noise detection circuit, comprising: an extraction unit, for receiving a target voltage to be measured, and extracting ripple noise from the target voltage to be measured, and outputting the ripple noise; a comparison unit, comprising: a processing circuit, for processing the ripple noise, and outputting a non-negative ripple noise; a second micro-control unit, for receiving a reference voltage, and for comparing the ripple noise in a non-negative form with the reference voltage, and after the ripple noise is greater than the reference voltage, outputting an indication signal, the indication signal being used to indicate that the ripple noise exceeds the voltage fluctuation range allowed by the target voltage to be measured.
[0028] In this implementation, another ripple noise detection circuit is disclosed. Among them, this implementation discloses another implementation of the comparison unit. The processing circuit can process the ripple noise into a non-negative form, and the second micro-control unit can compare the ripple noise in a non-negative form with the reference voltage, and output a stable indication signal after the ripple noise is greater than the reference voltage. In other words, the second micro-control unit does not need to perform negative pressure sampling, which reduces the hardware overhead of the negative pressure sampling related devices and reduces the hardware cost. Furthermore, this implementation compares the ripple noise and generates an indication signal through software (such as the second micro-control unit), and has certain requirements on the sampling rate of the second micro-control unit. For example, when the ripple noise related to the switching frequency is mainly considered, the sampling rate of the second micro-control unit is required to be higher than the switching frequency.
[0029] In one possible implementation, the processing circuit includes: an adder, used to add the ripple noise to a preset voltage and output the ripple noise in a non-negative form; or, an analog-to-digital conversion chip, used to convert the ripple noise from an analog signal to a digital signal and output the ripple noise in a non-negative form.
[0030] In this implementation, two implementations of processing ripple noise into a non-negative form are disclosed. An adder can add the voltage value of the ripple noise to a certain voltage to raise the voltage value of the ripple noise as a whole, thereby achieving a non-negative form for the voltage value of the ripple noise. An analog-to-digital conversion chip can convert the signal form of the ripple noise, converting the ripple noise from an analog signal form to a digital signal form to obtain a non-negative ripple noise. It should be noted that the implementation of processing the ripple noise into a non-negative form is not limited to the above two methods.
[0031] In one possible implementation, a plurality of extraction units are provided, and an input terminal of each extraction unit is connected to a voltage to be measured, for extracting ripple noise from the connected voltage to be measured, and outputting the ripple noise from an output terminal; the second micro-control unit is also used to output a selection signal, and the ripple noise detection circuit also includes: a multi-way selection unit, having a plurality of input terminals, an output terminal and a control terminal, each input terminal of the multi-way selection unit is connected to an output terminal of an extraction unit, and the output terminal of the multi-way selection unit is connected to a comparison unit, for selecting an input terminal from the plurality of input terminals of the multi-way selection unit to be connected to the output terminal of the multi-way selection unit in response to the selection signal, so as to determine a target voltage to be measured from the plurality of voltages to be measured.
[0032] In this implementation, when there are multiple voltages to be measured, multiple extraction units are provided, the input end of each extraction unit is connected to a voltage to be measured, the output end of each extraction unit is connected to an input end of a multiplexer unit, and the output end of the multiplexer unit is connected to a comparison unit. The multiplexer unit can select and connect the input end corresponding to the target voltage to be measured from multiple input ends according to the input selection signal, and the multiplexer unit inputs the ripple noise corresponding to the target voltage to be measured to the comparison unit through the output end. Furthermore, by switching different voltages to be measured as the target voltage to be measured, the purpose of detecting ripple noise on multiple voltages to be measured can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0034] Figure 1 A schematic diagram of an application scenario of a ripple noise detection circuit provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of a first circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0036] Figure 3 A schematic diagram of a second circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0037] Figure 4 A schematic diagram of a circuit structure of a second circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0038] Figure 5 A schematic diagram of a third circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0039] Figure 6 A schematic diagram of a circuit structure of a third circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0040] Figure 7 A schematic diagram of a fourth circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0041] Figure 8 A schematic diagram of a circuit structure of a fourth circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0042] Fig. 9A schematic diagram of a fifth circuit of a ripple noise detection circuit provided in an embodiment of the present application;
[0043] Fig.10 A schematic diagram of the circuit structure of a fifth circuit of a ripple noise detection circuit provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0045] In the description of the embodiments of the present application, any embodiment or design scheme of "exemplary", "for example" or "for example" should not be understood as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0046] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprises", "has" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.
[0047] Before introducing this solution, the technical terms in this solution are first introduced.
[0048] Ripple: The ideal DC voltage is a fixed value, but in actual applications, the DC voltage output by the power supply generally has ripples. The main reasons include: Generally, the DC voltage is obtained by rectifying and filtering the AC voltage, so some AC components are retained in the DC voltage; when the load fluctuates, there will also be ripples in the DC voltage output by the power supply. For example, in a switching power supply, the frequency of the ripple is the same as the frequency of the power switch.
[0049] Noise: Noise can be understood as non-continuous and irregular voltage or current spikes caused by interference inside or outside the system when the power supply is working. The interference source includes any material that can generate electromagnetic energy.
[0050] Target voltage to be measured: Generally, the target voltage to be measured is the result of the superposition of DC voltage, ripple and noise.
[0051] Ripple noise: Ripple noise can also be understood as a voltage signal resulting from the superposition of ripple and noise.
[0052] Digital to analog converter (DAC) can convert discrete digital signals into continuous analog signals. A chip that encapsulates the logic function of a digital to analog converter is also called a DAC chip. The DAC chip is the core device for analog output and control.
[0053] Analog to digital converter (ADC) can convert continuous analog signals into discrete digital signals. A chip that encapsulates the logic function of an analog to digital converter is also called an ADC chip. The ADC chip is the core device for digital output and control.
[0054] A lowpass filter (LPF) is an electronic filter device that allows signals below a cutoff frequency to pass through, but does not allow signals above the cutoff frequency to pass through. The present application does not limit the type of lowpass filter.
[0055] A high pass filter (HPF) is an electronic filter device that allows signals with a frequency higher than a cutoff frequency to pass through, but does not allow signals with a frequency lower than the cutoff frequency to pass through. The present application does not limit the type of high pass filter.
[0056] Multiplexer (MUX): A multiplexer MUX is a combinational logic circuit with multiple inputs and a single output. An n-input multiplexer is an n-way digital switch. According to the channel selection control signal, a target input terminal can be selected from the n input terminals and connected to the common output terminal, thereby forming a path from the target input terminal to the common output terminal. The multiplexer MUX is an example of a multiplexer unit in the embodiment of the present application.
[0057] For example, see Figure 1 , Figure 1 FIG. 1 is a schematic diagram showing an application scenario of a ripple noise detection circuit provided by an embodiment of the present application. Figure 1 As shown, the ripple noise detection circuit 100 of the embodiment of the present application is arranged between the power module 200 and the component 300, and is used to detect the ripple noise in the input voltage when the power module 200 supplies power to the component 300, and to determine whether the ripple noise in the input voltage exceeds the allowable voltage fluctuation range of the component 300.
[0058] Exemplarily, the power module 200 includes a battery 210 and a power management chip 220. The power module 200 is connected to the component 300 to supply power to the component 300. The power management chip 220 is a chip responsible for power conversion, distribution and detection in the electronic device system, and is used to output a voltage signal that meets the requirements of the component 300. The power management chip 220 includes a boost IC (Integrated Circuit) and / or a buck IC (Bunk IC), wherein the Boost IC is used to increase the output voltage of the battery 210; and the Bunk IC is used to reduce the output voltage of the battery 210.
[0059] In this application scenario, the target voltage to be measured refers to the voltage of the input component 300, that is, the voltage after transformation output by the power module 200. The input voltage required by the component 300 is a reference voltage, and the input voltage is allowed to fluctuate within a certain range based on the reference voltage. Once the ripple noise of the input voltage exceeds the fluctuation range allowed by the component 300, the input voltage will cause varying degrees of damage to the component 300. In order to ensure the normal operation of the electrical device, the ripple noise detection circuit 100 of the embodiment of the present application determines whether the voltage signal after the transformation of the power module 200 meets the use requirements of the component 300 by detecting the ripple noise in the voltage signal after the transformation of the power module 200 (i.e., an example of the target voltage to be measured).
[0060] For example, in a server, an IC (Integrated Circuit) chip requires a power supply voltage whose allowable fluctuation range is ±5% of a reference voltage; an Expander chip requires a power supply voltage whose allowable fluctuation range is ±2% of the reference voltage.
[0061] In one example, the reference voltage required by a certain Expander chip is 0.9V, and the required supply voltage range is 0.882V-0.918V, that is, the fluctuation range of the ripple noise allowed in the supply voltage is ±18mV. In the embodiment of the present application, the reference voltage can be set to 18mV, and when the forward voltage of the ripple noise exceeds the reference voltage 18mV, the ripple noise detection circuit 100 can output an indication signal, indicating that the fluctuation range of the current target voltage to be tested exceeds the fluctuation range allowed by the Expander chip, and the target voltage to be tested does not meet the requirements, that is, the power module 200 that outputs the target voltage to be tested is unqualified.
[0062] It should be noted that Figure 1The application scenarios shown do not limit the scope of use of the ripple noise detection circuit 100 of the embodiment of the present application. In other words, the ripple noise detection circuit 100 of the embodiment of the present application can be applied to any scenario requiring ripple noise detection, and the embodiment of the present application does not limit this.
[0063] Next, the ripple noise detection circuit 100 according to the embodiment of the present application is further introduced in conjunction with the accompanying drawings.
[0064] For example, see Figure 2 , Figure 2 FIG. 1 shows a schematic diagram of a first circuit of a ripple noise detection circuit. Figure 2 As shown, the embodiment of the present application provides a ripple noise detection circuit 100, in the first circuit, mainly including:
[0065] The extraction unit 110 is used to extract ripple noise from the target voltage to be measured.
[0066] The comparison unit 120 is used to compare the ripple noise with the reference voltage, and output a stable indication signal after the ripple noise is greater than the reference voltage. The reference voltage is determined according to the voltage fluctuation range allowed by the target voltage to be measured, and the indication signal is used to indicate that the ripple noise exceeds the voltage fluctuation range allowed by the target voltage to be measured.
[0067] In the embodiment of the present application, the ripple noise in the target voltage to be measured can be detected, and further, according to the comparison result of the ripple noise and the reference voltage, a stable indication signal can be output, and the indication signal can be used to judge whether the target voltage to be measured meets the requirements. The indication signal is stable, which is convenient for judging whether the ripple noise of the target voltage to be measured exceeds the voltage fluctuation range allowed by the target voltage to be measured.
[0068] Illustratively, the ripple noise detection circuit 100 of the embodiment of the present application can be used in the production test stage of a power supply, thereby preventing a power supply with unqualified ripple noise from entering the use stage, thereby avoiding economic losses and safety hazards caused by a power supply with unqualified ripple noise during the use stage.
[0069] Optionally, the ripple noise detection circuit 100 further includes: an alarm circuit, which is used to output an alarm signal when receiving the indication signal. The alarm signal can provide a good reminder to the user.
[0070] Optionally, the ripple noise detection circuit 100 further includes: a signal amplifier for amplifying the amplitude of the ripple noise before inputting into the comparison unit 120. The signal amplifier can amplify the amplitude of the ripple noise, which facilitates the comparison unit 120 to perform signal comparison and reduces the error rate of the comparison result.
[0071] Optionally, the extraction unit 110 includes: a high-pass filter. Since the target voltage to be tested is unqualified when any one of the ripple and the noise exceeds the allowable fluctuation range of the target voltage to be tested, the high-pass filter can simultaneously extract the ripple and the noise in the target voltage to be tested, so that the detection object of the ripple noise detection circuit 100 includes both the ripple and the noise.
[0072] Optionally, the reference voltage is one of a first threshold value and a second threshold value, the first threshold value is the upper limit value of the voltage fluctuation range allowed by the target voltage to be measured, and the second threshold value is the lower limit value of the voltage fluctuation range allowed by the target voltage to be measured. Considering the characteristics of the reciprocating change of the amplitude of the ripple noise, generally, the positive voltage and negative voltage of the ripple noise appear alternately. Therefore, when the positive voltage is greater than the reference voltage, the negative voltage will also be greater than the reference voltage; when the positive voltage is less than the reference voltage, the negative voltage will also be less than the reference voltage. Therefore, one of the first threshold value and the second threshold value can be selected as the reference voltage.
[0073] That is to say, the present application selects one of the upper limit and the lower limit of the voltage fluctuation range allowed by the target voltage to be measured as the reference voltage. For example, when the reference voltage is the first threshold, when comparing the ripple noise with the reference voltage, only the relationship between the positive voltage in the ripple noise and the reference voltage is needed, and the positive voltage and the negative voltage do not need to be compared at the same time, which reduces the hardware cost.
[0074] exist Figure 2 Based on the same inventive concept as the ripple noise detection circuit 100 shown in FIG. 1 , the embodiment of the present application further provides four other ripple noise detection circuits. Figures 3 to 10 With reference to the related description, another four ripple noise detection circuits provided in the embodiments of the present application are further explained.
[0075] For example, see Figure 3 , Figure 3 FIG. 2 is a schematic diagram of a second circuit of a ripple noise detection circuit provided in an embodiment of the present application. Figure 3 As shown, in the second circuit, the ripple noise detection circuit 100 includes an extraction unit 110, a comparison unit 120, a signal amplifier and an alarm circuit.
[0076] The comparison unit 120 includes a comparator having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is used to input ripple noise, the second input terminal is used to input a reference voltage, and the output terminal is used to output an indication signal.
[0077] In this example, the comparator is used to compare the input ripple noise with a reference voltage, and output a stable indication signal after the ripple noise is greater than the reference voltage.
[0078] like Figure 3 As shown, the comparison unit 120 further includes: a positive feedback circuit, also called a self-locking circuit, for performing positive feedback on the ripple noise after the ripple noise is greater than the reference voltage, so that the comparison unit 120 keeps outputting the indication signal.
[0079] Generally, the amplitude of ripple noise varies, and the ripple noise may be higher than the reference voltage at times and lower than the reference voltage at times. The positive feedback circuit ensures the stability of the indication signal by providing positive feedback to the ripple noise, avoiding the appearance of an indication signal similar to a pulse form, so that subsequent circuits (such as Figure 3 The alarm circuit shown) can receive a stable indication signal.
[0080] Optionally, the positive feedback circuit includes: a diode, the diode has a positive electrode and a negative electrode, the positive electrode is connected to the output terminal of the comparator, and the negative electrode is connected to the first input terminal of the comparator.
[0081] In this example, after the ripple noise is greater than the reference voltage, the diode can superimpose the output level of the comparator and the ripple noise as the input of the comparator, thereby increasing the difference between the ripple noise and the reference voltage. This positive feedback can ensure that the comparator outputs a stable indication signal.
[0082] The ripple noise detection circuit 100 further includes: a signal amplifier, which is used to amplify the amplitude of the ripple noise before inputting into the comparison unit 120 .
[0083] Furthermore, the signal amplifier can amplify the amplitude of the ripple noise, so as to facilitate the comparison unit 120 to perform signal comparison and reduce the error rate of the comparison result.
[0084] For example, generally, the allowable fluctuation range of the ripple noise is generally small, such as ±20mv, which is not convenient for direct comparison, and the error rate of the comparison result is high, and the precision requirement of the comparison unit 120 is high. For example, if the amplification factor of the signal amplifier is 10, the allowable fluctuation range of the amplified ripple noise is ±200mv, which is convenient for direct comparison, reduces the error rate of the comparison result, and reduces the precision requirement of the comparison unit 120.
[0085] It should be noted that if Figure 3 As shown, the signal amplifier is a first-stage signal amplification, and the signal amplification link shown is only an example. Optionally, the signal amplification link can also be in the form of a multi-stage signal amplifier connected in series to achieve multi-stage amplification processing of the signal. Optionally, the ripple noise detection circuit 100 also includes: an op amp follower, which is used to eliminate the influence of the load effect. In other words, the amplification level of the signal amplification link and whether an op amp follower is needed can be designed according to the size of the ripple noise and the selection of the device.
[0086] The ripple noise detection circuit 100 further includes an alarm circuit, which is used to output an alarm signal when receiving the indication signal. The alarm circuit can play a good role in prompting the user through the alarm signal.
[0087] Optionally, the alarm circuit includes: a third MOS tube having a gate, a source and a drain, the gate of the third MOS tube receiving an indication signal; a device with an indication function, which is used to turn on the third MOS tube when the third MOS tube receives the indication signal, and the device with an indication function outputs an alarm signal. A specific circuit of the alarm circuit is disclosed herein, but does not constitute a limitation on the implementation method of the alarm circuit.
[0088] For example, see Figure 4 , Figure 4 A schematic diagram showing the circuit structure of a second circuit of the second ripple noise detection circuit provided in an embodiment of the present application is shown. Figure 4 , the circuit structure of the second circuit is exemplarily described.
[0089] For example, Figure 4 As shown, the power module 200 includes a DC power source E1 and a topological structure of a buck integrated circuit (Bunk IC). The topological structure of the Bunk IC includes the Bunk IC, an inductor L1 and a capacitor C11. The inductor L1 and the capacitor C11 form a low-pass filter for suppressing harmonic components in the DC signal after the Bunk IC steps down.
[0090] Furthermore, the Bunk IC topology is a DC / DC (Direct Current / Direct Current) topology used for DC to DC step-down conversion. For example, the Bunk IC topology can convert the 12V supply voltage of the DC power supply E1 into the 3.3V voltage required by the user IC.
[0091] For example, Figure 4 As shown, the component 300 powered by the power module 200 is a user IC. The component 300 powered by the power module 200 can also be any component 300, which is not limited in the embodiment of the present application.
[0092] In the embodiment of the present application, the power supply voltage of the user IC generally has an allowable fluctuation range. The purpose of the ripple noise detection circuit 100 in the embodiment of the present application is to detect whether the ripple noise of the voltage signal after the buck conversion of the Bunk IC topology structure exceeds the allowable fluctuation range of the user IC. When the ripple noise exceeds the allowable fluctuation range of the user IC, it is judged that the Bunk IC does not meet the use requirements or is unqualified, so as to avoid damage to the user IC during use.
[0093] For example, Figure 4 As shown, the high-pass filter is an RC high-pass filter.
[0094] Further, the RC high pass filter includes Figure 4 The capacitor C12 and the resistor R1 are shown. One end of the capacitor C12 is connected to the output end of the power module 200, and the other end is connected to one end of the resistor R1 (assuming that this end is the first end of the resistor R1). The other end of the resistor R1 (assuming that this end is the second end of the resistor R1) is grounded.
[0095] For example, Figure 4 As shown, the ripple noise in the target voltage to be measured can be obtained from both sides of the resistor R1 of the RC high-pass filter.
[0096] For example, the ripple noise extracted by the RC high-pass filter can also be amplified by a signal amplifier. Figure 4 As shown, the signal amplifier may be a common-phase amplifier. In other examples, the signal amplifier may also be an inverting amplifier. When the amplitude of the ripple noise is small, the signal amplifier may amplify the amplitude of the ripple noise to facilitate further analysis and judgment of the ripple noise.
[0097] Exemplarily, the non-inverting amplifier includes Figure 4 The resistor Ramp1, resistor Ramp2, resistor Ramp3, and operational amplifier (OPA) 1 (hereinafter referred to as op amp 1) are shown. One end of resistor Ramp1 is connected to the first end of resistor R1, and the other end is connected to the non-inverting input of op amp 1. One end of resistor Ramp2 is connected to the second end of resistor R1 (which can also be understood as grounding), and the other end is connected to the inverting input of op amp 1. One end of resistor Ramp3 is connected to the inverting input of op amp 1, and the other end is connected to the output of op amp 1.
[0098] For example, Figure 4 As shown, the power supply of the operational amplifier 1 can be understood as including a positive power supply marked with "+V" and a negative power supply marked with "-V".
[0099] In a possible implementation, the operational amplifier 1 and the resistors Ramp1, Ramp2 and Ramp3 form a common-phase amplifier for amplifying the input signal of the common-phase input terminal. The specific working principle of the common-phase amplifier is not described in detail in the embodiment of the present application.
[0100] Exemplarily, the calculation formula of operational amplifier 1 is shown in formula (1).
[0101] v 1 =(1+R amp3 / R amp2 )v i(1)
[0102] In formula (1), v i Represents the voltage signal at the non-inverting input terminal of op amp 1, v o Represents the voltage signal at the output of op amp 1.
[0103] Exemplarily, the comparison unit 120 includes a comparator for comparing the input ripple noise with a reference voltage, and outputting a stable indication signal when the ripple noise is higher than the reference voltage.
[0104] In a possible implementation, the comparator includes a resistor Rlock1, a resistor Rlock2, and an operational amplifier 2 (hereinafter referred to as op amp 2). One end of the resistor Rlock1 is connected to the output of op amp 1, and the other end is connected to the non-inverting input of op amp 2. One end of the resistor Rlock2 is connected to the reference voltage, and the other end is connected to the inverting input of op amp 2. Op amp 2 compares the ripple noise with the reference voltage. When the ripple noise is lower than or equal to the reference voltage, op amp 2 outputs a low level; when the ripple noise is higher than the reference voltage, op amp 2 outputs a high level (an example of indication information).
[0105] Furthermore, resistors Rlock1, Rlock2 and op amp 2 form a comparator for comparing the voltage signals at the non-inverting input terminal of op amp 2 and the inverting input terminal of op amp 2. The power supply of op amp 2 can be understood as a positive power supply marked with "+V" and a negative power supply marked with "ground". The working principle of the comparator is: when the voltage at the non-inverting input terminal is higher than the voltage at the inverting input terminal, the output terminal of op amp 2 outputs a high level corresponding to the positive power supply; when the voltage at the inverting input terminal is higher than the voltage at the non-inverting input terminal, the output terminal of op amp 2 outputs a low level corresponding to the negative power supply (for example, when "grounded", the low level is zero).
[0106] Exemplarily, the comparison unit 120 includes a positive feedback circuit. The positive feedback circuit is used to make the operational amplifier 2 continue to output a high level after the operational amplifier 2 outputs a high level.
[0107] In a possible implementation, the positive feedback circuit includes a diode Dlock1 and a resistor Rlock3. The input end of the diode Dlock1 in the conduction direction is connected to the output end of the operational amplifier 2, and the output end in the conduction direction is connected to one end of the resistor Rlock3. The other end of the resistor Rlock3 is connected to the non-inverting input end of the operational amplifier 2. It should be noted that when the current flows through the diode Dlock1 in the above conduction direction, the diode Dlock1 is turned on; when the current flows through the diode Dlock1 in the opposite direction of the above conduction direction, the diode Dlock1 is turned off.
[0108] It can be further understood that the diode Dlock1 and the resistor Rlock3 are equivalent to the positive feedback circuit constituting the above-mentioned comparator. The working principle of the positive feedback circuit is: when the output terminal of the operational amplifier 2 outputs a high level, the diode Dlock1 is unidirectionally conducted, and the high level is sequentially input to the non-inverting input terminal of the operational amplifier 2 through the diode Dlock1 and the resistor Rlock3, and the high level is superimposed with the ripple noise and then input to the operational amplifier 2, so that the operational amplifier 2 outputs a high level with a higher voltage value. Through the circuit of the diode Dlock1 and the resistor Rlock3, the high level with a higher voltage value is superimposed with the ripple noise and then input to the operational amplifier 2 again, further increasing the voltage value output by the operational amplifier 2. The completion time of this multiple positive feedback process is very short, so that the voltage of the non-inverting input terminal of the operational amplifier 2 is always greater than the reference voltage, and then the output terminal of the operational amplifier 2 always outputs a high level, which is equivalent to "locking" the high level of the output signal of the output terminal of the operational amplifier 2.
[0109] Exemplarily, the calculation formula of operational amplifier 2 is shown in formula (2).
[0110]
[0111] In formula (2), v i+ represents the voltage at the non-inverting input of op amp 2, v 2 Represents the voltage at the output of op amp 2, v dlock1 Indicates the voltage drop across diode Dlock1.
[0112] Exemplarily, the ripple noise detection circuit 100 further includes: an alarm circuit, which is used to output an alarm signal when receiving the indication signal. The alarm signal can provide a good reminder to the user.
[0113] Exemplarily, the alarm circuit may include a resistor Ralert1, a buzzer, and an NMOS tube (an example of a third MOS tube, hereinafter referred to as Nmos1). One end of the resistor Ralert1 is connected to the power supply end corresponding to the "+V" mark, and the other end is connected to one end of the buzzer. The other end of the buzzer is connected to the drain of Nmos1. The gate of Nmos1 is connected to the output end of the operational amplifier 2, and the source is grounded.
[0114] Furthermore, the working principle of the alarm circuit is: when the output end of the operational amplifier 2 outputs a high level, Nmos1 is turned on and the buzzer alarms; when the output end of the operational amplifier 2 outputs a low level, Nmos1 is turned off and the buzzer does not work.
[0115] It should be further explained that the alarm circuit may also include more or fewer components 300. The buzzer may also be replaced by a light-emitting diode (LED) or other components 300 with an indication function. Nmos1 may also be replaced by any circuit or component 300 with a switch function.
[0116] Exemplarily, the ripple noise detection circuit 100 further includes: a reference voltage generating circuit for generating a reference voltage. The present application does not limit the implementation of the reference voltage generating circuit, which may be any integrated circuit, chip, electrical device, etc., such as a DAC chip.
[0117] In the embodiment of the present application, in the second circuit, the comparison between the ripple noise and the reference voltage is realized through the hardware circuit structure of "comparator + positive feedback circuit", and after the ripple noise is greater than the reference voltage, the comparator outputs a stable indication signal. Among them, the "comparator" compares the ripple noise and the reference voltage, and does not need to perform signal sampling. Therefore, the complex circuit structure of signal sampling is not required, which reduces the hardware cost.
[0118] In the embodiment of the present application, in the second circuit, the hardware circuit structure of "comparator + positive feedback circuit" enables the comparator to output a stable indication signal after the ripple noise is greater than the reference voltage, thereby solving the problem of unstable output signal when the comparator is used alone to compare the ripple noise and the reference signal.
[0119] In the embodiment of the present application, in the second circuit, the power supply of the operational amplifier 2 can be turned off to release the self-locking circuit from holding the indication signal at the output end of the operational amplifier 2. Therefore, by switching the power supply state of the operational amplifier 2, the state switching of the indication signal at the output end of the operational amplifier 2 between "locking" and "unlocking" can be achieved.
[0120] The above is an introduction to the second circuit of a ripple noise detection circuit provided in an embodiment of the present application. Next, based on the above content, a third circuit of a ripple noise detection circuit provided in an embodiment of the present application is introduced. It can be understood that the third circuit is proposed based on the second circuit described above, and part or all of the content of the third circuit can refer to the description of the second circuit above, and the repeated parts will not be repeated.
[0121] For example, see Figure 5 , Figure 5 FIG. 2 is a schematic diagram showing a third circuit of a ripple noise detection circuit provided in an embodiment of the present application. Figure 5As shown, in the third circuit, based on the second circuit, the ripple noise detection circuit further includes: a multi-way gating unit and a first micro-control unit. The multi-way gating unit is used to determine the selected target voltage to be measured from multiple voltages to be measured according to the gating signal. The first micro-control unit is used to determine the gating signal. The ripple noise detection circuit 100 achieves the purpose of detecting multiple voltages to be measured by adding the multi-way gating unit and the first micro-control unit.
[0122] That is to say, in this implementation, when the voltage to be measured is multiple (for example, Figure 5 When the voltage to be measured 1, the voltage to be measured 2, ..., the voltage to be measured n) are shown in FIG. 1 , a multiplexer gating unit and a first micro-control unit can be added to the ripple noise detection circuit 100. The multiplexer gating unit can determine the target voltage to be measured from the multiple voltages to be measured according to the gating signal output by the first micro-control unit. The first micro-control unit can use different gating signals to enable the multiplexer gating unit to gating different voltages to be measured, and the ripple noise detection circuit 100 can detect the ripple noise of the gating target voltage to be measured, thereby realizing the detection of ripple noise on multiple voltages to be measured.
[0123] In the embodiment of the present application, the position of the multi-way gating unit is not limited. Figure 5 As shown, the multiplexer unit can be arranged between the extraction unit 110 and the signal amplifier. The extraction unit 110 is provided with a plurality of high pass filters, such as Figure 5 The high-pass filter 1, high-pass filter 2, ..., high-pass filter n are shown. Each high-pass filter is connected to a target voltage to be measured, and multiple input terminals of the multi-channel selection unit are respectively connected to the multiple high-pass filters, and the output terminal is connected to the signal amplifier.
[0124] In other implementations, the multi-channel gating unit can also be arranged before the extraction unit 110. After the multi-channel gating unit determines the gated target voltage to be measured, the ripple noise is extracted from the gated target voltage to be measured through the extraction unit 110. The multi-channel gating unit can also be arranged between the signal amplifier and the comparison unit 120. The signal amplifier is arranged in plurality, and the input end of each signal amplifier is respectively connected to a high-pass filter, and the output end of each signal amplifier is respectively connected to an input end of the multi-channel gating unit, and each signal amplifier is used to amplify the connected ripple noise.
[0125] Optionally, the first micro-control unit is further configured to determine a reference voltage according to a target voltage to be measured.
[0126] For example, Figure 5As shown, the first micro-control unit can determine the corresponding reference voltage according to the selected target voltage to be tested while determining the selected target voltage to be tested. For example, the first micro-control unit controls the reference voltage generating circuit to generate the reference voltage corresponding to the selected target voltage to be tested through a control signal.
[0127] Furthermore, in the application scenarios of multiple voltages to be tested, the reference voltages and the voltage fluctuation ranges allowed for different voltages to be tested may be different. Therefore, when determining the selection signal, the first micro-control unit also needs to determine the corresponding reference voltage according to the selected target voltage to be tested.
[0128] Optionally, the comparison unit 120 further includes: a positive feedback release circuit, which is used to release the positive feedback of the positive feedback circuit to the ripple noise. The positive feedback circuit realizes the output of a stable indication signal, and the positive feedback release circuit can release the positive feedback of the positive feedback circuit to the ripple noise. Exemplarily, after the multi-channel selection unit selects the next voltage to be measured, the positive feedback release circuit works, the comparator can compare the ripple noise of the next voltage to be measured with the reference voltage, and after the ripple noise of the next voltage to be measured is greater than the reference voltage, the comparator outputs a stable indication signal again.
[0129] Optionally, the first micro-control unit is further used to output an unlocking control signal, and the unlocking control signal is used to control the operation of the positive feedback release circuit.
[0130] Exemplarily, one application scenario of the positive feedback release circuit is: when the multi-way gating unit switches the connected voltage to be tested, the positive feedback release circuit releases the positive feedback of the positive feedback circuit to the ripple noise, so that the comparison unit 120 regains the "comparison" function. In other words, the comparison unit 120 can detect the ripple noise in the switched voltage to be tested, thereby realizing the detection of ripple noise in multiple voltages to be tested by the ripple noise detection circuit.
[0131] Exemplarily, another application scenario of the positive feedback release circuit is: the positive feedback of the positive feedback circuit to the ripple noise is released by the positive feedback release circuit, the indication signal is no longer output, and the user can release the alarm status, such as releasing the flashing alarm light, the sounding buzzer and other alarm status.
[0132] In a possible implementation, the positive feedback release circuit further includes: a first MOS tube, having a gate, a source and a drain, the gate of the first MOS tube is connected to an unlocking control signal, and one of the source and drain of the first MOS tube is connected to a low voltage end; a second MOS tube, having a gate, a source and a drain, the gate of the second MOS tube is connected to the other of the source and drain of the first MOS tube that is not connected to the low voltage end, one of the source and drain of the second MOS tube is connected to the power supply end of the comparator, and the other of the source and drain of the second MOS tube is connected to the high voltage end; an unlocking resistor, one end of which is connected to the other of the source and drain of the second MOS tube that is connected to the high voltage end, and the other end is connected to the gate of the second MOS tube. Wherein, when the unlocking control signal is not received, the first MOS tube is turned on, the high voltage end is input to the low voltage end through the unlocking resistor and the first MOS tube, the second MOS tube is turned on, and the high voltage end supplies power to the comparator; when the unlocking control signal is received, the first MOS tube is turned off, the high voltage end is input to the gate of the second MOS tube through the unlocking resistor, the second MOS tube is turned off, the comparator is powered off, and the positive feedback of the positive feedback circuit to the ripple noise is released.
[0133] In this implementation, a specific implementation of a positive feedback release circuit is disclosed. When unlocking is not required, the unlocking control signal is not received, the first MOS tube is turned on, the high voltage end is simultaneously connected to the gate and one of the source and drain of the second MOS tube, the high voltage end is input to the low voltage end through the unlocking resistor and the first MOS tube, the second MOS tube is turned on, and the high voltage end supplies power to the comparator. Among them, the high voltage end is simultaneously connected to the gate and one of the source and drain of the second MOS tube, and there is no need to connect an additional high voltage end to input the gate of the second MOS tube, which reduces the hardware cost. When unlocking is required, the unlocking control signal is received, that is, a certain control module does not input the unlocking control signal to the gate of the first MOS tube, the first MOS tube is disconnected, the high voltage end is input to the gate of the second MOS tube through the unlocking resistor, the second MOS tube is disconnected, the comparator is powered off, and the positive feedback of the positive feedback circuit to the ripple noise is released. The positive feedback release circuit has a simple structure and low hardware cost.
[0134] Optionally, the first micro control unit further receives the indication information output by the comparison unit 120. Exemplarily, the first micro control unit may perform downstream tasks according to the indication information, such as displaying the indication information to a user, recording and storing the indication information, and the like.
[0135] For example, see Figure 6 , Figure 6 A schematic diagram showing the circuit structure of a third circuit of a ripple noise detection circuit provided in an embodiment of the present application is shown. Figure 6 , the circuit structure of the third circuit is exemplarily described.
[0136] For example, Figure 6As shown, the power supply module 200 is provided in plurality, and each power supply module 200 is connected to an RC high-pass filter, and the RC high-pass filter is used to filter the target voltage to be measured and extract the ripple noise in the target voltage to be measured.
[0137] For example, Figure 6 As shown, an example of a multiplexer unit is a multiplexer (MUX), which includes multiple input terminals and two output terminals. Figure 6 The multiple input terminal pairs shown are S11 and S12, S21 and S22, ..., Sn1 and Sn2, etc. The MUX can select an input terminal pair from the multiple input terminal pairs according to the selection signal output by the MCU (an example of the first micro-control unit), and the two input terminals of the selected input terminal pair are respectively connected to the two output terminals of the MUX, so that the ripple noise in the target voltage to be measured corresponding to the selected input terminal pair is output from the two output terminals of the MUX.
[0138] Optionally, an example of the reference voltage generating circuit is a DAC chip. The MCU can input a control signal to the DAC chip to control the DAC chip to generate a reference voltage corresponding to the target voltage to be measured selected by the MUX.
[0139] Optionally, the MCU is connected to the gate of Nmos2 in the positive feedback release circuit, and the MCU controls the operation of the positive feedback release circuit by inputting an unlocking control signal to the gate of Nmos2.
[0140] Exemplarily, the comparison unit 120 includes a positive feedback release circuit, which is used to release the positive feedback of the positive feedback circuit to the ripple noise.
[0141] In a possible implementation, the positive feedback release circuit further includes: an NMOS tube (an example of a first MOS tube, hereinafter referred to as Nmos2), a PMOS tube (an example of a second MOS tube, hereinafter referred to as Pmos1), and an unlocking resistor Rlock4.
[0142] Among them, the Nmos2 tube has a gate, a source and a drain. When the gate voltage is greater than the voltage threshold, the Nmos2 tube is turned on, which is suitable for the source to be grounded or connected to the low-voltage end. This driving method is also called low-voltage driving. The Pmos1 tube has a gate, a source and a drain. When the gate voltage is less than the voltage threshold, the Pmos1 tube is turned on, which is suitable for the source to be connected to the high-voltage end. This driving method is also called high-voltage driving.
[0143] Exemplarily, the gate of Nmos2 is used to access the unlock control signal, and the source of Nmos2 is connected to the low voltage end. The gate of Pmos1 is connected to the drain of Nmos2, the drain of Pmos1 is connected to the power supply end of the comparator, and the source of Pmos1 is connected to the high voltage end. Rlock4, one end is connected to the source of Pmos1, and the other end is connected to the gate of Pmos1.
[0144] Furthermore, in this example, the unlock control signal is at a low level. Therefore, when the unlock control signal is not received, the gate of Nmos2 is at a high level, Nmos2 is turned on, the high voltage end is input to the low voltage end through Rlock4 and Nmos2, Pmos1 is turned on, and the high voltage end supplies power to the comparator; when the unlock control signal is received, the gate of Nmos2 is at a low level, Nmos2 is turned off, the high voltage end is input to the gate of Pmos1 through Rlock4, Pmos1 is turned off, the comparator is powered off, the comparison unit 120 no longer outputs the indication information, and the positive feedback circuit cannot positively feedback the indication information to the input end of the comparison unit 120, so the positive feedback to the ripple noise is released, and the purpose of "unlocking" is achieved. When the gate of Nmos2 is at a high level again (i.e., the unlock control signal is not received), Nmos2 is turned on, the high voltage end is input to the low voltage end through Rlock4 and Nmos2, Pmos1 is turned on, and the high voltage end supplies power to the comparator again, so that the comparison unit 120 has the "comparison" function again, and can compare the size relationship between the ripple noise in the switched voltage to be measured and the corresponding reference signal, thereby realizing the detection of the ripple noise in the switched voltage to be measured.
[0145] Optionally, the MCU is connected to the output terminal of the operational amplifier 2 (ie, the comparator) to receive an indication signal output by the operational amplifier 2. The MCU can perform downstream tasks according to the indication information.
[0146] It should be noted that, for the rest of the circuit structure of the third circuit, refer to the relevant description of the circuit structure of the second circuit, which will not be repeated here.
[0147] The above is an introduction to the second circuit and the third circuit of a ripple noise detection circuit 100 provided in an embodiment of the present application. Next, based on the above content, a fourth circuit of a ripple noise detection circuit 100 provided in an embodiment of the present application is introduced. It can be understood that the fourth circuit is proposed based on the second circuit described above, and part or all of the content of the fourth circuit can refer to the description of the second circuit above, and the repeated parts will not be repeated.
[0148] For example, see Figure 7 , Figure 7 FIG. 4 is a schematic diagram showing a fourth circuit of a ripple noise detection circuit provided in an embodiment of the present application. Figure 7As shown, in the fourth circuit, different from the second circuit, the comparison unit 120 in the ripple noise detection circuit 100 includes: a processing circuit and a second micro-control unit.
[0149] Among them, the processing circuit is used to process the ripple noise into a non-negative form, that is, to express the ripple noise as zero or a positive number; the second micro-control unit is used to compare the ripple noise in a non-negative form with a reference voltage, and output a stable indication signal after the ripple noise is greater than the reference voltage.
[0150] In one example, the second micro-control unit may be an MCU. Exemplarily, the negative voltage threshold generally allowed by the I / O interface of the MCU is -0.3V. When the input voltage is lower than the threshold, the protection circuit in the MCU undergoes voltage conversion and inputs a low level to the MCU. In other words, for the MCU, all voltage signals below the negative voltage threshold will be understood as low-level signals, resulting in the MCU being unable to process negative voltages. For example, an example of a protection circuit for an MCU may be: a diode is connected to each of the power supply and ground terminals. If the input negative voltage is lower than -0.3V, it will be clamped to -0.3V by the diode at the ground terminal, thereby inputting a low level to the MCU. Therefore, the function of the processing circuit of an embodiment of the present application is to eliminate the negative voltage in the ripple noise, thereby meeting the requirement that the second micro-control unit processes non-negative voltage signals.
[0151] It should be noted that the fourth circuit discloses another implementation of the comparison unit 120. In the second and third circuits, the comparison unit 120 can be understood as generating an indication signal through a hardware circuit; in the fourth circuit, the comparison unit 120 can be understood as generating an indication signal in a software manner through a program or software set in the second micro-control unit.
[0152] Furthermore, the embodiments of the present application do not limit the implementation of the processing circuit. Exemplarily, the processing circuit may include an adder, which may add the voltage value of the ripple noise to a certain voltage, thereby raising the voltage value of the ripple noise as a whole, so as to achieve a non-negative form of the voltage value of the ripple noise, that is, a form greater than zero. Exemplarily, the processing circuit may include an analog-to-digital conversion chip (such as an ADC chip). The analog-to-digital conversion chip can convert the signal form of the ripple noise, converting the ripple noise from an analog signal form to a digital signal form, and obtaining a non-negative ripple noise.
[0153] That is to say, the processing circuit can prevent the ripple noise from being expressed in a negative form, so that the second micro-control unit can perform comparison processing based on the ripple noise in a non-negative form.
[0154] Exemplarily, in the fourth circuit, the second micro-control unit may have a built-in or internally generate a reference voltage corresponding to the target voltage to be measured.
[0155] For example, see Figure 8 , Figure 8 A schematic diagram showing the circuit structure of a fourth circuit of a ripple noise detection circuit provided in an embodiment of the present application is shown. Figure 8 , the circuit structure of the fourth circuit is exemplarily described. In the circuit structure of the fourth circuit, the circuit structure of the comparison unit 120 is mainly introduced. The extraction unit 110, the signal amplifier, and the alarm circuit of the fourth circuit are the same as the corresponding circuit structures in the second circuit, and are not repeated here.
[0156] Optionally, the output end of the operational amplifier 1 is connected to a common-mode follower (i.e., operational amplifier 3, hereinafter referred to as operational amplifier 3). Figure 8 As shown, the output end of the operational amplifier 1 is connected to the non-inverting input end of the non-inverting follower, and the inverting input end of the non-inverting follower is connected to the output end. The non-inverting follower has the characteristics of large input impedance and small output impedance, which can improve the load carrying capacity of the circuit structure.
[0157] Optionally, when the processing unit is an adder, the adder includes an operational amplifier 4 (hereinafter referred to as op amp 4 ), a resistor Rsum1 , a resistor Rsum2 , a resistor Rsum3 , a resistor Rsum4 , and a resistor Rsum5 .
[0158] Furthermore, one end of resistor Rsum1, one end of resistor Rsum2 and one end of resistor Rsum3 are connected to the in-phase input of op amp 4; the other end of resistor Rsum1 is connected to the output of op amp 3; the other end of resistor Rsum2 is grounded; the other end of resistor Rsum3 is connected to the superimposed voltage, which refers to a voltage value added to the ripple noise. One end of resistor Rsum4 and one end of resistor Rsum5 are connected to the reverse input of op amp 4; the other end of resistor Rsum4 is grounded; the other end of resistor Rsum5 is connected to the output of op amp 4. In the embodiment of the present application, there is no limitation on the circuit for generating the superimposed voltage.
[0159] One end of the resistor Rsum4 is connected to the in-phase input terminal of the operational amplifier 4, and the other end is grounded, which can play a role in impedance matching. For details, see formula (3).
[0160] For example, Figure 8 The calculation formula of the adder shown is shown in formula (3).
[0161]
[0162] In formula (3), v 3 represents the voltage at the output of op amp 3, v sum Represents the op amp superposition voltage, v 4represents the voltage at the output of op amp 4, It represents the parallel resistance of the resistor Rsum1, the resistor Rsum2, and the resistor Rsum3.
[0163] Optionally, the second micro-control unit is an MCU. The MCU of the fourth circuit and the MCU of the second circuit and the third circuit can be the same MCU, or two different MCUs. The MCU is connected to the output end of the operational amplifier 4 and the input end of the alarm circuit, and can compare the non-negative ripple noise of the output of the operational amplifier 4 with the internal reference voltage. After the ripple noise is greater than the reference voltage, the indication information is output to the alarm circuit. When the alarm circuit receives the indication information, it alarms.
[0164] The above is an introduction to the second circuit, the third circuit and the fourth circuit of the ripple noise detection circuit 100 provided in the embodiment of the present application. Next, based on the above content, the fifth circuit of the ripple noise detection circuit 100 provided in the embodiment of the present application is introduced. It can be understood that the fifth circuit is proposed based on the fourth circuit described above, and part or all of the content of the fifth circuit can refer to the description of the fourth circuit above, and the repeated parts will not be repeated.
[0165] For example, see Fig. 9 , Fig. 9 FIG. 5 is a schematic diagram of a fifth circuit of a ripple noise detection circuit provided in an embodiment of the present application. Fig. 9 As shown, in the fifth circuit, unlike the fourth circuit, the ripple noise detection circuit 100 further includes: a multi-channel gating unit, which is used to determine the selected target voltage to be tested from the multiple voltages to be tested according to the gating signal. The second micro-control unit in the fourth circuit is also used to determine the gating signal of the multi-channel gating unit.
[0166] That is to say, when there are multiple target voltages to be tested, a multi-channel gating unit can be added to the ripple noise detection circuit 100. The multi-channel gating unit can determine the selected target voltage to be tested from the multiple voltages to be tested according to the input gating signal. The ripple noise detection circuit 100 performs ripple noise detection on the selected target voltage to be tested. The second micro-control unit is used to determine the gating signal to control the selection of the multiple voltages to be tested, thereby realizing the ripple noise detection on the multiple voltages to be tested.
[0167] It should be noted that the explanation of the multi-way gating unit in the fifth circuit can be found in the relevant description of the third circuit, and will not be repeated here.
[0168] For example, see Fig.10 , Fig.10A schematic diagram of the circuit structure of a fifth circuit of a ripple noise detection circuit provided in an embodiment of the present application is shown. Fig.10 , the circuit structure of the fifth circuit is exemplarily described.
[0169] In the circuit structure of the fifth circuit, MUX is added on the basis of the circuit structure of the fourth circuit. MCU (an example of the second micro-control unit) is also used to determine the selection signal of MUX to control the selected target voltage to be tested. MCU can determine the corresponding reference voltage according to the selected target voltage to be tested, and compare the ripple noise of the selected target voltage to be tested with the reference voltage; after the ripple noise is greater than the reference voltage, an indication signal is output to the alarm circuit; when the alarm circuit receives the indication signal, an alarm is issued.
[0170] It should be noted that, for the rest of the circuit structure of the fifth circuit, refer to the relevant description of the circuit structure of the fourth circuit, which will not be repeated here.
[0171] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A ripple noise detection circuit, characterized in that: include: An extraction unit, configured to receive a target voltage to be measured, extract ripple noise from the target voltage to be measured, and output the ripple noise; A comparison unit, the comparison unit comprising: A comparator, wherein a first input terminal of the comparator is connected to an output terminal of the extraction unit to receive the ripple noise, a second input terminal of the comparator is used to receive a reference voltage, and after the ripple noise is greater than the reference voltage, an output terminal of the comparator is used to output an indication signal, wherein the indication signal is used to indicate that the ripple noise exceeds an allowable voltage fluctuation range of the target voltage to be measured; A positive feedback circuit is coupled between the first input terminal and the output terminal of the comparator, and is used for positively feeding back the indication signal to the first input terminal when the output terminal outputs the indication signal.
2. The circuit according to claim 1, characterized in that The comparator includes an operational amplifier, and the positive feedback circuit includes: a diode having an anode and a cathode, wherein the anode is connected to the output terminal of the operational amplifier; A positive feedback resistor, one end of which is connected to the cathode of the diode, and the other end of which is connected to the first input end of the operational amplifier.
3. The circuit according to claim 1 or 2, characterized in that The extraction unit is provided in plurality, and the input end of each extraction unit is connected to a voltage to be measured, and is used to extract ripple noise from the connected voltage to be measured, and output the ripple noise from the output end. The ripple noise detection circuit also includes: A multi-way gating unit, comprising a plurality of input terminals, an output terminal and a control terminal, wherein each input terminal of the multi-way gating unit is connected to an output terminal of the extraction unit, and the output terminal of the multi-way gating unit is connected to the comparison unit, and is used for selecting an input terminal from the plurality of input terminals of the multi-way gating unit to be connected to the output terminal of the multi-way gating unit in response to a gating signal received by the control terminal, so as to determine the target voltage to be measured from the plurality of voltages to be measured; The first micro-control unit is connected to the control end of the multi-channel selection unit and is used for outputting the selection signal.
4. The circuit according to claim 3, characterized in that The first micro-control unit is further used to determine a reference voltage control signal according to the target voltage to be measured, and the comparison unit further includes: The reference voltage generating circuit is used to receive the reference voltage control signal, generate the reference voltage, and input the reference voltage to the second input terminal of the comparator.
5. The circuit according to claim 3 or 4, characterized in that: The first micro-control unit is further used to generate an unlocking control signal, and the comparison unit further includes: The positive feedback release circuit is coupled to the power supply end of the comparator and is used to control the comparator to be powered off in response to the unlocking control signal so that the comparator no longer outputs the indication signal, and the positive feedback of the positive feedback circuit to the ripple noise is released.
6. The circuit according to claim 5, characterized in that The positive feedback release circuit comprises: A first MOS tube, comprising a gate, a source and a drain, wherein the gate of the first MOS tube is connected to an unlocking control signal, and one of the source and the drain of the first MOS tube is connected to a low voltage end; A second MOS tube has a gate, a source and a drain, the gate of the second MOS tube is connected to the other of the source and the drain of the first MOS tube that is not connected to the low voltage end, one of the source and the drain of the second MOS tube is connected to the power supply end of the comparator, and the other of the source and the drain of the second MOS tube is connected to the high voltage end; an unlocking resistor, one end of which is connected to the other of the source and the drain of the second MOS tube other than the high-voltage end, and the other end of which is connected to the gate of the second MOS tube; Among them, when the unlocking control signal is not received, the first MOS tube is turned on, the high voltage end is input to the low voltage end through the unlocking resistor and the first MOS tube, the second MOS tube is turned on, and the high voltage end supplies power to the comparator; when the unlocking control signal is not received, the first MOS tube is turned off, the high voltage end is input to the gate of the second MOS tube through the unlocking resistor, the second MOS tube is turned off, the comparator is powered off, and the positive feedback of the positive feedback circuit to the ripple noise is released.
7. A ripple noise detection circuit, characterized in that: include: An extraction unit, configured to receive a target voltage to be measured, extract ripple noise from the target voltage to be measured, and output the ripple noise; A comparison unit, the comparison unit comprising: A processing circuit, used for processing the ripple noise and outputting the ripple noise in a non-negative form; The second micro-control unit is used to receive a reference voltage, and compare the ripple noise in a non-negative form with the reference voltage, and output the indication signal after the ripple noise is greater than the reference voltage, wherein the indication signal is used to indicate that the ripple noise exceeds the voltage fluctuation range allowed by the target voltage to be measured.
8. The circuit according to claim 7, characterized in that The processing circuit comprises: an adder, configured to add the ripple noise to a preset voltage and output the ripple noise in a non-negative form; Alternatively, an analog-to-digital conversion chip is used to convert the ripple noise from an analog signal into a digital signal and output the ripple noise in a non-negative form.
9. The circuit according to any one of claims 1 to 8, characterized in that: Also includes: The alarm circuit is used to output an alarm signal when receiving the indication signal.
10. The circuit according to any one of claims 1 to 9, characterized in that: Also includes: The signal amplifier is coupled between the extraction unit and the comparison unit, and is used for amplifying the amplitude of the ripple noise and inputting the ripple noise with the amplified amplitude into the comparison unit.
