Voltage acquisition circuit, alternating current power supply, voltage acquisition method, device and medium
By designing voltage acquisition circuits with near-end and far-end sampling units in the AC power supply, and using comparison and XOR units to process the signal, the remote induction sampling status can be accurately identified, thus solving the problem of misjudgment in remote induction sampling of AC regulated power supplies and ensuring the safety of the power supply and load.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUNAN NEXT GENERATION INSTRUMENTAL T&C TECH CO LTD
- Filing Date
- 2026-03-17
- Publication Date
- 2026-07-31
AI Technical Summary
The remote sensing sampling of existing AC regulated power supplies cannot identify when the cable is dropped or reversed, leading to misjudgment and posing a safety hazard. Furthermore, the reverse connection and disconnection protection circuits of existing DC regulated power supplies are not suitable for AC power supplies.
Design a voltage acquisition circuit that acquires voltage through near-end and far-end sampling units, processes the signal using a comparison unit and an XOR unit, and determines the far-end sensing sampling status by combining abnormal comparison voltages. The circuit includes a first comparison unit, a second comparison unit, an XOR unit, and a third comparison unit to ensure accurate identification of sampling anomalies when the output voltage is low.
It effectively avoids misjudgment due to voltage difference when outputting low voltage, ensuring stable operation of AC power supply and load safety in remote sampling mode, and preventing load damage or safety accidents caused by misjudgment.
Smart Images

