Power supply protection method and electronic equipment based on high-speed signal processing
The power output voltage is sampled and corrected in real time through high-speed signal processing technology, which solves the problem of lag in existing power protection technology, and realizes real-time detection and protection of power supply to avoid equipment damage and production losses.
Patent Information
- Application Number
- CN202210517759.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-10-22
- Filing Date
- 2022-05-12
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2042-05-12
AI Technical Summary
The existing power protection technology has a hysteresis and cannot meet the needs of high-performance power protection, which can easily cause leakage detection or delay protection of overcurrent or overvoltage, resulting in equipment damage and production losses.
Using a high-speed signal processing method, the power output voltage is sampled and corrected in real time at the nanosecond or picosecond sampling frequency by driving the analog-to-digital converter, and the power output voltage is compared in real time, and the power protection strategy is determined based on the differential voltage.
Real-time detection and protection of power supply is realized, reducing leakage detection and delay protection of overcurrent or overvoltage, effectively protecting user equipment, avoiding production losses, and meeting the needs of high-performance power protection.
Smart Images

Figure CN114744603B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power supply protection, and in particular to a power supply protection method and electronic equipment based on high-speed signal processing. Background Art
[0002] The power protection control strategy generally performs logical detection and processing on conditions such as output overcurrent and overvoltage that require power protection once per detection cycle. The duration of this detection cycle is in microseconds, which can meet the performance requirements of general power usage scenarios. However, for some usage scenarios with high requirements for power protection performance, such as vacuum coating and semiconductor coating, the microsecond detection cycle will cause a lag in the execution of power protection, which cannot meet the high performance requirements of power protection and is prone to missed detection of conditions such as overcurrent or overvoltage, or the failure to perform power protection in time when such conditions occur, resulting in equipment damage and unnecessary losses in the production process. Therefore, it is necessary to shorten the detection cycle from microseconds to nanoseconds, or even picoseconds, to implement real-time detection and protection of the power supply to protect the user's back-end equipment.
[0003] In the prior art, in the patent with publication number CN201233302Y (True effective value measurement protection device for the output of the power amplifier of the electric vibration table), by comparing the DC signal with the set value of the protection circuit, when the DC signal exceeds the set value, the protection circuit sends out an overvoltage or overcurrent signal, and the system alarms and shuts down; when the DC signal is less than the set value, the system works normally, and the power amplifier output can be accurately protected.
[0004] The above prior art has the following disadvantages:
[0005] The execution of the power protection of this solution has a lag, which may easily lead to missed detection of overcurrent or overvoltage conditions, or failure to execute power protection in time when such conditions occur. Summary of the invention
[0006] In order to overcome the problems existing in the related technology, the present application provides a power supply protection method based on high-speed signal processing. This power supply protection method based on high-speed signal processing can perform real-time detection and protection of the power supply, shortening the detection cycle from microseconds to nanoseconds, or even picoseconds, effectively protecting the user's back-end equipment and reducing unnecessary losses caused in the production process.
[0007] The first aspect of the present application provides a power supply protection method based on high-speed signal processing, comprising:
[0008] The analog-to-digital converter is driven to sample the current voltage cycle waveform of the output voltage of the power supply according to a preset sampling frequency to obtain the real-time output voltage;
[0009] Correcting the real-time output voltage to obtain a real-time corrected voltage;
[0010] Acquire a stored voltage cycle waveform, where the stored voltage cycle waveform is a voltage cycle waveform before the current voltage cycle waveform, and the stored voltage cycle waveform is stored in a shift register of the processor;
[0011] Determine a target sampling point in the register voltage cycle waveform according to a current sampling point of the current voltage cycle waveform, and obtain a register voltage corresponding to the target sampling point;
[0012] The real-time correction voltage is compared with the register voltage. If the real-time correction voltage does not match the register voltage, whether to execute the power protection strategy is determined based on the real-time correction voltage and the difference voltage. The power protection strategy includes disconnecting the voltage regulating circuit in the power supply; the difference voltage is a preset voltage difference threshold, and the difference voltage is a positive number.
[0013] In one implementation, determining whether to execute a power protection strategy according to the real-time correction voltage and the difference voltage includes:
[0014] If the real-time correction voltage is greater than zero and the real-time correction voltage is less than the voltage threshold, the power protection strategy is executed; the voltage threshold is a preset voltage value, and the voltage threshold is a positive number;
[0015] If the real-time correction voltage is greater than zero, the real-time correction voltage is summed with the difference voltage to obtain a first judgment voltage;
[0016] If the first judgment voltage is less than the register voltage, the power protection strategy is executed;
[0017] If the real-time correction voltage is less than zero, and the absolute value of the real-time correction voltage is less than the voltage threshold, the power protection strategy is executed;
[0018] If the real-time correction voltage is less than zero, the absolute value of the real-time correction voltage is summed with the difference voltage to obtain a second judgment voltage;
[0019] If the second determination voltage is less than the absolute value of the register voltage, the power protection strategy is executed.
[0020] In one implementation, the real-time output voltage is corrected, including:
[0021] The real-time output voltage is subjected to debiasing processing, and the debiasing processing includes gain error processing and offset error processing.
[0022] In one implementation, de-biasing the real-time output voltage includes:
[0023] The gain value is determined according to the resistance value of each internal voltage-dividing resistor of the power supply, the connection mode between each internal voltage-dividing resistor and the calculation accuracy of the processor, and the gain value is the gain compensation value;
[0024] The offset value is determined according to the DC component of the output voltage, and the offset value is the bias compensation value;
[0025] Multiply the real-time output voltage by the gain value and add the offset value to obtain the real-time correction voltage.
[0026] In one embodiment, after obtaining the real-time correction voltage, the method further includes:
[0027] Record the real-time correction voltage;
[0028] The current voltage cycle waveform and the stored voltage cycle waveform both include a first half cycle waveform and a second half cycle waveform;
[0029] When all sampling points of the first half cycle waveform of the current voltage cycle waveform are sampled and corrected, P real-time corrected voltages are obtained; P is a positive integer;
[0030] Determine a first voltage effective value of a first half-cycle waveform of a current voltage cycle waveform according to the P real-time correction voltages, and determine a first register voltage effective value of a first half-cycle waveform of a register voltage cycle waveform;
[0031] Subtract the first voltage effective value from the first stored voltage effective value to obtain a first effective difference;
[0032] The first effective difference is compared with a preset effective difference, and if the first effective difference is greater than the preset effective difference, a power protection strategy is executed.
[0033] In one embodiment, after comparing the first effective difference with the preset effective difference, the following steps are performed:
[0034] If the first effective difference is less than the preset effective difference, continue to record the real-time correction voltage;
[0035] When all sampling points of the second half cycle waveform of the current voltage cycle waveform are sampled and corrected, Q real-time corrected voltages are obtained; Q is a positive integer;
[0036] Determine a second voltage effective value of a second half-cycle waveform of a current voltage cycle waveform according to the Q real-time correction voltages, and determine a second register voltage effective value of a second half-cycle waveform of a register voltage cycle waveform;
[0037] Subtract the second voltage effective value from the second stored voltage effective value to obtain a second effective difference;
[0038] The second effective difference is compared with the preset effective difference, and if the second effective difference is greater than the preset effective difference, the power protection strategy is executed.
[0039] In one implementation, after obtaining Q real-time correction voltages, the method further includes:
[0040] The Q real-time correction voltages are combined with the P real-time correction voltages to obtain N real-time correction voltages, where the N real-time correction voltages are the real-time correction voltages recorded after sampling and correction processing of the sampling points of the current voltage cycle waveform;
[0041] Determine the full-cycle voltage effective value of the current voltage cycle waveform according to the N real-time correction voltages, and determine the stored full-cycle voltage effective value of the stored voltage cycle waveform;
[0042] Subtract the stored full-cycle voltage effective value from the full-cycle voltage effective value to obtain a third effective difference value;
[0043] The third effective difference is compared with the preset effective difference, and if the third effective difference is greater than the preset effective difference, the power protection strategy is executed.
[0044] In one implementation, before correcting the real-time output voltage, the method further includes:
[0045] Sampling the current cycle waveform of the output current of the power supply to obtain the real-time output current;
[0046] Correcting the real-time output current to obtain the real-time corrected current;
[0047] Compare the real-time correction current with the preset current upper limit value, and if the real-time correction current is greater than the preset current upper limit value, execute the power protection strategy;
[0048] The real-time correction current is compared with the preset current lower limit value. If the real-time correction current is less than the preset current lower limit value, the power supply protection strategy is executed.
[0049] In one embodiment, after the real-time output voltage is corrected to obtain the real-time corrected voltage and before the stored voltage periodic waveform is obtained, the method further includes:
[0050] If the real-time correction current is greater than the preset current upper limit value, and the real-time correction voltage is less than the preset voltage upper limit value, the power supply protection strategy is executed;
[0051] If the real-time correction current is less than the preset current lower limit value, and the real-time correction voltage is greater than the preset voltage lower limit value, the power protection strategy is executed;
[0052] If the product of the real-time correction current and the real-time correction voltage is greater than the preset power threshold, the power protection strategy is executed;
[0053] If the real-time correction voltage is greater than zero and the real-time correction current is less than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, the power supply protection strategy is executed;
[0054] If the real-time correction voltage is less than zero and the real-time correction current is greater than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, the power protection strategy is executed.
[0055] A second aspect of the present application provides an electronic device, including:
[0056] A processor, the processor includes a programmable logic device, and the programmable logic device includes an FPGA chip;
[0057] as well as
[0058] The memory stores executable codes thereon, and when the executable codes are executed by the processor, the processor is caused to execute the method as described above.
[0059] The technical solution provided by this application may have the following beneficial effects:
[0060] By driving the analog-to-digital converter to sample the current voltage cycle waveform of the output voltage of the power supply according to the preset sampling frequency, the current voltage cycle waveform is converted from an analog signal to a digital signal, and the real-time output voltage is obtained at the nanosecond sampling speed of the analog-to-digital converter, so that the current voltage cycle waveform can be densely sampled to avoid missing detection of conditions such as overcurrent or overvoltage, or the failure to perform power supply protection in time when the condition occurs; after the real-time output voltage is corrected, the real-time corrected voltage is compared with the registered voltage corresponding to the target sampling point in the registered voltage cycle waveform. If the real-time corrected voltage does not match the registered voltage, it is determined whether to execute the power protection strategy based on the real-time corrected voltage and the difference voltage, and the power supply is detected and protected in real time. The detection speed is fast, the protection response speed is fast, the user's back-end equipment is protected, and unnecessary losses caused by equipment damage or output fluctuations in the production process are avoided, and the power protection requirements of high-performance power protection usage scenarios are met.
[0061] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] The above and other objects, features and advantages of the present application will become more apparent through a more detailed description of exemplary embodiments of the present application in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the present application.
[0063] Figure 1It is a flow chart of Embodiment 1 of a power supply protection method based on high-speed signal processing shown in an embodiment of the present application;
[0064] Figure 2 It is a flow chart of Embodiment 2 of a power supply protection method based on high-speed signal processing shown in an embodiment of the present application;
[0065] Figure 3 1 is a flow chart of a third embodiment of a power supply protection method based on high-speed signal processing according to an embodiment of the present application;
[0066] Figure 4 1 is a flow chart of a fourth embodiment of a power supply protection method based on high-speed signal processing according to an embodiment of the present application;
[0067] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application. DETAILED DESCRIPTION
[0068] The preferred embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the preferred embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0069] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0070] It should be understood that although the terms "first", "second", "third", etc. may be used in this application to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this 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. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0071] Embodiment 1
[0072] For some usage scenarios that require high power protection performance, such as vacuum coating and semiconductor coating, the microsecond detection cycle will cause a lag in the execution of power protection, which cannot meet the high performance requirements of power protection. It is easy to miss the detection of overcurrent or overvoltage, or fail to perform power protection in time when the condition occurs, resulting in equipment damage and unnecessary losses in the production process. Therefore, it is necessary to shorten the detection cycle from microseconds to nanoseconds, perform real-time detection and protection on the power supply, and protect the user's back-end equipment. The execution of power protection in the prior art has a lag, which is easy to miss the detection of overcurrent or overvoltage, or fail to perform power protection in time when the condition occurs.
[0073] In response to the above problems, an embodiment of the present application provides a power supply protection method based on high-speed signal processing, which can perform real-time detection and protection of the power supply, shorten the detection cycle from microseconds to nanoseconds, or even picoseconds, effectively protect the user's back-end equipment, and reduce unnecessary losses caused in the production process.
[0074] The technical solution of the embodiments of the present application is described in detail below with reference to the accompanying drawings.
[0075] See also Figure 1 , the first embodiment of the power protection method based on high-speed signal processing shown in the embodiment of the present application includes:
[0076] 101. Drive the analog-to-digital converter to sample the current voltage cycle waveform of the output voltage of the power supply according to a preset sampling frequency;
[0077] An analog-to-digital converter, or A / D converter, or ADC for short, generally refers to an electronic component that converts an analog signal into a digital signal. Its basic principle is to sample the input analog signal at a specified time interval and compare it with a series of standard digital signals. The digital signals converge one by one until the two signals are equal. In the embodiment of the present application, the analog-to-digital converter uses a high-speed ADC chip. The high-speed ADC chip can effectively achieve a sampling frequency of nanoseconds or even picoseconds under the parallel drive of a programmable logic chip including an FPGA chip, so that there can be enough and dense sampling points on the current voltage cycle waveform to ensure that the real-time output voltage at each time point can be collected.
[0078] In an embodiment of the present application, the preset sampling frequency can be set to 60MHz-70MHz, preferably, it can be set to 65MHz. It can be understood that in actual applications, the preset sampling frequency can be set in various ways and depends on the actual application situation. It is not the only limitation here.
[0079] 102. Correcting the real-time output voltage;
[0080] In the embodiment of the present application, the correction processing of the real-time output voltage refers to compensating and correcting the error existing in the real-time output voltage, and obtaining the real-time corrected voltage after correcting the real-time output voltage.
[0081] 103. Obtain a periodic waveform of a stored voltage;
[0082] The registered voltage cycle waveform is the voltage cycle waveform before the current voltage cycle waveform. In a power supply with stable output, the current voltage cycle waveform is usually basically consistent with the shape of the previous voltage cycle waveform. There may be fluctuations in some places in the waveform, causing slight inconsistencies in the waveform. Unless there is a problem such as a sudden cliff drop in voltage, the adjacent waveforms remain basically consistent.
[0083] In an embodiment of the present application, although the voltage cycle waveform before the current voltage cycle waveform has been output, its waveform, that is, the registered voltage cycle waveform is stored in the shift register of the processor. The shift register can load parallel data, shift the data content to a higher bit, shift it to a lower bit, or maintain the original state. It can realize loading parallel input and serial output after shifting, or realize loading serial input and parallel output after shifting.
[0084] 104. Determine a target sampling point in the registered voltage periodic waveform according to the current sampling point of the current voltage periodic waveform, and obtain the registered voltage corresponding to the target sampling point;
[0085] There are N sampling points in the current voltage cycle waveform, and there are N sampling points in the registered voltage cycle waveform, and the positions of the N sampling points in the current voltage cycle waveform and the N sampling points in the registered voltage cycle waveform correspond one to one in the waveform. Therefore, according to the current sampling point of the current voltage cycle waveform, a sampling point at a corresponding position can be found in the registered voltage cycle waveform, that is, a target sampling point, and the registered voltage corresponding to the target sampling point can be obtained.
[0086] Exemplarily, assume that there are three sampling points in the current voltage cycle waveform, namely a1, a2 and a3. Similarly, since the current voltage cycle waveform will be basically consistent with the shape of the previous voltage cycle waveform, when the sampling frequency is consistent, the previous voltage cycle waveform, i.e., the stored voltage cycle waveform, will also have three sampling points, namely b1, b2 and b3, and b1, b2 and b3 correspond one-to-one to the positions of a1, a2 and a3 in the waveform. If the current sampling point is a3, the corresponding target sampling point is b3.
[0087] It is understandable that the above hypothetical description is only exemplary to enable a better understanding of the technical solution. In actual applications, the number of sampling points needs to be determined based on actual application conditions, and is not a sole limitation here.
[0088] 105. Compare the real-time correction voltage with the register voltage. If the real-time correction voltage does not match the register voltage, determine whether to execute a power protection strategy based on the real-time correction voltage and the difference voltage.
[0089] If the real-time correction voltage does not match the register voltage, it means that the voltage output of the power supply has fluctuated. It is necessary to further judge the amplitude of the fluctuation based on the real-time correction voltage and the difference voltage to determine whether it is necessary to implement a power protection strategy for the power supply to prevent damage to the device. The difference voltage is a voltage difference threshold preset in this application, which is used to judge the amplitude of the fluctuation together with the real-time correction voltage.
[0090] In the embodiments of the present application, the power protection strategy includes but is not limited to disconnecting the voltage regulating circuit in the power supply, and the voltage regulating circuit includes but is not limited to the BUCK circuit. The power supply can also be shut down and the device can be reconnected after rechecking or testing. The power protection strategy needs to be determined based on the actual application situation, and is not a sole limitation here.
[0091] From the above embodiment 1, the following beneficial effects can be seen:
[0092] By driving the analog-to-digital converter to sample the current voltage cycle waveform of the output voltage of the power supply according to the preset sampling frequency, the current voltage cycle waveform is converted from an analog signal to a digital signal, and the real-time output voltage is obtained at the nanosecond sampling speed of the analog-to-digital converter, so that the current voltage cycle waveform can be densely sampled to avoid missing detection of conditions such as overcurrent or overvoltage, or the failure to perform power supply protection in time when the condition occurs; after the real-time output voltage is corrected, the real-time corrected voltage is compared with the registered voltage corresponding to the target sampling point in the registered voltage cycle waveform. If the real-time corrected voltage does not match the registered voltage, it is determined whether to execute the power protection strategy based on the real-time corrected voltage and the difference voltage, and the power supply is detected and protected in real time. The detection speed is fast, the protection response speed is fast, the user's back-end equipment is protected, and unnecessary losses caused by equipment damage or output fluctuations in the production process are avoided, and the power protection requirements of high-performance power protection usage scenarios are met.
[0093] Embodiment 2
[0094] For ease of understanding, an embodiment of a power protection method based on high-speed signal processing is provided below for illustration. In practical applications, correction will be performed through de-biasing processing, and the real-time correction voltage will be subtracted from the difference voltage and then compared with the voltage upper and lower thresholds to determine whether to execute the power protection strategy.
[0095] See also Figure 2, Embodiment 2 of the power protection method based on high-speed signal processing shown in the embodiment of the present application includes:
[0096] 201. Drive the analog-to-digital converter to sample the current voltage cycle waveform of the output voltage of the power supply according to a preset sampling frequency;
[0097] In the embodiment of the present application, the specific content of step 201 is similar to that of step 101 in the above-mentioned embodiment 1, and will not be repeated here.
[0098] 202. De-bias the real-time output voltage to obtain a real-time correction voltage;
[0099] In actual use, the real-time output voltage of the power supply is bound to deviate from the ideal output voltage, so the real-time output voltage needs to be corrected. In the embodiment of the present application, a debiasing process is used to correct the real-time output voltage, wherein the debiasing process includes a gain error process and a bias error process. It is understandable that there are various ways to correct the real-time output voltage. In actual applications, the correction process needs to be determined according to the actual application situation, and it is not limited here.
[0100] In the process of de-biasing, the gain value is determined according to the resistance of each internal voltage-divider resistor of the power supply, the connection method between each internal voltage-divider resistor and the calculation accuracy of the processor. The gain value is the gain compensation value, which is used to estimate the difference between the transfer function and the actual voltage slope. The gain error is usually calculated at the last or last transmission code conversion point of the analog-to-digital converter and processed by multiplying it by the gain compensation value.
[0101] The offset value is determined according to the DC component of the output voltage. The offset value is a bias compensation value used to compensate for the DC component error of the signal output and eliminate the fixed deviation between the transfer function or the analog input voltage and the actual output voltage.
[0102] After obtaining the gain value and the offset value, the real-time output voltage is multiplied by the gain value, and then the offset value is added to obtain the real-time correction voltage, thereby completing the correction of the real-time output voltage. For example, it can be expressed by the following formula 1:
[0103] U 校正 =U 输入 ×gain+offset
[0104] Among them, U 校正 To correct the voltage in real time, U 输入 is the real-time input voltage, gain is the gain value, and offset is the offset value.
[0105] 203. Obtain a periodic waveform of a stored voltage;
[0106] In the embodiment of the present application, the specific content of step 203 is similar to the content of step 103 in the above-mentioned embodiment 1, and will not be repeated here.
[0107] 204. Determine a target sampling point in the registered voltage periodic waveform according to the current sampling point of the current voltage periodic waveform, and obtain the registered voltage corresponding to the target sampling point;
[0108] In the embodiment of the present application, the specific content of step 204 is similar to the content of step 104 in the above-mentioned embodiment 1, and will not be repeated here.
[0109] 205. Determine whether to execute a power protection strategy according to the real-time correction voltage and the difference voltage.
[0110] If the real-time correction voltage is greater than zero and the real-time correction voltage is less than the voltage threshold, the power protection strategy is executed, wherein the voltage threshold is a voltage value preset in the embodiment of the present application, and the voltage threshold is a positive number.
[0111] If the real-time correction voltage is greater than zero, the real-time correction voltage and the difference voltage are summed to obtain a first judgment voltage; if the first judgment voltage is less than the register voltage, and the register voltage at this time corresponds to the real-time correction voltage and is also greater than zero, the power protection strategy is executed;
[0112] If the real-time correction voltage is less than zero and the absolute value of the real-time correction voltage is less than the voltage threshold, the power protection strategy is executed. It is understandable that if the absolute value of the real-time correction voltage at the rising edge or falling edge is less than the voltage threshold, the power protection strategy is not executed.
[0113] If the real-time correction voltage is less than zero, the absolute value of the real-time correction voltage is summed with the difference voltage to obtain a second judgment voltage; if the second judgment voltage is less than the absolute value of the register voltage, the register voltage at this time is also less than zero corresponding to the real-time correction voltage, then the power protection strategy is executed.
[0114] From the above-mentioned embodiment 2, the following beneficial effects can be seen:
[0115] By de-biasing the real-time output voltage, the error in the real-time output voltage is eliminated, and the real-time correction voltage is obtained. The real-time correction voltage is used to determine the conditions for power protection, thereby improving the accuracy of determining whether to execute power protection, reducing the situation of erroneous execution of power protection strategies, avoiding affecting the normal operation of back-end equipment, and improving the stability and reliability of the power supply.
[0116] Embodiment 3
[0117] For ease of understanding, an embodiment of a power protection method based on high-speed signal processing is provided below for illustration. In practical applications, whether to execute the power protection strategy is determined by calculating the effective value of the voltage.
[0118] See also Figure 3 , Embodiment 3 of the power protection method based on high-speed signal processing shown in the embodiment of the present application includes:
[0119] 301. Record the real-time correction voltage;
[0120] After the real-time correction voltage is obtained, the real-time correction voltage is recorded. In the embodiment of the present application, the current voltage cycle waveform and the stored voltage cycle waveform both include a first half-cycle waveform and a second half-cycle waveform. The cycle lengths of the first half-cycle waveform and the second half-cycle waveform may be consistent, that is, the first half-cycle waveform and the second half-cycle waveform each occupy half of the current voltage cycle waveform or the stored voltage cycle waveform. They may also be inconsistent and are not uniquely limited.
[0121] It can also be understood that since the registered voltage cycle waveform is the previous waveform of the current voltage cycle waveform, the first half-cycle waveform of the registered voltage cycle waveform, the second half-cycle waveform of the registered voltage cycle waveform, the first half-cycle waveform of the current voltage cycle waveform and the second half-cycle waveform of the current voltage cycle waveform will appear in sequence, therefore, the first half-cycle waveform of the registered voltage cycle waveform and the first half-cycle waveform of the current voltage cycle waveform, as well as the second half-cycle waveform of the registered voltage cycle waveform and the second half-cycle waveform of the current voltage cycle waveform will correspond one to one.
[0122] When all sampling points of the first half cycle waveform of the current voltage cycle waveform are sampled and corrected, P real-time corrected voltages can be recorded; P is a positive integer, which is determined according to the number of sampling points of the first half cycle waveform.
[0123] 302. Determine a first voltage effective value of a first half-cycle waveform of a current voltage cycle waveform, and determine a first register voltage effective value of a first half-cycle waveform of a register voltage cycle waveform;
[0124] The first voltage effective value of the first half-cycle waveform of the current voltage cycle waveform is determined according to the P real-time correction voltages. Exemplarily, the first voltage effective value can be solved by the following formula 2:
[0125]
[0126] Among them, U P1 , U P2 , U P3 …U PPare P real-time correction voltages, and W1 is the effective value of the first voltage.
[0127] While determining the effective value of the first voltage, the first effective value of the first half-cycle waveform of the registered voltage cycle waveform stored in the shift register is determined. Since the first half-cycle waveform of the registered voltage cycle waveform corresponds to the first half-cycle waveform of the current voltage cycle waveform, the effective value of the first registered voltage can also be solved by the above formula 2.
[0128] 303. Determine a first effective difference, and determine whether to execute a power protection strategy according to a comparison result between the first effective difference and a preset effective difference;
[0129] The first effective difference is obtained by subtracting the first voltage effective value from the first stored voltage effective value, and the first effective difference is compared with the preset effective difference. If the first effective difference is greater than the preset effective difference, it means that the voltage output of the power supply has a large fluctuation at this time, and the power protection strategy is executed.
[0130] 304. If the first effective difference is less than the preset effective difference, continue to record the real-time correction voltage;
[0131] If the first effective difference is less than the preset effective difference, the power protection strategy is not executed, and the second half-cycle waveform of the current voltage cycle waveform will appear after the first half-cycle waveform of the current voltage cycle waveform. When the sampling points of the second half-cycle waveform of the current voltage cycle waveform are all sampled and corrected, Q real-time corrected voltages can be recorded; Q is a positive integer, which depends on the number of sampling points of the second half-cycle waveform.
[0132] 305. Determine a second voltage effective value of a second half-cycle waveform of the current voltage cycle waveform, and determine a second register voltage effective value of a second half-cycle waveform of the register voltage cycle waveform;
[0133] The second voltage effective value of the second half-cycle waveform of the current voltage cycle waveform is determined according to the Q real-time correction voltages. Exemplarily, the second voltage effective value can be solved by the following formula 3:
[0134]
[0135] Among them, U Q1 , U Q2 , U Q3 …U QQ are Q real-time correction voltages, and W2 is the effective value of the second voltage.
[0136] While determining the effective value of the second voltage, the second effective value of the second register voltage of the second half-cycle waveform of the register voltage cycle waveform stored in the shift register is determined. Since the second half-cycle waveform of the register voltage cycle waveform corresponds to the second half-cycle waveform of the current voltage cycle waveform, the effective value of the second register voltage can also be solved by the above formula three.
[0137] 306. Determine a second effective difference, and determine whether to execute a power protection strategy according to a comparison result between the second effective difference and a preset effective difference;
[0138] Subtract the second voltage effective value from the second stored voltage effective value to obtain a second effective difference, and compare the second effective difference with the preset effective difference. If the second effective difference is greater than the preset effective difference, it means that the voltage output of the power supply has a large fluctuation at this time, and the power protection strategy is executed.
[0139] 307. Combine the Q real-time correction voltages with the P real-time correction voltages to obtain N real-time correction voltages, determine the full-cycle voltage effective value of the current voltage cycle waveform, and determine the stored full-cycle voltage effective value of the stored voltage cycle waveform;
[0140] Since the current voltage cycle waveform and the stored voltage cycle waveform are both composed of the first half-cycle waveform and the second half-cycle waveform, the Q real-time correction voltages are combined with the P real-time correction voltages to obtain N real-time correction voltages recorded after sampling and correction processing of the sampling points of the current voltage cycle waveform.
[0141] The full-cycle voltage effective value of the current voltage cycle waveform is determined according to the N real-time correction voltages. For example, the full-cycle voltage effective value can be solved by the following formula 4:
[0142]
[0143] Among them, U N1 , U N2 , U N3 …U NN are N real-time correction voltages, and W3 is the effective value of the full-cycle voltage.
[0144] While determining the effective value of the full-cycle voltage, the effective value of the stored full-cycle voltage of the stored voltage cycle waveform stored in the shift register is determined. Since the current voltage cycle waveform is basically the same as the previous voltage cycle waveform, that is, the shape of the stored voltage cycle waveform, the effective value of the stored full-cycle voltage can also be solved by the above formula 4.
[0145] 308. Determine a third effective difference, and determine whether to execute a power protection strategy according to a comparison result between the third effective difference and a preset effective difference;
[0146] Subtract the stored full-cycle voltage effective value from the full-cycle voltage effective value to obtain a third effective difference, and compare the third effective difference with the preset effective difference. If the third effective difference is greater than the preset effective difference, it means that the current voltage cycle waveform of the power supply has undergone a large fluctuation relative to the previous voltage cycle waveform, and the power supply protection strategy is executed.
[0147] It is understandable that the implementation method provided by steps 305 and 306 and the implementation method provided by steps 307 and 308 can be implementation methods executed in parallel or existing implementation methods, and there is no strict execution sequence between the two.
[0148] From the above embodiment 3, the following beneficial effects can be seen:
[0149] Whether to execute the power protection strategy is determined by calculating the effective value of the voltage, thereby improving the judgment accuracy of the power protection strategy, improving the performance of the power protection, and improving the stability and reliability of the power supply.
[0150] Embodiment 4
[0151] For ease of understanding, an embodiment of a power protection method based on high-speed signal processing is provided below for illustration. In actual applications, preset upper and lower current limits and preset upper and lower voltage limits are also used to determine whether a power protection strategy needs to be executed.
[0152] See also Figure 4 , the fourth embodiment of the power protection method based on high-speed signal processing shown in the embodiment of the present application includes:
[0153] 401. Sampling a current cycle waveform of an output current of a power supply to obtain a real-time output current;
[0154] The analog-to-digital converter is driven to sample the current cycle waveform of the output current of the power supply according to a preset sampling frequency to obtain the real-time output current.
[0155] 402. Correct the real-time output current to obtain a real-time corrected current;
[0156] The correction process of the real-time output current refers to compensating and correcting the error existing in the real-time output current, and obtaining the real-time correction current after correcting the real-time output current.
[0157] In the embodiment of the present application, a de-biasing process is used to implement correction of the real-time output current, wherein the de-biasing process includes a gain error process and a bias error process.
[0158] The description of the de-biasing process has been described in detail in step 202 of the second embodiment of the present application. It is only necessary to replace the voltage with the current, and it will not be repeated here.
[0159] 403. Determine whether the power supply is in an overcurrent condition according to the real-time correction current, and determine whether a power supply protection strategy needs to be executed according to the determination result;
[0160] The power supply is judged and controlled for overcurrent protection, and the real-time correction current is compared with the preset current upper limit value. If the real-time correction current is greater than the preset current upper limit value, the power supply protection strategy is executed; the real-time correction current is compared with the preset current lower limit value. If the real-time correction current is less than the preset current lower limit value, the power supply protection strategy is executed.
[0161] 404. Determine whether a power protection strategy needs to be executed according to the real-time correction current and the real-time correction voltage.
[0162] If the real-time correction current is greater than the preset current upper limit, and the real-time correction voltage is less than the preset voltage upper limit, the current and voltage are in a crossing condition, and the power protection strategy needs to be executed; if the real-time correction current is less than the preset current lower limit, and the real-time correction voltage is greater than the preset voltage lower limit, the current and voltage are also in a crossing condition, and the power protection strategy is executed.
[0163] If the product of the real-time correction current and the real-time correction voltage is greater than the preset power threshold, it means that the power output power is too large at this time, and the power protection strategy is executed.
[0164] In actual applications, when the battery voltage inside the back-end device is higher than the output voltage of the power supply, the current of the battery will flow back into the power supply, causing abnormal output of the power supply and damage to the back-end device, so detection and protection are required. If the real-time correction voltage is greater than zero and the real-time correction current is less than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, the power supply protection strategy is executed; if the real-time correction voltage is less than zero and the real-time correction current is greater than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, the power supply protection strategy is executed.
[0165] From the above-mentioned fourth embodiment, the following beneficial effects can be seen:
[0166] It can make preliminary multi-dimensional judgments on the output voltage and output current of the power supply, and determine whether the power protection strategy needs to be executed based on the judgment results. It can quickly detect and protect the power supply, protect the user's back-end equipment, and avoid unnecessary losses in the production process due to equipment damage, thus meeting the power protection requirements of high-performance power protection usage scenarios.
[0167] Embodiment 5
[0168] Corresponding to the aforementioned application function implementation method embodiment, the present application also provides an electronic device for executing a power protection method based on high-speed signal processing and a corresponding embodiment.
[0169] Figure 5 It is a schematic diagram of the structure of an electronic device shown in an embodiment of the present application.
[0170] See also Figure 5 , the electronic device 1000 includes a memory 1010 and a processor 1020 .
[0171] The processor 1020 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. In an embodiment of the present application, the processor preferably uses an FPGA chip, i.e., a field-programmable gate array (FPGA), to meet the power protection requirements of high-performance power protection usage scenarios.
[0172] The memory 1010 may include various types of storage units, such as system memory, read-only memory (ROM), and permanent storage devices. Among them, ROM can store static data or instructions required by the processor 1020 or other modules of the computer. The permanent storage device may be a readable and writable storage device. The permanent storage device may be a non-volatile storage device that does not lose the stored instructions and data even after the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device. In some other embodiments, the permanent storage device may be a removable storage device (such as a floppy disk, optical drive). The system memory may be a readable and writable storage device or a volatile readable and writable storage device, such as a dynamic random access memory. The system memory may store some or all instructions and data required by the processor at run time. In addition, the memory 1010 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), and disks and / or optical disks may also be used. In some embodiments, the memory 1010 may include a readable and / or writable removable storage device, such as a laser disc (CD), a read-only digital versatile disc (such as a DVD-ROM, a double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (such as an SD card, a mini SD card, a Micro-SD card, etc.), a magnetic floppy disk, etc. The computer-readable storage medium does not include carrier waves and transient electronic signals transmitted wirelessly or wired.
[0173] The memory 1010 stores executable codes, and when the executable codes are processed by the processor 1020 , the processor 1020 can execute part or all of the methods described above.
[0174] The scheme of the present application has been described in detail above with reference to the accompanying drawings. In the above embodiments, the description of each embodiment has its own emphasis. For the part that is not described in detail in a certain embodiment, refer to the relevant description of other embodiments. Those skilled in the art should also know that the actions and modules involved in the description are not necessarily required for the present application. In addition, it can be understood that the steps in the method of the embodiment of the present application can be adjusted in order, merged and deleted according to actual needs, and the modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0175] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.
[0176] Alternatively, the present application can also be implemented as a non-temporary machine-readable storage medium (or computer-readable storage medium, or machine-readable storage medium) on which executable code (or computer program, or computer instruction code) is stored. When the executable code (or computer program, or computer instruction code) is executed by a processor of an electronic device (or electronic device, server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.
[0177] Those skilled in the art will further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the application herein may be implemented as electronic hardware, computer software, or combinations of both.
[0178] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system and method according to multiple embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a part of a module, a program segment or a code, and the part of the module, the program segment or the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or the flow chart, and the combination of the square boxes in the block diagram and / or the flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0179] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A power supply protection method based on high-speed signal processing, characterized in that: include: The analog-to-digital converter is driven to sample the current voltage cycle waveform of the output voltage of the power supply according to a preset sampling frequency to obtain the real-time output voltage; Correcting the real-time output voltage to obtain a real-time corrected voltage; Acquire a stored voltage cycle waveform, where the stored voltage cycle waveform is a voltage cycle waveform before the current voltage cycle waveform, and the stored voltage cycle waveform is stored in a shift register of the processor; Determine a target sampling point in the register voltage periodic waveform according to a current sampling point of the current voltage periodic waveform, and obtain a register voltage corresponding to the target sampling point; The real-time correction voltage is compared with the register voltage. If the real-time correction voltage does not match the register voltage, whether to execute a power protection strategy is determined according to the real-time correction voltage and the difference voltage, wherein the power protection strategy includes disconnecting a voltage regulating circuit in the power supply; the difference voltage is a preset voltage difference threshold, and the difference voltage is a positive number; The determining whether to execute a power protection strategy according to the real-time correction voltage and the difference voltage includes: If the real-time correction voltage is greater than zero and the real-time correction voltage is less than a voltage threshold, the power protection strategy is executed; the voltage threshold is a preset voltage value, and the voltage threshold is a positive number; If the real-time correction voltage is greater than zero, summing the real-time correction voltage and the difference voltage to obtain a first judgment voltage; If the first judgment voltage is less than the register voltage, executing the power protection strategy; If the real-time correction voltage is less than zero, and the absolute value of the real-time correction voltage is less than the voltage threshold, executing the power protection strategy; If the real-time correction voltage is less than zero, the absolute value of the real-time correction voltage is summed with the difference voltage to obtain a second judgment voltage; If the second judgment voltage is smaller than the absolute value of the register voltage, the power protection strategy is executed.
2. The power supply protection method based on high-speed signal processing according to claim 1, characterized in that: The correcting process of the real-time output voltage comprises: The real-time output voltage is subjected to a debiasing process, wherein the debiasing process includes gain error processing and offset error processing.
3. The power supply protection method based on high-speed signal processing according to claim 2, characterized in that: The de-biasing process of the real-time output voltage comprises: Determine a gain value according to the resistance of each internal voltage-dividing resistor of the power supply, the connection mode between each internal voltage-dividing resistor and the calculation accuracy of the processor, wherein the gain value is a gain compensation value; determining an offset value according to a DC component of the output voltage, wherein the offset value is a bias compensation value; The real-time output voltage is multiplied by the gain value and added with the offset value to obtain the real-time correction voltage.
4. The power protection method based on high-speed signal processing according to claim 1, characterized in that: After obtaining the real-time correction voltage, the method further includes: Recording the real-time correction voltage; The current voltage cycle waveform and the stored voltage cycle waveform both include a first half cycle waveform and a second half cycle waveform; When all sampling points of the first half cycle waveform of the current voltage cycle waveform are sampled and corrected, P real-time corrected voltages are obtained; P is a positive integer; Determine a first voltage effective value of a first half-cycle waveform of a current voltage cycle waveform according to the P real-time correction voltages, and determine a first register voltage effective value of a first half-cycle waveform of the register voltage cycle waveform; Subtracting the first voltage effective value from the first stored voltage effective value to obtain a first effective difference; The first effective difference is compared with a preset effective difference, and if the first effective difference is greater than the preset effective difference, the power protection strategy is executed.
5. The power supply protection method based on high-speed signal processing according to claim 4, characterized in that: After comparing the first effective difference with the preset effective difference, the method further comprises: If the first effective difference is less than the preset effective difference, continue to record the real-time correction voltage; When all sampling points of the second half cycle waveform of the current voltage cycle waveform are sampled and corrected, Q real-time corrected voltages are obtained; Q is a positive integer; Determine a second voltage effective value of a second half-cycle waveform of a current voltage cycle waveform according to the Q real-time correction voltages, and determine a second register voltage effective value of a second half-cycle waveform of the register voltage cycle waveform; Subtract the second voltage effective value from the second registered voltage effective value to obtain a second effective difference; The second effective difference is compared with the preset effective difference, and if the second effective difference is greater than the preset effective difference, the power protection strategy is executed.
6. The power supply protection method based on high-speed signal processing according to claim 5, characterized in that: After obtaining Q real-time correction voltages, the method further includes: The Q real-time correction voltages are combined with the P real-time correction voltages to obtain N real-time correction voltages, where the N real-time correction voltages are the real-time correction voltages recorded after sampling and correction processing of the sampling points of the current voltage cycle waveform; Determine the full-cycle voltage effective value of the current voltage cycle waveform according to the N real-time correction voltages, and determine the stored full-cycle voltage effective value of the stored voltage cycle waveform; Subtract the full-cycle voltage effective value from the stored full-cycle voltage effective value to obtain a third effective difference; The third effective difference is compared with the preset effective difference, and if the third effective difference is greater than the preset effective difference, the power protection strategy is executed.
7. The power supply protection method based on high-speed signal processing according to claim 1, characterized in that: Before the real-time output voltage is corrected, the method further includes: Sampling the current cycle waveform of the output current of the power supply to obtain the real-time output current; Performing correction processing on the real-time output current to obtain a real-time corrected current; Comparing the real-time correction current with a preset current upper limit value, and executing the power supply protection strategy if the real-time correction current is greater than the preset current upper limit value; The real-time correction current is compared with a preset current lower limit value, and if the real-time correction current is less than the preset current lower limit value, the power supply protection strategy is executed.
8. The power supply protection method based on high-speed signal processing according to claim 7, characterized in that: After the real-time output voltage is corrected to obtain the real-time corrected voltage and before the periodic waveform of the stored voltage is acquired, the method further includes: If the real-time correction current is greater than the preset current upper limit value, and the real-time correction voltage is less than the preset voltage upper limit value, executing the power protection strategy; If the real-time correction current is less than the preset current lower limit value, and the real-time correction voltage is greater than the preset voltage lower limit value, then executing the power protection strategy; If the product of the real-time correction current and the real-time correction voltage is greater than a preset power threshold, executing the power protection strategy; If the real-time correction voltage is greater than zero and the real-time correction current is less than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, then executing the power supply protection strategy; If the real-time correction voltage is less than zero and the real-time correction current is greater than zero, and the absolute value of the real-time correction current is greater than the reverse current protection threshold, the power protection strategy is executed.
9. An electronic device, characterized in that: include: A processor, wherein the processor includes a programmable logic device, and the programmable logic device includes an FPGA chip; as well as A memory having executable codes stored thereon, which, when executed by the processor, causes the processor to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
True effective value measuring and protecting device output by electric vibrating table power amplifier
CN201233302Y
A / D (Analog / Digital) conversion sampling circuit and metering chip
CN104426548A
Current detection device
CN112313517A