Figure CN121856628B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of power supply equipment, and in particular to voltage acquisition circuits, AC power supplies, voltage acquisition methods, devices and media. Background Technology
[0002] When an AC regulated power supply supplies power to a load, line losses on the output line cause voltage and phase differences between the output port of the AC regulated power supply and the port of the device under test, resulting in reduced AC voltage accuracy. To solve this problem, the sampling point of the output port is moved outward to the input port of the load, which is called remote sampling.
[0003] Existing AC regulated power supplies with remote induction sampling have the following drawbacks: 1. When the sampling line falls off, it can cause an open circuit in the constant voltage closed loop, potentially resulting in an open-circuit voltage higher than the required voltage, leading to breakdown or damage to the tested object, or even causing electric shock or fire hazards. 2. When the remote sampling line is reversed, it may burn out the instrument or cause inaccurate sampling voltage, again resulting in an open-circuit voltage higher than the required voltage, which can also lead to breakdown or damage to the tested object, or even cause electric shock or fire hazards. 3. The AC regulated power supply cannot detect when the remote sampling line falls off or is reversed.
[0004] like Figure 1 As shown, Near-end voltage, For the remote voltage, For cable resistance, For cable inductance, due to the cable... , The existence of Slightly smaller Furthermore, there will be a slight phase difference. Currently, the common practice is to sample the far-end voltage and the near-end voltage separately and calculate... The effective value (denoted as) ), and according to the compensation voltage set by the user. To make a judgment, remote sensing sampling and identification are performed. If If the remote sensing sampling is abnormal, the AC power supply control loop will call the sampling data from the near end; if If the remote sensing sampling is normal, the AC power supply control loop will call the remote sampling data. However, at the AC power supply's set output voltage... Below the compensation voltage At times, there may be cases of false judgments in remote sensing sampling (SENSE): If the remote compensation voltage The output voltage of the AC power supply is ; If the remote sensing sampling line drops, then the near-end voltage... and remote voltage The values are respectively: , ,at this time The system mistakenly judged that the remote sensing sampling was normal at this time; If the remote sensing sampling is reversed... , ,at this time The system mistakenly judged that the remote sensing sampling was normal at this time.
[0005] Currently, there are some circuits in existing technologies that can prevent reverse connection and disconnection, but these are all applied to DC regulated power supplies and are not suitable for AC regulated power supplies because the instantaneous value of AC voltage is constantly changing, with both positive and negative values. Summary of the Invention
[0006] This application aims to at least solve one of the technical problems existing in the prior art. To this end, this application proposes a voltage acquisition circuit that can identify situations such as remote sensing sampling disconnection and remote sensing sampling reverse connection when the AC power supply is output at low voltage.
[0007] This application also provides an AC power supply, a voltage acquisition method, a control device, and a computer-readable storage medium.
[0008] A voltage acquisition circuit according to a first aspect embodiment of the present application is applied to an AC power supply, the AC power supply being used to power a load, the voltage acquisition circuit comprising: The near-end sampling unit has a near-end voltage output terminal, a near-end anomaly detection terminal, and a near-end voltage sampling terminal connected to the output port of the AC power supply; The remote sampling unit has a remote voltage output terminal, a remote anomaly detection terminal, and a remote voltage sampling terminal connected to the power supply port of the load; The first comparison unit has its non-inverting input connected to the proximal anomaly detection terminal and its inverting input connected to a reference ground. The second comparison unit has its non-inverting input connected to the remote anomaly detection terminal, and its inverting input connected to the reference ground. The XOR unit has its first input terminal connected to the output terminal of the first comparison unit, and its second input terminal connected to the output terminal of the second comparison unit. The third comparison unit has its non-inverting input connected to the output of the XOR unit via a low-pass filter, and its inverting input connected to a reference voltage output circuit. The reference voltage output circuit is used to output a reference voltage, which is less than half of the supply voltage. The supply voltage is the supply voltage of the first comparison unit, the second comparison unit, and the third comparison unit. The control unit is connected to the output terminal of the near-end voltage, the output terminal of the far-end voltage, and the output terminal of the third comparison unit. The control unit is used to receive the near-end voltage output by the near-end sampling unit, the far-end voltage output by the far-end sampling unit (200), and the abnormal comparison voltage output by the third comparison unit. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is 1, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is 0, it is determined that the far-end sensing sampling is normal.
[0009] The voltage acquisition circuit according to the embodiments of this application has at least the following beneficial effects: By setting up near-end sampling units and far-end sampling units to collect the voltages of the AC power output port and the load power port respectively, and using the first and second comparison units to compare the voltages of the near-end and far-end anomaly detection terminals with the ground voltage, square wave signals reflecting the near-end and far-end voltages at the same frequency are obtained. An XOR unit performs an XOR operation on these two square wave signals. When the far-end induction sampling is normal, the output of the XOR unit is a square wave with a duty cycle close to 0; when the far-end induction sampling is reversed, the output of the XOR unit is a square wave with a duty cycle close to 1; and when the far-end induction sampling is disconnected, the output of the XOR unit is a square wave with a duty cycle close to 50%. The third comparison unit compares the output of the XOR unit with a reference voltage less than half the supply voltage and outputs an anomaly comparison voltage. When the far-end induction sampling is normal, the anomaly comparison voltage is close to 0V; when the far-end induction sampling is reversed, the anomaly comparison voltage is close to the supply voltage; and when the far-end induction sampling is disconnected, the anomaly comparison voltage is close to half the supply voltage. The control unit combines the relationship between the effective value of the difference between the near-end and far-end voltages and the preset compensation voltage, as well as the state of the abnormal comparison voltage, to accurately determine whether the far-end induction sampling is abnormal when the AC power supply is outputting at low voltage. This design overcomes the shortcomings of traditional methods that rely solely on the effective value of the voltage difference, effectively avoiding misjudgments caused by the effective value of the difference being less than the preset compensation voltage when the voltage is outputting at low voltage. This reliably identifies cases of disconnection or reverse connection in the far-end induction sampling, ensuring stable operation of the AC power supply and load safety in far-end sampling mode.
[0010] According to some embodiments of this application, the first comparison unit, the second comparison unit, and the third comparison unit all employ comparators.
[0011] According to some embodiments of this application, the XOR unit employs an XOR gate.
[0012] According to some embodiments of this application, the reference voltage output circuit includes: A first resistor, one end of which is connected to the power supply terminal of the third comparator unit, and the other end of which is connected to the inverting input terminal of the third comparator unit; The second resistor has one end connected to the other end of the first resistor and the inverting input terminal of the third comparator, and the other end connected to the reference ground.
[0013] According to some embodiments of this application, the proximal sampling unit includes: The first sampling unit has its input terminal connected to the output port of the AC power supply. A first signal attenuation unit, wherein the input terminal of the first signal attenuation unit is connected to the output terminal of the first sampling unit, and the output terminal of the first signal attenuation unit is connected to the non-inverting input terminal of the first comparison unit; The first ADC unit has its input terminal connected to the output terminal of the first signal attenuation unit and the non-inverting input terminal of the first comparator unit, respectively, and its output terminal connected to the control unit.
[0014] According to some embodiments of this application, the remote sampling unit includes: The second sampling unit has its input terminal connected to the power supply port of the load. The second signal attenuation unit has its input terminal connected to the output terminal of the second sampling unit, and its output terminal connected to the non-inverting input terminal of the second comparison unit. The second ADC unit has its input terminal connected to the output terminal of the second signal attenuation unit and the non-inverting input terminal of the second comparator unit, respectively, and its output terminal connected to the control unit.
[0015] The AC power supply according to a second aspect embodiment of this application includes the voltage acquisition circuit as described in the first aspect embodiment above. Since the AC power supply employs all the technical solutions of the voltage acquisition circuit of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.
[0016] The voltage acquisition method according to a third aspect embodiment of this application, applied to an AC power supply as described in the second aspect embodiment above, includes: The system receives the near-end voltage output by the near-end sampling unit, the far-end voltage output by the far-end sampling unit, and the abnormal comparison voltage output by the third comparison unit. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is 1, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is 0, the far-end sensing sampling is determined to be normal.
[0017] The voltage acquisition method according to the embodiments of this application has at least the following beneficial effects: By setting up near-end sampling units and far-end sampling units to collect the voltages of the AC power output port and the load power port respectively, and using the first and second comparison units to compare the voltages of the near-end and far-end anomaly detection terminals with the ground voltage, square wave signals reflecting the near-end and far-end voltages at the same frequency are obtained. An XOR unit performs an XOR operation on these two square wave signals. When the far-end induction sampling is normal, the output of the XOR unit is a square wave with a duty cycle close to 0; when the far-end induction sampling is reversed, the output of the XOR unit is a square wave with a duty cycle close to 1; and when the far-end induction sampling is disconnected, the output of the XOR unit is a square wave with a duty cycle close to 50%. The third comparison unit compares the output of the XOR unit with a reference voltage less than half the supply voltage and outputs an anomaly comparison voltage. When the far-end induction sampling is normal, the anomaly comparison voltage is close to 0V; when the far-end induction sampling is reversed, the anomaly comparison voltage is close to the supply voltage; and when the far-end induction sampling is disconnected, the anomaly comparison voltage is close to half the supply voltage. The control unit combines the relationship between the effective value of the difference between the near-end and far-end voltages and the preset compensation voltage, as well as the state of the abnormal comparison voltage, to accurately determine whether the far-end induction sampling is abnormal when the AC power supply is outputting at low voltage. This design overcomes the shortcomings of traditional methods that rely solely on the effective value of the voltage difference, effectively avoiding misjudgments caused by the effective value of the difference being less than the preset compensation voltage when the voltage is outputting at low voltage. This reliably identifies cases of disconnection or reverse connection in the far-end induction sampling, ensuring stable operation of the AC power supply and load safety in far-end sampling mode.
[0018] A control device according to a fourth aspect embodiment of this application includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the voltage acquisition method as described in the third aspect embodiment above. Since the control device employs all the technical solutions of the voltage acquisition method of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.
[0019] A computer-readable storage medium according to a fifth aspect embodiment of this application stores computer-executable instructions for performing the voltage acquisition method as described in the third aspect embodiment above. Since the computer-readable storage medium employs all the technical solutions of the voltage acquisition method of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.
[0020] Other features and advantages of this application will be set forth in the following description and will be apparent in part from the description or may be learned by practicing the application. Attached Figure Description
[0021] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1 This is a schematic diagram of near-end sampling and far-end sampling when an AC regulated power supply supplies power to a load according to an embodiment of this application; Figure 2 This is an electrical schematic diagram of a voltage acquisition circuit according to an embodiment of this application; Figure 3 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE is normal; Figure 4 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE is reversed; Figure 5 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE disconnects; Figure 6 This is another embodiment of the present application. Figure 2 Waveforms of U1, U2, and U3 when SENSE disconnects; Figure 7 This is a flowchart of a voltage acquisition method according to an embodiment of this application.
[0022] Figure label: Near-end sampling unit 100, first sampling unit 110, first signal attenuation unit 120, first ADC unit 130; Remote sampling unit 200, second sampling unit 210, second signal attenuation unit 220, second ADC unit 230; First comparison unit 300; Second comparison unit 400; XOR unit 500; Third comparison unit 600; Low-pass filter 700; Control unit 800. Detailed Implementation
[0023] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0024] In the description of this application, the use of terms such as "first," "second," etc., is for the purpose of distinguishing technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or the order of the technical features indicated.
[0025] In the description of this application, it should be understood that the orientation descriptions, such as up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0026] In the description of this application, it should be noted that, unless otherwise explicitly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0027] The following will combine Figures 1 to 7 The voltage acquisition circuit of the embodiments of this application will be clearly and completely described. Obviously, the embodiments described below are some embodiments of this application, not all embodiments.
[0028] refer to Figures 1 to 7 , Figure 1 This is a schematic diagram of near-end sampling and far-end sampling when an AC regulated power supply according to an embodiment of this application supplies power to a load. Figure 2 This is an electrical schematic diagram of a voltage acquisition circuit according to an embodiment of this application. Figure 3 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE is normal. Figure 4 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE is reversed. Figure 5 yes Figure 2 Waveforms of U1, U2, and U3 when SENSE disconnects. Figure 6 This is another embodiment of the present application. Figure 2 Waveforms of U1, U2, and U3 when SENSE disconnects. Figure 7This is a flowchart of a voltage acquisition method according to an embodiment of this application.
[0029] According to a first aspect embodiment of the present application, a voltage acquisition circuit is applied to an AC power supply for supplying power to a load. The voltage acquisition circuit includes a near-end sampling unit 100, a far-end sampling unit 200, a first comparison unit 300, a second comparison unit 400, an XOR unit 500, a third comparison unit 600, and a control unit 800.
[0030] The near-end sampling unit 100 has a near-end voltage output terminal, a near-end anomaly detection terminal, and a near-end voltage sampling terminal connected to the output port of the AC power supply. The remote sampling unit 200 has a remote voltage output terminal, a remote anomaly detection terminal, and a remote voltage sampling terminal connected to the power supply port of the load; The first comparison unit 300 has its non-inverting input terminal connected to the near-end anomaly detection terminal, and its inverting input terminal connected to the reference ground. The second comparison unit 400 has its non-inverting input connected to the remote anomaly detection terminal and its inverting input connected to the reference ground. The XOR unit 500 has its first input terminal connected to the output terminal of the first comparison unit 300, and its second input terminal connected to the output terminal of the second comparison unit 400. The third comparison unit 600 has its non-inverting input connected to the output of the XOR unit 500 via a low-pass filter 700, and its inverting input connected to a reference voltage output circuit. The reference voltage output circuit is used to output a reference voltage, which is less than half of the supply voltage. The supply voltage is the supply voltage of the first comparison unit 300, the second comparison unit 400, and the third comparison unit 600. The control unit 800 is connected to the near-end voltage output terminal, the far-end voltage output terminal, and the output terminal of the third comparison unit 600, respectively. The control unit 800 is used to receive the near-end voltage output by the near-end sampling unit 100, the far-end voltage output by the far-end sampling unit 200, and the abnormal comparison voltage output by the third comparison unit 600. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is 1, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is 0, it is determined that the far-end sensing sampling is normal.
[0031] refer to Figure 2 The near-end sampling unit 100 and the far-end sampling unit 200 sample the near-end voltage respectively. and remote voltage The control unit 800 calculates The effective value (denoted as) ), and according to the preset compensation voltage set by the user. To make a judgment, remote sensing sampling and identification are performed. If If the remote sensing sampling is abnormal, the AC power supply control loop will call the sampling data from the near end; if The value of the abnormal comparison voltage U6 is then determined by the first comparison unit 300, the second comparison unit 400, the XOR unit 500, and the third comparison unit 600.
[0032] Proximity voltage The voltage is compared with a reference ground via a first comparison unit 300, the output U1 of which is the near-end voltage. Square waves of the same frequency; far-end voltage The voltage is compared with a reference ground via a second comparison unit 400, the output U2 of which is the far-end voltage. Square waves of the same frequency. U1 and U2 are XORed by XOR unit 500 (the function of XOR unit 500 is that when the two signal inputs are the same, the output is 0, and when the two signal inputs are different, the output is 1). The output of XOR unit 500 is U3.
[0033] When SENSE is connected correctly (normally), the waveforms of U1, U2, and U3 are as follows: Figure 3 As shown, U1 is the near-end voltage. Square waves of the same frequency, U2 is the voltage at the far end. Square waves of the same frequency, due to the inductance in the cable The existence of and There will be a slight phase difference, so U1 and U2 also have a slight phase difference. When U1 and U2 are in the same state, U3 outputs low; when U1 and U2 are in different states, U3 outputs high. Therefore, the output of U3 is a square wave with a duty cycle close to 0.
[0034] When SENSE is reversed, the waveforms of U1, U2, and U3 are as follows: Figure 4 As shown, due to the far-end voltage Reverse connection, and due to the inductance in the cable The existence of and Since the phase difference is close to 180°, the phase difference between U1 and U2 is close to 180°. At this time, the output of U3 is a square wave with a duty cycle close to 1.
[0035] When SENSE disconnects, the waveforms of U1, U2, and U3 are as follows: Figure 5 and Figure 6 As shown, because of the far-end voltage If the connection drops, the voltage at the non-inverting input of the second comparator unit 400 depends on its own zero point, and its output will be either constant high or constant low. However, regardless of whether it is constant high or constant low, the output of U3 is a square wave with a duty cycle of 50%.
[0036] After passing through the low-pass filter 700, U3 obtains a DC voltage U4. If the actual voltage corresponding to the state of U3 is 1 is the power supply VCC, then the actual voltage of U4 depends on the SENSE state as follows: when SENSE is connected (normal), the voltage of U4 is close to 0V; when SENSE is reversed, the voltage of U4 is close to VCC; when SENSE is disconnected, the voltage of U4 is VCC / 2.
[0037] U5 is less than VCC / 2. U4 and U5 are compared by the third comparison unit 600 to obtain the abnormal comparison voltage. When SENSE is connected properly (normal), U6 is 0; when SENSE is reversed or disconnected, U6 is 1.
[0038] refer to Figure 7 ,like And the abnormal comparison voltage U6 is 1, indicating an abnormality in the remote sensing sampling. The control loop of the AC power supply calls the sampling data from the near end; if Furthermore, the abnormal comparison voltage U6 is 0, indicating that the remote sensing sampling is normal. The control loop of the AC power supply calls the sampling data from the remote end, thus effectively identifying the SENSE disconnection and SENSE reverse connection when the AC power supply is outputting at low voltage.
[0039] It should be noted that the preset compensation voltage The values are still set according to the common values of existing technical solutions.
[0040] According to the voltage acquisition circuit of this application embodiment, a near-end sampling unit 100 and a far-end sampling unit 200 are set to acquire the voltages of the AC power output port and the load power port, respectively. A first comparison unit 300 and a second comparison unit 400 are used to compare the voltages of the near-end anomaly detection terminal and the far-end anomaly detection terminal with the ground voltage, respectively, to obtain square wave signals of the same frequency reflecting the near-end and far-end voltages. An XOR unit 500 performs an XOR operation on these two square wave signals. When the far-end induction sampling is normal, the output of the XOR unit 500 is a square wave with a duty cycle close to 0; when the far-end induction sampling is reversed, the output of the XOR unit 500 is a square wave with a duty cycle close to 1; and when the far-end induction sampling is disconnected, the output of the XOR unit 500 is a square wave with a duty cycle close to 50%. The third comparison unit 600 compares the output of the XOR unit 500 with a reference voltage less than half the supply voltage, and outputs an abnormal comparison voltage. When the remote sensing sampling is normal, the abnormal comparison voltage is close to 0V; when the remote sensing sampling is reversed, the abnormal comparison voltage is close to the supply voltage; and when the remote sensing sampling is disconnected, the abnormal comparison voltage is close to half the supply voltage. The control unit 800, combining the relationship between the effective value of the difference between the near-end and far-end voltages and the preset compensation voltage, as well as the state of the abnormal comparison voltage, can accurately determine whether the remote sensing sampling is abnormal when the AC power supply is outputting at low voltage. This design overcomes the shortcomings of traditional methods that rely solely on the effective value of the voltage difference, effectively avoiding misjudgments caused by the effective value of the difference being less than the preset compensation voltage when the voltage is outputting at low voltage. This reliably identifies remote sensing sampling disconnection and reverse connection situations, ensuring stable operation of the AC power supply and load safety in remote sampling mode.
[0041] In some embodiments of this application, reference is made to Figure 2 The first comparison unit 300, the second comparison unit 400, and the third comparison unit 600 all employ comparators. Comparators are characterized by fast response speed, high input impedance, and large output swing, enabling them to quickly and accurately compare input voltage signals and output corresponding logic levels. Using comparators as the core components of the first comparison unit 300, the second comparison unit 400, and the third comparison unit 600 ensures stable and reliable operation of the circuit under various working conditions, improving the accuracy of voltage acquisition and anomaly detection.
[0042] It should be noted that the first comparison unit 300, the second comparison unit 400, and the third comparison unit 600 can also be comparison circuits constructed using operational amplifiers. By appropriately setting external resistors and other components, voltage comparison functionality can also be achieved. Operational amplifiers have extremely high voltage gain in open-loop mode, and their output quickly saturates to the positive or negative limits of the power supply voltage, thereby enabling comparison of the input signal. In practical applications, the appropriate comparator type or operational amplifier model can be selected to construct the first comparison unit 300, the second comparison unit 400, and the third comparison unit 600 based on specific accuracy requirements, cost budget, and circuit complexity. For example, for applications requiring high accuracy and fast response speed, a high-speed precision comparator can be selected; while for cost-sensitive scenarios where performance requirements are not extreme, a common operational amplifier can be used to build the comparison circuit.
[0043] In some embodiments of this application, reference is made to Figure 2 The XOR unit 500 uses an XOR gate. As a basic digital logic gate circuit, the XOR gate's logic function is as follows: when the logic states of the two input terminals are the same (i.e., both are high or both are low), the output is low; when the logic states of the two input terminals are different (i.e., one is high and the other is low), the output is high. In this application, an XOR gate is selected as the XOR unit 500, which can directly implement the XOR logic operation on the square wave signal U1 output by the first comparison unit 300 and the square wave signal U2 output by the second comparison unit 400, thereby quickly obtaining the output signal U3 reflecting the phase relationship between U1 and U2. The XOR gate has advantages such as simple structure, clear logic function, fast operating speed, and low cost, making it very suitable for detecting the phase difference between near-end and far-end voltages in this voltage acquisition circuit, thus providing crucial signal basis for subsequent anomaly judgment.
[0044] In one embodiment, the XOR unit 500 can also be implemented using a discrete circuit composed of multiple transistors. By rationally designing the transistor connection method and bias circuit, the output state of the circuit can exhibit the same characteristics as the XOR gate according to the logical relationship between the two input signals. For example, utilizing the switching characteristics of transistors, when both input signals are simultaneously high or simultaneously low, one of the transistors in the circuit is cut off, and the output is low; when one of the two input signals is high and the other is low, the corresponding transistor is turned on, and the output is high.
[0045] In another embodiment, the XOR unit 500 can also be implemented by equivalently replacing the XOR gate with an AND gate + NOT gate + OR gate combination.
[0046] In some embodiments of this application, reference is made to Figure 2 The reference voltage output circuit includes a first resistor and a second resistor.
[0047] The first resistor has one end connected to the power supply terminal of the third comparison unit 600, and the other end connected to the inverting input terminal of the third comparison unit 600. The second resistor has one end connected to the other end of the first resistor and the inverting input of the third comparator 600, and the other end connected to the reference ground.
[0048] The first and second resistors form a voltage divider circuit. By appropriately selecting the resistance ratio of the first and second resistors, the supply voltage VCC of the third comparator unit 600 can be divided, thereby obtaining a stable reference voltage U5 at the inverting input terminal of the third comparator unit 600. For example, if the resistance of the first resistor is R1 and the resistance of the second resistor is R2, then the formula for calculating the reference voltage U5 is U5 = VCC * R2 / (R1 + R2). By adjusting the resistance values of R1 and R2, the value of the reference voltage U5 can be easily set to meet the design requirement of being less than half of the supply voltage VCC, ensuring that the third comparator unit 600 can accurately distinguish the DC voltage U4 output by the low-pass filter 700 under different SENSE states, and thus correctly output the abnormal comparison voltage U6. This reference voltage output circuit composed of resistor voltage dividers has the advantages of simple structure, low cost, and good stability, and is very suitable for providing a stable and reliable reference voltage in this voltage acquisition circuit.
[0049] In one specific embodiment, VCC=5V, and R1=3kΩ is set. R²=2k Therefore, U5 = 2V.
[0050] In some embodiments of this application, reference is made to Figure 2 The near-end sampling unit 100 includes a first sampling unit 110, a first signal attenuation unit 120, and a first ADC unit 130.
[0051] The first sampling unit 110 has its input terminal connected to the output port of the AC power supply. The first signal attenuation unit 120 has its input terminal connected to the output terminal of the first sampling unit 110, and its output terminal connected to the non-inverting input terminal of the first comparison unit 300. The first ADC unit 130 has its input terminals connected to the output terminal of the first signal attenuation unit 120 and the non-inverting input terminal of the first comparison unit 300, respectively, and its output terminal is connected to the control unit 800.
[0052] In some embodiments of this application, reference is made to Figure 2The remote sampling unit 200 includes a second sampling unit 210, a second signal attenuation unit 220, and a second ADC unit 230.
[0053] The second sampling unit 210 has its input terminal connected to the power supply port of the load. The second signal attenuation unit 220 has its input terminal connected to the output terminal of the second sampling unit 210, and its output terminal connected to the non-inverting input terminal of the second comparison unit 400. The second ADC unit 230 has its input terminals connected to the output terminals of the second signal attenuation unit 220 and the non-inverting input terminals of the second comparison unit 400, respectively, and its output terminal is connected to the control unit 800.
[0054] The first sampling unit 110 is used to initially acquire the voltage at the AC power output port, obtaining the original near-end voltage signal. The first signal attenuation unit 120 attenuates the near-end voltage signal output by the first sampling unit 110, adjusting it to a voltage range that can be adapted to by the first comparison unit 300 and the first ADC unit 130, avoiding damage to subsequent circuit components due to excessively high input voltage. The first ADC unit 130 converts the attenuated analog near-end voltage signal into a digital signal and transmits the digital signal to the control unit 800 for subsequent numerical calculations and judgments. Similarly, the second sampling unit 210 is responsible for acquiring the far-end voltage signal at the load power port. The second signal attenuation unit 220 attenuates the acquired far-end voltage signal to meet the input requirements of the second comparison unit 400 and the second ADC unit 230. The second ADC unit 230 converts the attenuated analog far-end voltage signal into a digital signal and sends it to the control unit 800. Through this structural design, the near-end sampling unit 100 and the far-end sampling unit 200 can accurately and reliably sample the voltage at the AC power output terminal and the load terminal, respectively, and provide the sampling results to the control unit 800 in digital form, laying a solid data foundation for the control unit 800 to accurately determine the remote sensing sampling status.
[0055] The AC power supply according to a second aspect embodiment of this application includes the voltage acquisition circuit as described in the first aspect embodiment. Since the AC power supply employs all the technical solutions of the voltage acquisition circuit of the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments.
[0056] The voltage acquisition method according to the third aspect embodiment of this application, applied to an AC power supply as described in the second aspect embodiment above, includes: It receives the near-end voltage output by the near-end sampling unit 100, the far-end voltage output by the far-end sampling unit 200, and the abnormal comparison voltage output by the third comparison unit 600; If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is 1, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is 0, the far-end induction sampling is determined to be normal.
[0057] According to the voltage acquisition method of this application embodiment, a near-end sampling unit 100 and a far-end sampling unit 200 are set to acquire the voltages of the AC power output port and the load power port, respectively. A first comparison unit 300 and a second comparison unit 400 are used to compare the voltages of the near-end anomaly detection terminal and the far-end anomaly detection terminal with the ground voltage, respectively, to obtain square wave signals of the same frequency reflecting the near-end and far-end voltages. An XOR unit 500 performs an XOR operation on these two square wave signals. When the far-end induction sampling is normal, the output of the XOR unit 500 is a square wave with a duty cycle close to 0; when the far-end induction sampling is reversed, the output of the XOR unit 500 is a square wave with a duty cycle close to 1; and when the far-end induction sampling is disconnected, the output of the XOR unit 500 is a square wave with a duty cycle close to 50%. The third comparison unit 600 compares the output of the XOR unit 500 with a reference voltage less than half the supply voltage, and outputs an abnormal comparison voltage. When the remote sensing sampling is normal, the abnormal comparison voltage is close to 0V; when the remote sensing sampling is reversed, the abnormal comparison voltage is close to the supply voltage; and when the remote sensing sampling is disconnected, the abnormal comparison voltage is close to half the supply voltage. The control unit 800, combining the relationship between the effective value of the difference between the near-end and far-end voltages and the preset compensation voltage, as well as the state of the abnormal comparison voltage, can accurately determine whether the remote sensing sampling is abnormal when the AC power supply is outputting at low voltage. This design overcomes the shortcomings of traditional methods that rely solely on the effective value of the voltage difference, effectively avoiding misjudgments caused by the effective value of the difference being less than the preset compensation voltage when the voltage is outputting at low voltage. This reliably identifies remote sensing sampling disconnection and reverse connection situations, ensuring stable operation of the AC power supply and load safety in remote sampling mode.
[0058] Additionally, one embodiment of this application provides a control device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor and the memory can be connected via a bus or other means.
[0059] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0060] The non-transient software program and instructions required to implement the voltage acquisition method of the above embodiments are stored in the memory. When executed by the processor, the voltage acquisition method of the above embodiments is executed.
[0061] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0062] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions that are executed by a processor or controller, such as the processor of the aforementioned control device, causing the processor to perform the voltage acquisition method described in the above embodiment.
[0063] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0064] The embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of this application.
Claims
1. A voltage acquisition circuit, characterized by, Applied to an AC power supply used to power a load, the voltage acquisition circuit includes: The near-end sampling unit (100) has a near-end voltage output terminal, a near-end anomaly detection terminal, and a near-end voltage sampling terminal connected to the output port of the AC power supply; The remote sampling unit (200) has a remote voltage output terminal, a remote anomaly detection terminal, and a remote voltage sampling terminal connected to the power supply port of the load. The first comparison unit (300) has its non-inverting input connected to the near-end anomaly detection terminal and its inverting input connected to the reference ground. The second comparison unit (400) has its non-inverting input connected to the remote anomaly detection terminal and its inverting input connected to the reference ground. An XOR unit (500) is provided, wherein the first input terminal of the XOR unit (500) is connected to the output terminal of the first comparison unit (300), and the second input terminal of the XOR unit (500) is connected to the output terminal of the second comparison unit (400). The third comparison unit (600) has its non-inverting input connected to the output of the XOR unit (500) via a low-pass filter (700), and its inverting input connected to a reference voltage output circuit. The reference voltage output circuit is used to output a reference voltage, which is less than half of the supply voltage. The supply voltage is the supply voltage of the first comparison unit (300), the second comparison unit (400), and the third comparison unit (600). The control unit (800) is connected to the output terminals of the near-end voltage output terminal, the far-end voltage output terminal, and the third comparison unit (600), respectively. The control unit (800) is used to receive the near-end voltage output by the near-end sampling unit (100), the far-end voltage output by the far-end sampling unit (200), and the abnormal comparison voltage output by the third comparison unit (600). If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is high, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage and the abnormal comparison voltage is low, it is determined that the far-end sensing sampling is normal.
2. The voltage acquisition circuit according to claim 1, characterized in that, The first comparison unit (300), the second comparison unit (400) and the third comparison unit (600) all employ comparators.
3. The voltage acquisition circuit according to claim 1, characterized in that, The XOR unit (500) employs an XOR gate.
4. The voltage acquisition circuit according to claim 1, characterized in that, The reference voltage output circuit includes: A first resistor, one end of which is connected to the power supply terminal of the third comparator (600), and the other end of which is connected to the inverting input terminal of the third comparator (600); The second resistor has one end connected to the other end of the first resistor and the inverting input of the third comparator (600), and the other end connected to the reference ground.
5. The voltage acquisition circuit according to claim 1, characterized in that, The near-end sampling unit (100) includes: The first sampling unit (110) has its input terminal connected to the output port of the AC power supply. The first signal attenuation unit (120) has its input terminal connected to the output terminal of the first sampling unit (110), and its output terminal connected to the non-inverting input terminal of the first comparison unit (300). The first ADC unit (130) has its input terminal connected to the output terminal of the first signal attenuation unit (120) and the in-phase input terminal of the first comparison unit (300), respectively, and its output terminal is connected to the control unit (800).
6. The voltage acquisition circuit according to claim 1, characterized in that, The remote sampling unit (200) includes: The second sampling unit (210) has its input terminal connected to the power supply port of the load. The second signal attenuation unit (220) has its input terminal connected to the output terminal of the second sampling unit (210), and its output terminal connected to the non-inverting input terminal of the second comparison unit (400). The second ADC unit (230) has its input terminal connected to the output terminal of the second signal attenuation unit (220) and the non-inverting input terminal of the second comparison unit (400), respectively, and its output terminal is connected to the control unit (800).
7. An AC power supply, characterized in that, Includes the voltage acquisition circuit as described in any one of claims 1 to 6.
8. A voltage acquisition method, characterized in that, Applied to the AC power supply as described in claim 7, the voltage acquisition method includes: Receive the near-end voltage output by the near-end sampling unit (100), the far-end voltage output by the far-end sampling unit (200), and the abnormal comparison voltage output by the third comparison unit (600); If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is high, it is determined that the far-end sensing sampling is abnormal. If the effective value of the difference between the near-end voltage and the far-end voltage is less than the preset compensation voltage, and the abnormal comparison voltage is low, the far-end sensing sampling is determined to be normal.
9. A control device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the voltage acquisition method as described in claim 8.
10. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer-executable instructions are used to execute the voltage acquisition method as described in claim 8.