Adaptive dc input interface circuit and driving method thereof

By combining the voltage comparison module, adaptive protection module, and voltage reference module of the adaptive DC input interface circuit, adaptive identification and protection of DC power supply are achieved, solving the problems of insensitive power supply detection and high energy consumption in the prior art, and improving the safety of power supply connection process and the stability of circuit system.

CN120675398BActive Publication Date: 2026-03-31SHENZHEN TONGYUEXIN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing DC power supply detection methods cannot achieve real-time identification and dynamic response in complex power supply environments, leading to circuit damage or system restarts. They also have high energy consumption, large voltage loss, and insensitive response.

Method used

An adaptive DC input interface circuit is adopted, including a voltage comparison module, an adaptive protection module, and a voltage reference module. Through voltage regulation, voltage division, and polarity detection, adaptive identification and protection control of the DC power supply are achieved.

Benefits of technology

It improves the safety of the power supply process and the resilience of the circuit system, avoids interference or damage to downstream circuits caused by abnormal voltage, and protects the circuit system from reverse current surges caused by reverse connection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120675398B_ABST
    Figure CN120675398B_ABST
Patent Text Reader

Abstract

The application relates to an adaptive direct-current input interface circuit and a driving method thereof. The circuit comprises a voltage comparison module, an adaptive protection module and a voltage reference module. The voltage reference module performs voltage stabilization processing on a target direct-current power supply to obtain a reference direct-current power supply and transmits the reference direct-current power supply to the voltage comparison module. The voltage comparison module divides the voltage of two types of power supplies to obtain a to-be-detected voltage and a reference voltage and obtains a voltage comparison result according to the difference between the to-be-detected voltage and the reference voltage. The adaptive protection module performs polarity detection on the target direct-current power supply to obtain a power supply polarity detection result. According to the two types of results, if the target direct-current power supply is of a positive polarity and is within a voltage control range, the adaptive protection module turns on the connection between the target direct-current power supply and a subsequent circuit; if the target direct-current power supply is of the positive polarity and is not within the voltage control range, the adaptive protection module blocks the corresponding connection; and if the target direct-current power supply is of a reverse polarity, the adaptive protection module blocks the corresponding connection. The method can realize adaptive identification and protection control of a direct-current input interface under an abnormal power supply scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power management technology, and in particular to an adaptive DC input interface circuit and its driving method. Background Technology

[0002] In the field of power management technology, there is a need to detect the polarity and voltage of DC power supplies in order to achieve automated and safe power supply control.

[0003] In related DC power supply detection methods, reverse connection and overvoltage protection are usually achieved by connecting anti-reverse diodes and overvoltage protection devices in series. However, this method has disadvantages such as high energy consumption, large voltage loss and insensitive response. As a result, it is impossible to achieve real-time identification and dynamic response to power supply abnormalities in complex power supply environments, which can easily lead to problems such as damage to downstream circuits or system restart. Summary of the Invention

[0004] Therefore, it is necessary to provide an adaptive DC input interface circuit, a driving method for the adaptive DC input interface circuit, a computer device, and a storage medium to address the above-mentioned technical problems, so as to realize adaptive identification and protection control of the DC input interface under abnormal power supply scenarios.

[0005] In a first aspect, this application provides an adaptive DC input interface circuit, the circuit including a voltage comparison module, an adaptive protection module, and a voltage reference module;

[0006] The target DC power supply to be tested is connected to the first input terminal of the voltage comparison module, the input terminal of the adaptive protection module, and the input terminal of the voltage reference module, respectively. The output terminal of the voltage comparison module is connected to the controlled terminal of the adaptive protection module, the voltage reference module is connected to the second input terminal of the voltage comparison module, and the output terminal of the adaptive protection module is connected to the downstream circuit to be powered.

[0007] The voltage reference module performs voltage regulation on the target DC power supply to obtain a reference DC power supply, which is then transmitted to the voltage comparison module.

[0008] The voltage comparison module performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain the detection voltage corresponding to the target DC power supply and the reference voltage corresponding to the reference DC power supply. The voltage comparison result is obtained based on the difference between the detection voltage and the reference voltage and transmitted to the adaptive protection module.

[0009] The adaptive protection module performs polarity detection on the target DC power supply to obtain the power supply polarity detection result corresponding to the target DC power supply.

[0010] If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within the preset voltage control range, then the adaptive protection module connects the target DC power supply to the subsequent circuit.

[0011] If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the adaptive protection module blocks the connection between the target DC power supply and the subsequent circuit.

[0012] If the power polarity detection result indicates that the target DC power supply is reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.

[0013] Secondly, this application also provides a driving method for an adaptive DC input interface circuit, applied to the adaptive DC input interface circuit, the method comprising:

[0014] The voltage reference module performs voltage regulation on the target DC power supply to be detected, obtains a reference DC power supply, and transmits it to the voltage comparison module.

[0015] The voltage comparison module performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain the detection voltage corresponding to the target DC power supply and the reference voltage corresponding to the reference DC power supply. The voltage comparison result is obtained based on the difference between the detection voltage and the reference voltage and transmitted to the adaptive protection module.

[0016] The adaptive protection module performs polarity detection on the target DC power supply to obtain the power supply polarity detection result corresponding to the target DC power supply.

[0017] If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within the preset voltage control range, then the adaptive protection module connects the target DC power supply to the subsequent circuit.

[0018] If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the adaptive protection module blocks the connection between the target DC power supply and the subsequent circuit.

[0019] If the power polarity detection result indicates that the target DC power supply is reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.

[0020] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the above steps.

[0021] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the above steps.

[0022] The aforementioned adaptive DC input interface circuit, its driving method, computer equipment, and storage medium firstly, regulate the target DC power supply using a voltage reference module to obtain a stable reference DC power supply for subsequent voltage comparison, ensuring the reliability of the comparison reference. Secondly, the voltage comparison module performs voltage division processing on the target DC power supply and the reference DC power supply respectively, compressing them into a comparable range, and generating an accurate voltage comparison result through difference analysis to determine the controllability of the power supply voltage. Thirdly, the adaptive protection module performs polarity detection on the target DC power supply to obtain the power supply polarity detection result to determine the electrical connection safety. On the one hand, based on the circuit characteristics of conducting the power supply connection under positive polarity and voltage compliance conditions, automatic judgment and safe release of power supply access are achieved. On the other hand, based on the circuit characteristics of blocking the power supply connection under positive polarity but abnormal voltage conditions, interference or damage to downstream circuits caused by abnormal voltage is avoided. Furthermore, based on the circuit characteristics of directly blocking the power supply connection under reverse polarity conditions, the circuit system is protected from reverse current impact caused by reverse power connection. Based on this, through the dual judgment mechanism of power supply voltage amplitude and power supply polarity state, adaptive identification and protection control of DC input interface under abnormal power supply scenarios are realized, improving the safety of power supply access process and the risk resistance of circuit system. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a block diagram of the adaptive DC input interface circuit in one embodiment;

[0025] Figure 2 This is a schematic diagram of the adaptive DC input interface circuit in one embodiment;

[0026] Figure 3This is a schematic diagram of the voltage reference module in an adaptive DC input interface circuit in one embodiment.

[0027] Figure 4 This is a flowchart illustrating the driving method of an adaptive DC input interface circuit in one embodiment. Detailed Implementation

[0028] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0029] In one exemplary embodiment, such as Figure 1 As shown, an adaptive DC input interface circuit is provided, which includes a voltage comparison module 101, an adaptive protection module 102, and a voltage reference module 103.

[0030] The target DC power supply 104 to be tested is connected to the first input terminal of the voltage comparison module 101, the input terminal of the adaptive protection module 102, and the input terminal of the voltage reference module 103, respectively. The output terminal of the voltage comparison module 101 is connected to the controlled terminal of the adaptive protection module 102, the voltage reference module 103 is connected to the second input terminal of the voltage comparison module 101, and the output terminal of the adaptive protection module 102 is connected to the downstream circuit 105 to be powered.

[0031] Among them, the adaptive DC input interface circuit represents an interface circuit structure for DC power input scenarios. It can dynamically determine whether the external DC power supply meets the power supply requirements based on the voltage and polarity of the external DC power supply, and control whether the DC power supply is turned on to the downstream load accordingly, so as to realize automatic identification of the input power supply and power supply safety control.

[0032] Among them, the voltage comparison module 101 represents a voltage difference detection structure used to compare the voltage of the input target DC power supply 104 with a preset reference voltage, so as to determine whether the voltage of the target DC power supply 104 is within a safe power supply range.

[0033] The adaptive protection module 102 is a power path control structure that dynamically controls whether the target DC power supply 104 is connected to the subsequent circuit 105 based on the voltage comparison information output by the voltage comparison module 101 and the power polarity information detected by itself. This is used to avoid damage to the subsequent circuit 105 caused by excessively high voltage, excessively low voltage, or reverse polarity.

[0034] The voltage reference module 103 represents a reference voltage regulator structure for generating a stable reference voltage from the target DC power supply 104, thereby providing a consistent and predictable reference voltage signal for the voltage comparison module 101.

[0035] The target DC power supply 104 refers to the external DC power supply signal source connected to the input terminal of the adaptive DC input interface circuit, which is used to provide operating voltage for the entire circuit system or the subsequent circuit 105.

[0036] Among them, the subsequent circuit 105 represents a functional load circuit powered by a DC power supply connected to the output terminal of the adaptive DC input interface circuit, which is used to perform the actual functions of the circuit system.

[0037] For example, the voltage reference module 103 performs voltage regulation on the target DC power supply 104 to obtain a reference DC power supply 106, which is then transmitted to the voltage comparison module 101. The reference DC power supply 106 represents a reference voltage signal with a stable voltage value, minimal fluctuations, and a known level, obtained after the input target DC power supply 104 has been regulated by the voltage reference module 103. This reference signal provides a voltage judgment benchmark for the voltage comparison module 101, determining whether the voltage of the target DC power supply 104 falls within a set safe range.

[0038] Furthermore, on the one hand, the voltage comparison module 101 performs voltage division processing on the target DC power supply 104 and the reference DC power supply 106 respectively to obtain the detection voltage corresponding to the target DC power supply 104 and the reference voltage corresponding to the reference DC power supply 106. The voltage comparison result is obtained based on the difference between the detection voltage and the reference voltage and transmitted to the adaptive protection module 102.

[0039] Wherein, the voltage to be detected represents the voltage value obtained after voltage division processing of the target DC power supply 104, and the reference voltage represents the voltage value obtained after voltage division processing of the reference DC power supply 106, so as to reduce the voltage values ​​of the target DC power supply 104 and the reference DC power supply 106 to the acceptable operating voltage range of the voltage comparator, thereby realizing a safe and accurate voltage comparison process; wherein, the voltage comparison result represents the voltage comparison information output by the voltage comparison module 101 according to the numerical relationship between the voltage to be detected and the reference voltage, and is represented by a digital signal or level status, so as to determine whether the voltage of the target DC power supply 104 falls within the set safe range.

[0040] On the other hand, the adaptive protection module 102 performs polarity detection on the target DC power supply 104 to obtain the power supply polarity detection result corresponding to the target DC power supply 104; wherein, the power supply polarity detection result represents the power supply polarity information obtained by the adaptive protection module 102 after judging the positive and negative connection method of the input target DC power supply 104, so as to determine whether the positive and negative terminals of the target DC power supply 104 are connected correctly.

[0041] Optionally, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, then the adaptive protection module 102 connects the target DC power supply 104 to the subsequent circuit 105.

[0042] Optionally, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is not within the preset voltage control range, then the adaptive protection module 102 blocks the connection between the target DC power supply 104 and the subsequent circuit 105.

[0043] Optionally, if the power polarity detection result indicates that the target DC power supply 104 is reverse polarity, the adaptive protection module 102 directly blocks the connection between the target DC power supply 104 and the subsequent circuit 105.

[0044] Wherein, if the target DC power supply 104 is positive polarity, it means that the connection direction of the target DC power supply 104 conforms to the expected current flow direction, and if the target DC power supply 104 is reverse polarity, it means that the connection direction of the target DC power supply 104 does not conform to the expected current flow direction; the preset voltage control range represents the range between the upper and lower limits of the voltage of the target DC power supply 104 that is preset to allow.

[0045] In this embodiment, firstly, the target DC power supply is regulated by the voltage reference module to obtain a stable reference DC power supply for subsequent voltage comparison, ensuring the reliability of the comparison benchmark. Secondly, the target DC power supply and the reference DC power supply are divided by the voltage comparison module to compress them into a comparable range, and an accurate voltage comparison result is generated through difference analysis to determine the controllability of the power supply voltage. Thirdly, the polarity of the target DC power supply is detected by the adaptive protection module to obtain the power supply polarity detection result to determine the electrical connection safety. On the one hand, based on the conditions of positive polarity and voltage compliance... The circuit characteristics of the power supply connection are used to automatically judge and safely allow power supply access. On the other hand, based on the circuit characteristics of blocking the power supply connection under positive polarity but abnormal voltage conditions, the interference or damage of abnormal voltage to downstream circuits is avoided. Furthermore, based on the circuit characteristics of directly blocking the power supply connection under reverse polarity conditions, the circuit system is protected from reverse current impact caused by reverse power connection. Based on this, through the dual judgment mechanism of power supply voltage amplitude and power supply polarity state, adaptive identification and protection control of DC input interface under abnormal power supply scenarios are realized, improving the safety of power supply access process and the risk resistance of circuit system.

[0046] In an exemplary embodiment, the voltage comparison module 101 includes a first voltage comparison unit and a second voltage comparison unit; wherein, the target DC power supply 104 is respectively connected to the first input terminal of the first voltage comparison unit and the first input terminal of the second voltage comparison unit, the voltage reference module 103 is respectively connected to the second input terminal of the first voltage comparison unit and the second input terminal of the second voltage comparison unit, and the output terminals of the first voltage comparison unit and the second voltage comparison unit are respectively connected to the controlled terminal of the adaptive protection module 102.

[0047] For example, on one hand, the first voltage comparison unit performs voltage division processing on the target DC power supply 104 and the reference DC power supply 106 respectively to obtain the first detection voltage corresponding to the target DC power supply 104 and the first reference voltage corresponding to the reference DC power supply 106, and obtains the first voltage comparison result based on the difference between the first detection voltage and the first reference voltage.

[0048] On the other hand, the second voltage comparison unit performs voltage division processing on the target DC power supply 104 and the reference DC power supply 106 respectively to obtain the second detection voltage corresponding to the target DC power supply 104 and the second reference voltage corresponding to the reference DC power supply 106, and obtains the second voltage comparison result based on the difference between the second detection voltage and the second reference voltage.

[0049] Furthermore, by combining the first voltage comparison result and the second voltage comparison result, a voltage comparison result is obtained and transmitted to the adaptive protection module. The first reference voltage is less than the second reference voltage. The first voltage comparison result represents the undervoltage comparison result, and the second voltage comparison result represents the overvoltage comparison result.

[0050] Wherein, the first voltage to be detected represents the voltage value obtained by the target DC power supply 104 after voltage division processing by the first voltage comparison unit, and the second voltage to be detected represents the voltage value obtained by the target DC power supply 104 after voltage division processing by the second voltage comparison unit; the first voltage to be detected and the second voltage to be detected can be set to the same, similar or different values ​​according to factors such as the configuration of the voltage divider structure, detection accuracy, functional differentiation requirements, etc., so as to meet the actual voltage detection requirements.

[0051] The first reference voltage represents the voltage value obtained after the reference DC power supply is divided by the first voltage comparison unit, and is used as a comparison standard for undervoltage judgment. The second reference voltage represents the voltage value obtained after the reference DC power supply is divided by the second voltage comparison unit, and is used as a comparison standard for overvoltage judgment. The first reference voltage is less than the second reference voltage, which means that the first reference voltage is used as the lower limit judgment benchmark and the second reference voltage is used as the upper limit judgment benchmark. The values ​​of the first reference voltage and the second reference voltage can be set according to factors such as the rated operating voltage range of the circuit, the circuit's tolerance to undervoltage and overvoltage, and the input voltage range of the voltage comparator, so as to meet the actual voltage detection requirements.

[0052] The first voltage comparison result represents the level judgment signal output by the first voltage comparison unit after comparing the first voltage to be detected with the first reference voltage, which is used to reflect whether the first voltage to be detected is lower than the lower threshold set by the first reference voltage; the second voltage comparison result represents the level judgment signal output by the second voltage comparison unit after comparing the second voltage to be detected with the second reference voltage, which is used to reflect whether the second voltage to be detected is higher than the upper threshold set by the second reference voltage; based on the threshold comparison results corresponding to the first voltage to be detected and the second voltage to be detected, it can be reflected whether the voltage of the target DC power supply 104 is within the preset voltage control range.

[0053] In this embodiment, on the one hand, the first voltage comparison unit performs voltage division processing on the target DC power supply and the reference DC power supply respectively and compares them to obtain the first voltage comparison result, thereby realizing the judgment of whether the input voltage is lower than the lower threshold. On the other hand, the second voltage comparison unit performs voltage division processing on the target DC power supply and the reference DC power supply respectively and compares them to obtain the second voltage comparison result, thereby realizing the judgment of whether the input voltage exceeds the upper threshold. Furthermore, the first voltage comparison result and the second voltage comparison result are combined to obtain the voltage comparison result, thereby realizing the comprehensive judgment of the input voltage magnitude and forming a unified control basis. Based on this, the separate upper and lower limit voltage comparison structure realizes the accurate identification of dual thresholds for undervoltage and overvoltage, enhancing the fine control capability and response reliability of power input detection.

[0054] In one exemplary embodiment, such as Figure 2 As shown, the first voltage comparison unit includes a first voltage comparator U1, a first reference voltage divider structure, and a first dynamic voltage divider structure, and the second voltage comparison unit includes a second voltage comparator U2, a second reference voltage divider structure, and a second dynamic voltage divider structure.

[0055] The target DC power supply 104 is connected to the negative input terminal of the first voltage comparator U1 through the first dynamic voltage divider structure, the reference DC power supply 106 is connected to the positive input terminal of the first voltage comparator U1 through the first reference voltage divider structure, and the output terminal of the first voltage comparator U1 is connected to the adaptive protection module 102.

[0056] The target DC power supply 104 is connected to the negative input terminal of the second voltage comparator U2 through the second dynamic voltage divider structure, the reference DC power supply 106 is connected to the positive input terminal of the second voltage comparator U2 through the second reference voltage divider structure, and the output terminal of the second voltage comparator U2 is connected to the adaptive protection module 102.

[0057] For example, on one hand, the first dynamic voltage divider structure and the second dynamic voltage divider structure perform dynamic voltage division processing on the target DC power supply 104 to obtain the first detection voltage and the second detection voltage corresponding to the target DC power supply 104. The first voltage comparator U1 compares the first detection voltage with the first reference voltage. When the first detection voltage is less than the first reference voltage, the output signal is a high-level signal, and when the first detection voltage is greater than the first reference voltage, the output signal is a low-level signal. The output signal is used as the first voltage comparison result and transmitted to the adaptive protection module 102.

[0058] On the other hand, the first reference voltage divider structure and the second reference voltage divider structure respectively divide the reference DC power supply 106 to obtain the first reference voltage and the second reference voltage corresponding to the reference DC power supply 106. The second voltage comparator U2 compares the second voltage to be detected with the second reference voltage. When the second voltage to be detected is less than the second reference voltage, the output signal is a high-level signal; when the second voltage to be detected is greater than the second reference voltage, the output signal is a low-level signal. The output signal is used as the second voltage comparison result and transmitted to the adaptive protection module 102.

[0059] Wherein, the first voltage comparator U1 represents a comparator device unit that compares the voltage amplitude of the first voltage to be detected with the first reference voltage, and the first voltage comparator U2 represents a comparator device unit that compares the voltage amplitude of the second voltage to be detected with the second reference voltage.

[0060] The first dynamic voltage divider structure and the second dynamic voltage divider structure are used to dynamically scale the voltage of the target DC power supply 104 to the voltage to be detected suitable for the input terminal of the voltage comparator according to a variable ratio; the first reference voltage divider structure and the second reference voltage divider structure are used to scale the voltage of the reference DC power supply 106 to the reference voltage suitable for the input terminal of the voltage comparator according to a fixed ratio.

[0061] Specifically, for example Figure 2 As shown, the first reference voltage divider structure includes a first resistor R1 and a second resistor R2, and the first dynamic voltage divider structure includes a third resistor R3, a fourth resistor R4, and a first potentiometer VR1. The input terminal of the first resistor R1 is connected to Vcc (i.e., the reference DC power supply 106), and its output terminal is connected to the input terminal of the second resistor R2 and the non-inverting input terminal of the first voltage comparator U1. The output terminal of the second resistor R2 is grounded. The input terminal of the third resistor R3 is connected to Vin (i.e., the target DC power supply 104), and its output terminal is connected to the input terminal of the fourth resistor R4 and the fixed terminal of the first potentiometer VR1. The output terminal of the fourth resistor R4 is connected to the inverting input terminal of the first voltage comparator U1, and the sliding terminal of the first potentiometer VR1 is connected to the output terminal of the second resistor R2 and grounded.

[0062] The second reference voltage divider structure includes a fifth resistor R5 and a sixth resistor R6, while the second dynamic voltage divider structure includes a seventh resistor R7, an eighth resistor R8, and a second potentiometer VR2. The input of the fifth resistor R5 is connected to Vcc, and its output is connected to the input of the sixth resistor R6 and the non-inverting input of the second voltage comparator U2. The output of the second resistor R2 is grounded. The input of the seventh resistor R7 is connected to Vin, and its output is connected to the input of the eighth resistor R8 and the fixed terminal of the second potentiometer VR2. The output of the eighth resistor R8 is connected to the inverting input of the second voltage comparator U2, and the sliding terminal of the second potentiometer VR2 is connected to the output of the sixth resistor R6 and grounded. Furthermore, Vcc supplies power to the first voltage comparator U1 and the second voltage comparator U2 (not shown).

[0063] Among them, the first resistor R1 and the second resistor R2 are used to construct a reference voltage divider network with a fixed ratio to step down Vcc to generate a stable first reference voltage and input it to the non-inverting input terminal of the first voltage comparator U1; the first potentiometer VR1 represents an adjustable voltage divider element; the third resistor R3, the fourth resistor R4 and the first potentiometer VR1 are used to construct a dynamic voltage divider network with an adjustable ratio to convert the voltage of Vin into the first voltage to be detected according to a dynamically set ratio and input it to the inverting input terminal of the first voltage comparator U1.

[0064] Among them, the fifth resistor R5 and the sixth resistor R6 are used to construct a fixed-ratio reference voltage divider network to step down Vcc to generate a stable second reference voltage and input it to the non-inverting input terminal of the second voltage comparator U2; the second potentiometer VR2 represents an adjustable voltage divider element, and the seventh resistor R7, the eighth resistor R8 and the second potentiometer VR2 are used to construct an adjustable-ratio dynamic voltage divider network to convert the voltage of Vin into a second voltage to be detected according to a dynamically set ratio and input it to the inverting input terminal of the second voltage comparator U2.

[0065] In this embodiment, firstly, the target DC power supply is dynamically divided according to the first and second dynamic voltage divider structures, thereby making the voltage to be detected adjustable and matched. The voltage division ratio can be flexibly set according to the voltage of the target DC power supply, ensuring that the voltage division output is within the linear operating range that the voltage comparator can recognize. This avoids the situation where the voltage comparator input is saturated due to excessively high voltage or insufficient sensitivity due to excessively low voltage, thus improving the adaptability and judgment accuracy of the voltage to be detected. Secondly, two stable reference voltages corresponding to the undervoltage and overvoltage judgment benchmarks are generated according to the first and second reference voltage divider structures, respectively, thereby constructing the upper and lower limit boundaries of voltage comparison and improving the discrimination capability of comparison judgment. Thirdly, the corresponding voltage to be detected and the reference voltage are compared using two voltage comparators respectively, and the corresponding voltage comparison results are output. Based on this, by introducing a dynamic voltage divider structure with adjustable and proportional controllable properties, the input voltage can be dynamically adjusted to achieve effective mapping and accurate judgment, improving the versatility, scalability, and flexibility of the voltage comparison module to adapt to different input conditions.

[0066] In one exemplary embodiment, the adaptive protection module 102 includes a first conduction control component and a second conduction control component.

[0067] The controlled terminal of the first conduction control component is connected to the output terminal of the voltage comparison module 101, the control terminal of the first conduction control component is connected to the controlled terminal of the second conduction control component, the input terminal of the second conduction control component is connected to the target DC power supply 104, and the output terminal of the second conduction control component is connected to the subsequent circuit 105.

[0068] The first conduction control component refers to the slave switching device used to control the switching state of the second conduction control component according to the voltage comparison result. That is, when the target DC power supply 104 is in positive polarity, it judges whether the voltage of the target DC power supply 104 is within the voltage control range and decides whether to allow the subsequent power supply.

[0069] The second conduction control component refers to the main switching device used to directly control the electrical connection between the target DC power supply 104 and the subsequent circuit 105. That is, the subsequent circuit is allowed to supply power when the target DC power supply 104 is positive polarity and the voltage is within the voltage control range, and the subsequent circuit is disconnected when either condition is not met.

[0070] On the one hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, then the first conduction control component is in the conduction state to control the second conduction control component to conduct the connection between the target DC power supply 104 and the subsequent circuit 105.

[0071] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is not within the preset voltage control range, then the first conduction control component is in the blocking state to control the second conduction control component to block the connection between the target DC power supply 104 and the subsequent circuit 105.

[0072] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is reverse polarity, the second conduction control component is in a blocking state to block the connection between the target DC power supply 104 and the subsequent circuit 105.

[0073] In this embodiment, firstly, based on the circuit characteristic of the first conduction control component controlling the second conduction control component to conduct when the target DC power supply is of positive polarity and the voltage is within the voltage control range, it ensures that a power supply path is established only when the input power supply meets the power supply conditions, avoiding mis-conduction. Secondly, based on the circuit characteristic of the first conduction control component controlling the second conduction control component to block when the voltage of the target DC power supply is not within the voltage control range, it prevents the risk of impact on subsequent circuits under abnormal voltage conditions. Thirdly, based on the circuit characteristic of the second conduction control component directly blocking the power supply when the target DC power supply is of reverse polarity, it achieves a rapid disconnection response when the polarity is abnormal. Based on this, by setting a conduction control component with a hierarchical control structure, corresponding to the combination logic of voltage amplitude state and power supply polarity state respectively, it realizes accurate identification and automatic disconnection of abnormal power supply conditions, enhancing the safety, reliability and operational stability of the circuit.

[0074] In one exemplary embodiment, such as Figure 2 As shown, the first conduction control component includes a first NPN transistor Q1 and a second NPN transistor Q2.

[0075] In this configuration, the base of the first NPN transistor Q1 is connected to the output of the first voltage comparator unit, the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 is connected to the output of the second voltage comparator unit and the base of the second NPN transistor Q2, the emitter of the second NPN transistor Q2 is grounded, and the collector of the second NPN transistor Q2 is connected to the controlled terminal of the second conduction control component.

[0076] For example, on the one hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, then the output signal of the first voltage comparison unit is a low-level signal and the output signal of the second voltage comparison unit is a high-level signal, causing the first NPN transistor Q1 to be in the conducting state, so as to drive the second NPN transistor Q2 to be in the conducting state to control the second conduction control component to conduct the connection between the target DC power supply 104 and the subsequent circuit 105.

[0077] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is not within the preset voltage control range, then the situation where the output signal of the first voltage comparison unit is a low-level signal and the output signal of the second voltage comparison unit is a high-level signal does not occur, causing the first NPN transistor Q1 to be in a blocking state, thereby driving the second NPN transistor Q2 to be in a blocking state to control the second conduction control component to block the connection between the target DC power supply 104 and the subsequent circuit 105.

[0078] In one exemplary embodiment, for example... Figure 2 As shown, the second conduction control component includes a first P-type MOSFET Q3 and a second P-type MOSFET Q4.

[0079] The gate of the first P-type MOSFET Q3 is connected to the control terminal of the first conduction control component and to the target DC power supply 104 through a preset resistor. The source of the first P-type MOSFET Q3 is connected to the target DC power supply 104. The drain of the first P-type MOSFET Q3 is connected to the drain of the second P-type MOSFET Q4. The gate of the second P-type MOSFET Q4 is grounded through a preset resistor. The source of the second P-type MOSFET Q4 is connected to the subsequent circuit 105.

[0080] For example, on the one hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, then the first conduction control component controls the first P-type MOSFET Q3 to be in the conduction state, so that the second P-type MOSFET Q4 is in the conduction state, so as to connect the target DC power supply 104 and the subsequent circuit 105.

[0081] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is not within the preset voltage control range, then the first conduction control component controls the first P-type MOSFET Q3 to be in a blocking state, so that the second P-type MOSFET Q4 is in a blocking state, thereby blocking the connection between the target DC power supply 104 and the subsequent circuit 105.

[0082] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is reverse polarity, then the first P-type MOSFET Q3 is in a blocking state, which causes the second P-type MOSFET Q4 to be in a blocking state, thereby blocking the connection between the target DC power supply 104 and the subsequent circuit 105.

[0083] In one exemplary embodiment, for example... Figure 2 As shown, the first conduction control component further includes a first diode D1, a second diode D2, a ninth resistor R9, a tenth resistor R10, and an eleventh resistor R11; the second conduction control component further includes a third diode D3, a fourth diode D4, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, a twelfth resistor R12, a thirteenth resistor R13, a fourteenth resistor R14, a fifteenth resistor R15, and a sixteenth resistor R16.

[0084] Specifically, the base of the first NPN transistor Q1 is connected to the output of the first voltage comparator U1 through a forward-biased first diode D1, and the base of the first NPN transistor Q1 is grounded through the ninth resistor R9; the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 is connected to the base of the second NPN transistor Q2 and is connected to the output of the second voltage comparator U2 through a forward-biased second diode D2; the base of the second NPN transistor Q2 is grounded through the tenth resistor R10, the emitter of the second NPN transistor Q2 is grounded, and the collector of the second NPN transistor Q2 is connected to the gate of the first P-type MOSFET Q3 through the eleventh resistor R11.

[0085] Among them, the first diode D1 and the second diode D2 are used to prevent reverse current from flowing into the output terminal of the voltage comparator to ensure the working stability of the voltage comparator; the ninth resistor R9 and the tenth resistor R10 are used to provide pull-down resistors for the base of the corresponding NPN transistor; the eleventh resistor R11 is used to provide current limiting resistors for the second NPN transistor Q2.

[0086] Specifically, the reverse-biased third diode D3, the first capacitor C1, and the twelfth resistor R12 are connected in parallel. One end of this parallel structure is connected to the gate of the first P-type MOSFET Q3, and the other end is connected to the source of the first P-type MOSFET Q3 and Vin, respectively. Vin is the target DC power supply connected to the circuit input terminal DC1. The circuit input terminal DC1 is connected to the circuit output terminal DC2 in sequence through the second capacitor C2, the thirteenth resistor R13, the third capacitor C3, and the fourteenth resistor R14. The circuit output... Terminal DC2 is used to connect to the subsequent circuit 105; the output terminal of the thirteenth resistor R13 is connected to the drain of the first P-type MOSFET Q3 and the drain of the second P-type MOSFET Q4, respectively, and the source of the second P-type MOSFET Q4 is connected to the circuit output terminal DC2; the fifteenth resistor R15, the fourth capacitor C4, and the reverse-biased fourth diode D4 are connected in parallel, one end of which is connected to the circuit output terminal DC2, and the other end is connected to the gate of the second P-type MOSFET Q4 and grounded through the sixteenth resistor R16.

[0087] The parallel structure consisting of the third diode D3, the first capacitor C1, and the twelfth resistor R12 is used to provide high bias, discharge charge, and filter high-frequency interference for the gate of the first P-type MOSFET Q3. The parallel structure consisting of the fifteenth resistor R15, the fourth capacitor C4, and the fourth diode D4 is used to provide high bias, discharge charge, and filter high-frequency interference for the gate of the second P-type MOSFET Q4. The structure consisting of the second capacitor C2 and the thirteenth resistor R13 is used for primary filtering and current limiting of the input path. The structure consisting of the third capacitor C3 and the fourteenth resistor R14 is used for buffering and voltage equalization control of the output path. The sixteenth resistor R16 is used to provide a pull-down resistor for the gate of the second P-type MOSFET Q4.

[0088] For example, such as Figure 2 As shown, if the first voltage comparator U1 determines that the first voltage to be detected is greater than the first reference voltage, it means that the first voltage to be detected is greater than the set lower voltage threshold and there is no undervoltage problem. Therefore, the first voltage comparator U1 outputs a low-level signal. If the first voltage comparator U1 determines that the first voltage to be detected is less than the first reference voltage, it means that the first voltage to be detected is less than the set lower voltage threshold and there is an undervoltage problem. Therefore, the first voltage comparator U1 outputs a high-level signal.

[0089] If the second voltage comparator U2 determines that the second voltage to be detected is less than the second reference voltage, it means that the second voltage to be detected is less than the set upper voltage threshold and there is no overvoltage problem. Therefore, the second voltage comparator U2 outputs a high-level signal. If the second voltage comparator U2 determines that the second voltage to be detected is greater than the second reference voltage, it means that the second voltage to be detected is greater than the set upper voltage threshold and there is an overvoltage problem. Therefore, the second voltage comparator U2 outputs a low-level signal.

[0090] At this time, the output signals of the first voltage comparator U1 and the second voltage comparator U2 can be combined in three ways: the first voltage comparator U1 outputs a high-level signal and the second voltage comparator U2 outputs a high-level signal, that is, the voltage of the target DC power supply 104 is less than the preset voltage control range; the first voltage comparator U1 outputs a low-level signal and the second voltage comparator U2 outputs a high-level signal, that is, the voltage of the target DC power supply 104 is within the preset voltage control range; the first voltage comparator U1 outputs a low-level signal and the second voltage comparator U2 outputs a low-level signal, that is, the voltage of the target DC power supply 104 is greater than the preset voltage control range.

[0091] On the one hand, when the first voltage comparator U1 outputs a high-level signal and the second voltage comparator U2 outputs a high-level signal, the base voltage of the first NPN transistor Q1 increases, causing the first NPN transistor Q1 to be in the conducting state because its base voltage is greater than the corresponding threshold voltage. This, in turn, pulls down the base voltage of the second NPN transistor Q2, causing the second NPN transistor Q2 to be in the blocking state because its base voltage is less than the corresponding threshold voltage.

[0092] On the other hand, when the first voltage comparator U1 outputs a low-level signal and the second voltage comparator U2 outputs a high-level signal, the base voltage of the first NPN transistor Q1 decreases, causing the first NPN transistor Q1 to be in a blocking state because its base voltage is less than the corresponding threshold voltage. This increases the base voltage of the second NPN transistor Q2, causing the second NPN transistor Q2 to be in a conducting state because its base voltage is greater than the corresponding threshold voltage.

[0093] On the other hand, when the first voltage comparator U1 outputs a low-level signal and the second voltage comparator U2 outputs a low-level signal, the base voltage of the first NPN transistor Q1 increases, causing the first NPN transistor Q1 to be in the conducting state because its base voltage is greater than the corresponding threshold voltage. This, in turn, pulls down the base voltage of the second NPN transistor Q2, causing the second NPN transistor Q2 to be in the blocking state because its base voltage is less than the corresponding threshold voltage.

[0094] Therefore, when the first voltage comparator U1 outputs a low-level signal and the second voltage comparator U2 outputs a high-level signal, the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range. Consequently, the second NPN transistor Q2 is in the conducting state, which pulls down the gate voltage of the first P-type MOSFET Q3. With Vin in the positive polarity, the first P-type MOSFET Q3 is in the conducting state because its gate-source voltage is less than the corresponding threshold voltage. When the first P-type MOSFET Q3 is in the conducting state, the drain voltage and source voltage of the second P-type MOSFET Q4 are increased, causing the second P-type MOSFET Q4 to be in the conducting state because its gate-source voltage is less than the corresponding threshold voltage. This allows the circuit input terminal DC1 and the circuit output terminal DC2 to establish an electrical connection through the first P-type MOSFET Q3 and the second P-type MOSFET Q4, thereby realizing the connection between the target DC power supply 104 and the subsequent circuit 105.

[0095] Furthermore, when Vin is in reverse polarity, the source voltage of the first P-type MOSFET Q3 is pulled low, causing Q3 to be in a blocking state because its gate-source voltage exceeds the corresponding threshold voltage. Similarly, the source voltage of the second P-type MOSFET Q4 is pulled low, causing Q4 to be in a blocking state because its gate-source voltage exceeds the corresponding threshold voltage. This disconnects the electrical connection between the circuit input terminal DC1 and the circuit output terminal DC2, effectively blocking the connection between the target DC power supply 104 and the subsequent circuit 105. Moreover, after the input polarity is corrected, both the first P-type MOSFET Q3 and the second P-type MOSFET Q4 are turned on again without manual intervention.

[0096] In one exemplary embodiment, such as Figure 3 As shown, the voltage reference module includes a voltage regulator U3, an input protection structure, an input stage filter structure, and an output stage filter structure.

[0097] The input terminal of voltage regulator U3 is connected to the target DC power supply 104 through the input protection structure. One end of the input stage filter structure is connected to the input terminal of voltage regulator U3, and the other end of the input stage filter structure is grounded. One end of the output stage filter structure is connected to the output terminal of voltage regulator U3, and the other end of the output stage filter structure is grounded.

[0098] For example, the input protection structure and the input stage filtering structure perform reverse connection protection, current limiting protection and filtering on the target DC power supply 104 to obtain the input voltage signal; the voltage regulator U3 performs voltage regulation on the input voltage signal to obtain the output voltage signal; and the output stage filtering structure performs filtering on the output voltage signal to obtain the reference DC power supply.

[0099] Furthermore, for example Figure 3As shown, the input protection structure includes the fifth diode D5, the seventeenth resistor R17, and the eighteenth resistor R18; the input stage filtering structure includes the fifth capacitor C5; and the output stage filtering structure includes the sixth capacitor C6 and the seventh capacitor C7.

[0100] Vin is connected sequentially to the input terminal of voltage regulator U3 through the forward-biased fifth diode D5, the seventeenth resistor R17, and the eighteenth resistor R18. The output terminal of voltage regulator U3 outputs Vcc. One end of the fifth capacitor C5 is connected to the input terminal of voltage regulator U3, and the other end is grounded. One end of the connection between the sixth capacitor C6 and the seventh capacitor C7 is connected to the output terminal of voltage regulator U3, and the other end is grounded. The ground terminal of voltage regulator U3 is grounded.

[0101] Among them, the fifth diode D5 is used to provide current-limiting reverse connection protection; the seventeenth resistor R17 is used to provide current-limiting protection resistor; the structure composed of the eighteenth resistor R18 and the fifth capacitor C5 is used to form a low-pass filter network to improve the input voltage waveform; the structure composed of the sixth capacitor C6 and the seventh capacitor C7 is used to expand the frequency band of the output filter to improve the output voltage waveform.

[0102] In this embodiment, firstly, by combining the input protection structure and the input stage filtering structure, reverse connection protection, current limiting protection, and filtering are performed on the target DC power supply to adaptively obtain an optimized input voltage signal. Secondly, the input voltage signal is regulated by a voltage regulator to adaptively obtain an output voltage signal with a stable voltage amplitude. Thirdly, the output voltage signal is filtered by the output stage filtering structure to further reduce the minor voltage fluctuations introduced by the dynamic adjustment of the voltage regulator and output a reference DC power supply with smoother ripple. Based on this, a continuous processing link from input protection and dynamic voltage regulation to output purification of the target DC power supply is realized through multi-stage structural combination, thereby providing a reference voltage reference with anti-interference capability.

[0103] Each module in the aforementioned adaptive DC input interface circuit can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0104] Based on the same inventive concept, this application also provides a related driving method applied to the adaptive DC input interface circuit mentioned above. The solution provided by this method is similar to the implementation described in the circuit above. Therefore, the specific limitations of the driving method embodiments for one or more adaptive DC input interface circuits provided below can be found in the limitations of the adaptive DC input interface circuit described above, and will not be repeated here.

[0105] In one exemplary embodiment, such as Figure 4 As shown, a driving method for an adaptive DC input interface circuit is provided. This method is applied to the adaptive DC input interface circuit in any of the above embodiments and includes the following steps S101 to S106.

[0106] In step S101, the voltage reference module performs voltage regulation on the target DC power supply to obtain a reference DC power supply, which is then transmitted to the voltage comparison module.

[0107] In step S102, the voltage comparison module performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain the detection voltage corresponding to the target DC power supply and the reference voltage corresponding to the reference DC power supply. The voltage comparison result is obtained based on the difference between the detection voltage and the reference voltage and transmitted to the adaptive protection module.

[0108] Step S103: The adaptive protection module performs polarity detection on the target DC power supply and obtains the power supply polarity detection result corresponding to the target DC power supply.

[0109] Step S104: If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within the preset voltage control range, then the adaptive protection module connects the target DC power supply to the subsequent circuit.

[0110] Step S105: If the power polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the adaptive protection module blocks the connection between the target DC power supply and the subsequent circuit.

[0111] Step S106: If the power polarity detection result indicates that the target DC power supply is reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.

[0112] In an exemplary embodiment, a first voltage comparison unit performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain a first detection voltage corresponding to the target DC power supply and a first reference voltage corresponding to the reference DC power supply. A first voltage comparison result is obtained based on the difference between the first detection voltage and the first reference voltage. A second voltage comparison unit performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain a second detection voltage corresponding to the target DC power supply and a second reference voltage corresponding to the reference DC power supply. A second voltage comparison result is obtained based on the difference between the second detection voltage and the second reference voltage. Combining the first voltage comparison result and the second voltage comparison result, a voltage comparison result is obtained and transmitted to the adaptive protection module. The first reference voltage is less than the second reference voltage. The first voltage comparison result represents the undervoltage comparison result, and the second voltage comparison result represents the overvoltage comparison result.

[0113] In an exemplary embodiment, the first dynamic voltage divider structure and the second dynamic voltage divider structure perform dynamic voltage division processing on the target DC power supply to obtain a first detection voltage and a second detection voltage corresponding to the target DC power supply. The first reference voltage divider structure and the second reference voltage divider structure perform voltage division processing on the reference DC power supply to obtain a first reference voltage and a second reference voltage corresponding to the reference DC power supply. The first voltage comparator compares the first detection voltage with the first reference voltage. When the first detection voltage is less than the first reference voltage, the output signal is a high-level signal, and when the first detection voltage is greater than the first reference voltage, the output signal is a low-level signal. The output signal is used as the first voltage comparison result and transmitted to the adaptive protection module. The second voltage comparator compares the second detection voltage with the second reference voltage. When the second detection voltage is less than the second reference voltage, the output signal is a high-level signal, and when the second detection voltage is greater than the second reference voltage, the output signal is a low-level signal. The output signal is used as the second voltage comparison result and transmitted to the adaptive protection module.

[0114] In an exemplary embodiment, if the power polarity detection result indicates that the target DC power supply is positive polarity and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, then the first conduction control component is in a conducting state to control the second conduction control component to conduct the connection between the target DC power supply and the subsequent circuit. If the power polarity detection result indicates that the target DC power supply is positive polarity and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the first conduction control component is in a blocking state to control the second conduction control component to block the connection between the target DC power supply and the subsequent circuit. If the power polarity detection result indicates that the target DC power supply is reverse polarity, then the second conduction control component is in a blocking state to block the connection between the target DC power supply and the subsequent circuit.

[0115] In an exemplary embodiment, if the power supply polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, then the output signal of the first voltage comparison unit is a low-level signal and the output signal of the second voltage comparison unit is a high-level signal, causing the first NPN transistor to be in a conducting state, thereby driving the second NPN transistor to be in a conducting state to control the second conduction control component to connect the target DC power supply and the subsequent circuit. If the power supply polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the output signal of the first voltage comparison unit is not a low-level signal and the output signal of the second voltage comparison unit is not a high-level signal, causing the first NPN transistor to be in a blocking state, thereby driving the second NPN transistor to be in a blocking state to control the second conduction control component to block the connection between the target DC power supply and the subsequent circuit.

[0116] In an exemplary embodiment, if the power supply polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, then the first conduction control component controls the first P-type MOSFET to be in a conducting state, thereby enabling the second P-type MOSFET to be in a conducting state, to connect the target DC power supply to the subsequent circuit. If the power supply polarity detection result indicates that the target DC power supply is positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, then the first conduction control component controls the first P-type MOSFET to be in a blocking state, thereby enabling the second P-type MOSFET to be in a blocking state, to block the connection between the target DC power supply and the subsequent circuit. If the power supply polarity detection result indicates that the target DC power supply is reverse polarity, then the first P-type MOSFET is in a blocking state, thereby enabling the second P-type MOSFET to be in a blocking state, to block the connection between the target DC power supply and the subsequent circuit.

[0117] In an exemplary embodiment, the input protection structure and the input stage filtering structure perform reverse connection protection, current limiting protection and filtering on the target DC power supply to obtain the input voltage signal; the voltage regulator performs voltage regulation on the input voltage signal to obtain the output voltage signal; and the output stage filtering structure performs filtering on the output voltage signal to obtain the reference DC power supply.

[0118] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0119] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above embodiments.

[0120] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above embodiments.

[0121] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0122] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0123] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. An adaptive direct current input interface circuit, characterized by The circuit comprises a voltage comparison module, an adaptive protection module and a voltage reference module; The target direct current power source to be detected is connected to the first input end of the voltage comparison module, the input end of the adaptive protection module and the input end of the voltage reference module respectively, the output end of the voltage comparison module is connected to the controlled end of the adaptive protection module, the voltage reference module is connected to the second input end of the voltage comparison module, and the output end of the adaptive protection module is connected to the subsequent circuit to be powered; The voltage reference module performs voltage stabilization processing on the target direct current power source to obtain a reference direct current power source and transmit the reference direct current power source to the voltage comparison module; The voltage comparison module performs voltage division processing on the target direct current power source and the reference direct current power source respectively to obtain a to-be-detected voltage corresponding to the target direct current power source and a reference voltage corresponding to the reference direct current power source, obtains a voltage comparison result according to the difference between the to-be-detected voltage and the reference voltage, and transmits the voltage comparison result to the adaptive protection module; The adaptive protection module performs polarity detection on the target direct current power source to obtain a power source polarity detection result corresponding to the target direct current power source; If the power source polarity detection result indicates that the target direct current power source is of positive polarity and the voltage comparison result indicates that the voltage of the target direct current power source is within a preset voltage control range, the adaptive protection module turns on the connection between the target direct current power source and the subsequent circuit; If the power source polarity detection result indicates that the target direct current power source is of positive polarity and the voltage comparison result indicates that the voltage of the target direct current power source is not within the preset voltage control range, the adaptive protection module blocks the connection between the target direct current power source and the subsequent circuit; If the power source polarity detection result indicates that the target direct current power source is of reverse polarity, the adaptive protection module directly blocks the connection between the target direct current power source and the subsequent circuit; The adaptive protection module indicates a power source path control structure for dynamically controlling whether the target direct current power source is connected to the subsequent circuit according to the voltage comparison result output by the voltage comparison module and the power source polarity detection result detected by the adaptive protection module, and comprises a first conduction control component and a second conduction control component; the controlled end of the first conduction control component is connected to the output end of the voltage comparison module, the control end of the first conduction control component is connected to the controlled end of the second conduction control component, the input end of the second conduction control component is connected to the target direct current power source, and the output end of the second conduction control component is connected to the subsequent circuit; the first conduction control component indicates a slave switch device for controlling the switching state of the second conduction control component according to the voltage comparison result, and the second conduction control component indicates a master switch device for directly controlling the electrical connection between the target direct current power source and the subsequent circuit. The first conduction control component includes a first NPN triode, a second NPN triode, a first diode and a second diode, and the second conduction control component includes a first P-type MOS tube and a second P-type MOS tube; the voltage comparison module includes a first voltage comparison unit and a second voltage comparison unit, the first voltage comparison unit includes a first voltage comparator, and the second voltage comparison unit includes a second voltage comparator; The base of the first NPN triode is connected to the output terminal of the first voltage comparator through a forward-biased first diode, the emitter of the first NPN triode is grounded, the collector of the first NPN triode is connected to the base of the second NPN triode and the output terminal of the second voltage comparator through a forward-biased second diode, the base of the second NPN triode is grounded through a preset resistor, the emitter of the second NPN triode is grounded, and the collector of the second NPN triode is connected to the gate of the first P-type MOS tube through a preset resistor; The gate of the first P-type MOS tube is also connected to the target DC power supply through a preset resistor, the source of the first P-type MOS tube is connected to the target DC power supply, the drain of the first P-type MOS tube is connected to the drain of the second P-type MOS tube, the gate of the second P-type MOS tube is grounded through a preset resistor, and the source of the second P-type MOS tube is connected to a subsequent circuit; The second conduction control component further includes a parallel structure composed of a reverse-biased third diode, a first capacitor and a twelfth resistor, one end of the parallel structure is connected to the gate of the first P-type MOS tube, and the other end is connected to the source of the first P-type MOS tube and a target DC power supply connected to a circuit input terminal, so as to provide a pull-up bias function for the gate of the first P-type MOS tube; The second conduction control component further includes a parallel structure composed of a fifteenth resistor, a fourth capacitor and a reverse-biased fourth diode, one end of the parallel structure is connected to a circuit output terminal, and the other end is connected to the gate of the second P-type MOS tube and grounded through a preset resistor, so as to provide a pull-up bias function for the gate of the second P-type MOS tube; When the target DC power supply is within a preset voltage control range, the second NPN triode is in a conduction state to pull down the gate voltage of the first P-type MOS tube, and in the case that the target DC power supply is a positive polarity, the first P-type MOS tube is in a conduction state due to the gate-source voltage being less than a corresponding threshold voltage, so as to raise the drain voltage and the source voltage of the second P-type MOS tube, and the second P-type MOS tube is in a conduction state due to the gate-source voltage being less than a corresponding threshold voltage, so that the circuit input terminal and the circuit output terminal are sequentially electrically connected through the first P-type MOS tube and the second P-type MOS tube, and the connection between the target DC power supply and the subsequent circuit is realized. In the case that the target direct current power supply is reverse polarity, the source voltage of the first P-type MOS tube is pulled low, so that the first P-type MOS tube is in blocking state due to the gate-source voltage being greater than the corresponding threshold voltage, and the source voltage of the second P-type MOS tube is pulled low, so that the second P-type MOS tube is in blocking state due to the gate-source voltage being greater than the corresponding threshold voltage, thereby the electrical connection between the circuit input terminal and the circuit output terminal is disconnected, and the connection between the target direct current power supply and the subsequent circuit is blocked.

2. The circuit of claim 1, wherein, The target direct current power supply is connected to the first input terminal of the first voltage comparison unit and the first input terminal of the second voltage comparison unit respectively, and the voltage reference module is connected to the second input terminal of the first voltage comparison unit and the second input terminal of the second voltage comparison unit respectively, and the output terminals of the first voltage comparison unit and the second voltage comparison unit are connected to the controlled terminals of the adaptive protection module respectively; The first voltage comparison unit performs voltage division on the target direct current power supply and the reference direct current power supply respectively to obtain a first to-be-detected voltage corresponding to the target direct current power supply and a first reference voltage corresponding to the reference direct current power supply, and obtains a first voltage comparison result according to the difference between the first to-be-detected voltage and the first reference voltage; The second voltage comparison unit performs voltage division on the target direct current power supply and the reference direct current power supply respectively to obtain a second to-be-detected voltage corresponding to the target direct current power supply and a second reference voltage corresponding to the reference direct current power supply, and obtains a second voltage comparison result according to the difference between the second to-be-detected voltage and the second reference voltage; The voltage comparison result is obtained by combining the first voltage comparison result and the second voltage comparison result and transmitted to the adaptive protection module, the first reference voltage is less than the second reference voltage, the first voltage comparison result represents an under-voltage comparison result, and the second voltage comparison result represents an over-voltage comparison result.

3. The circuit of claim 1 or 2, characterized in that, The first voltage comparison unit comprises a first reference voltage division structure and a first dynamic voltage division structure, and the second voltage comparison unit comprises a second reference voltage division structure and a second dynamic voltage division structure; The target direct current power supply is connected to the negative phase input terminal of the first voltage comparator through the first dynamic voltage division structure, the reference direct current power supply is connected to the positive phase input terminal of the first voltage comparator through the first reference voltage division structure, and the output terminal of the first voltage comparator is connected to the adaptive protection module; The target direct current power supply is connected to the negative phase input terminal of the second voltage comparator through the second dynamic voltage division structure, the reference direct current power supply is connected to the positive phase input terminal of the second voltage comparator through the second reference voltage division structure, and the output terminal of the second voltage comparator is connected to the adaptive protection module; The first dynamic voltage division structure and the second dynamic voltage division structure perform dynamic voltage division on the target direct current power supply respectively to obtain a first to-be-detected voltage and a second to-be-detected voltage corresponding to the target direct current power supply; The first reference voltage divider structure and the second reference voltage divider structure respectively divide the reference direct-current power supply to obtain a first reference voltage and a second reference voltage corresponding to the reference direct-current power supply; The first voltage comparator compares the first to-be-detected voltage with the first reference voltage, outputs a high-level signal when the first to-be-detected voltage is less than the first reference voltage, outputs a low-level signal when the first to-be-detected voltage is greater than the first reference voltage, and transmits the output signal as a first voltage comparison result to the adaptive protection module; The second voltage comparator compares the second to-be-detected voltage with the second reference voltage, outputs a high-level signal when the second to-be-detected voltage is less than the second reference voltage, outputs a low-level signal when the second to-be-detected voltage is greater than the second reference voltage, and transmits the output signal as a second voltage comparison result to the adaptive protection module.

4. The circuit of claim 1, wherein, If the power supply polarity detection result indicates that the target direct-current power supply is of positive polarity, and the voltage comparison result indicates that the voltage of the target direct-current power supply is within the preset voltage control range, the first conduction control component is in a conduction state to control the second conduction control component to conduct the connection between the target direct-current power supply and the subsequent circuit. If the power supply polarity detection result indicates that the target direct-current power supply is of positive polarity, and the voltage comparison result indicates that the voltage of the target direct-current power supply is not within the preset voltage control range, the first conduction control component is in a blocking state to control the second conduction control component to block the connection between the target direct-current power supply and the subsequent circuit. If the power supply polarity detection result indicates that the target direct-current power supply is of reverse polarity, the second conduction control component is in a blocking state to block the connection between the target direct-current power supply and the subsequent circuit.

5. The circuit of claim 1 or 4, wherein, If the power supply polarity detection result indicates that the target direct-current power supply is of positive polarity, and the voltage comparison result indicates that the voltage of the target direct-current power supply is within the preset voltage control range, the output signal of the first voltage comparison unit is a low-level signal and the output signal of the second voltage comparison unit is a high-level signal, so that the first NPN transistor is in a conduction state to drive the second NPN transistor to be in a conduction state to control the second conduction control component to conduct the connection between the target direct-current power supply and the subsequent circuit. If the power supply polarity detection result indicates that the target direct-current power supply is of positive polarity, and the voltage comparison result indicates that the voltage of the target direct-current power supply is not within the preset voltage control range, the output signal of the first voltage comparison unit is not a low-level signal and the output signal of the second voltage comparison unit is not a high-level signal, so that the first NPN transistor is in a blocking state to drive the second NPN transistor to be in a blocking state to control the second conduction control component to block the connection between the target direct-current power supply and the subsequent circuit.

6. The circuit of claim 1, wherein, The voltage reference module comprises a voltage stabilizer, an input protection structure, an input stage filter structure and an output stage filter structure; An input end of the voltage stabilizer is connected to a target DC power supply through the input protection structure, one end of the input stage filter structure is connected to the input end of the voltage stabilizer, the other end of the input stage filter structure is grounded, one end of the output stage filter structure is connected to an output end of the voltage stabilizer, and the other end of the output stage filter structure is grounded; The input protection structure and the input stage filter structure perform reverse connection protection, current limiting protection and filtering processing on the target DC power supply to obtain an input voltage signal; The voltage stabilizer performs voltage stabilization processing on the input voltage signal to obtain an output voltage signal; The output stage filter structure performs filtering processing on the output voltage signal to obtain a reference DC power supply.

7. A driving method of an adaptive DC input interface circuit, characterized by, The adaptive DC input interface circuit comprises a voltage comparison module, an adaptive protection module and a voltage reference module. The method comprises: The voltage reference module performs voltage stabilization processing on a target DC power supply to be detected to obtain a reference DC power supply and transmit the reference DC power supply to the voltage comparison module; The voltage comparison module performs voltage division processing on the target DC power supply and the reference DC power supply respectively to obtain a to-be-detected voltage corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply, obtains a voltage comparison result according to a difference between the to-be-detected voltage and the reference voltage, and transmits the voltage comparison result to the adaptive protection module; The adaptive protection module performs polarity detection on the target DC power supply to obtain a power supply polarity detection result corresponding to the target DC power supply; If the power supply polarity detection result indicates that the target DC power supply is of a positive polarity, and the voltage comparison result indicates that a voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module turns on a connection between the target DC power supply and a subsequent circuit; If the power supply polarity detection result indicates that the target DC power supply is of a positive polarity, and the voltage comparison result indicates that a voltage of the target DC power supply is not within a preset voltage control range, the adaptive protection module blocks the connection between the target DC power supply and the subsequent circuit; If the power supply polarity detection result indicates that the target DC power supply is of a reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit. The adaptive protection module represents a power supply path control structure for dynamically controlling whether the target direct current power supply is connected to the post-stage circuit according to a voltage comparison result output by the voltage comparison module and a power supply polarity detection result detected by itself; the adaptive protection module comprises a first conduction control component and a second conduction control component; a controlled end of the first conduction control component is connected to an output end of the voltage comparison module, a control end of the first conduction control component is connected to a controlled end of the second conduction control component, an input end of the second conduction control component is connected to the target direct current power supply, and an output end of the second conduction control component is connected to the post-stage circuit; the first conduction control component represents a slave switch device for controlling a switching state of the second conduction control component according to the voltage comparison result, and the second conduction control component represents a master switch device for directly controlling electrical connection between the target direct current power supply and the post-stage circuit; The first conduction control component comprises a first NPN triode, a second NPN triode, a first diode and a second diode, and the second conduction control component comprises a first P-type MOS tube and a second P-type MOS tube; the voltage comparison module comprises a first voltage comparison unit and a second voltage comparison unit, the first voltage comparison unit comprises a first voltage comparator, and the second voltage comparison unit comprises a second voltage comparator; A base of the first NPN triode is connected to an output end of the first voltage comparator through a forward-biased first diode, an emitter of the first NPN triode is grounded, a collector of the first NPN triode is connected to a base of the second NPN triode and to an output end of the second voltage comparator through a forward-biased second diode, a base of the second NPN triode is grounded through a preset resistor, an emitter of the second NPN triode is grounded, and a collector of the second NPN triode is connected to a gate of the first P-type MOS tube through a preset resistor; The gate of the first P-type MOS tube is also connected to the target direct current power supply through a preset resistor, a source of the first P-type MOS tube is connected to the target direct current power supply, a drain of the first P-type MOS tube is connected to a drain of the second P-type MOS tube, a gate of the second P-type MOS tube is grounded through a preset resistor, and a source of the second P-type MOS tube is connected to the post-stage circuit; The second conduction control component further comprises a parallel structure composed of a reverse-biased third diode, a first capacitor and a twelfth resistor, one end of the parallel structure is connected to the gate of the first P-type MOS tube, and the other end is respectively connected to the source of the first P-type MOS tube and the target direct current power supply connected to the circuit input terminal, so as to provide a pull-up bias function for the gate of the first P-type MOS tube. The second conduction control component further comprises a parallel structure of a fifteenth resistor, a fourth capacitor and a reverse-biased fourth diode, one end of the parallel structure being connected to the circuit output terminal, the other end being connected to the gate of the second P-type MOS tube and grounded through a preset resistor, for providing a pull-up bias function for the gate of the second P-type MOS tube; The method further comprises: When the target DC power supply is within a preset voltage control range, the second NPN triode is in a conduction state to pull down the gate voltage of the first P-type MOS tube, and in the case that the target DC power supply is positive, the first P-type MOS tube is in a conduction state due to a gate-source voltage being less than a corresponding threshold voltage, to raise the drain voltage and the source voltage of the second P-type MOS tube, so that the second P-type MOS tube is in a conduction state due to a gate-source voltage being less than a corresponding threshold voltage, thereby causing the circuit input terminal and the circuit output terminal to be electrically connected in sequence through the first P-type MOS tube and the second P-type MOS tube, to realize the connection between the target DC power supply and the subsequent circuit. In the case that the target DC power supply is reverse, the source voltage of the first P-type MOS tube is pulled down, so that the first P-type MOS tube is in a blocking state due to a gate-source voltage being greater than a corresponding threshold voltage, and the source voltage of the second P-type MOS tube is pulled down, so that the second P-type MOS tube is in a blocking state due to a gate-source voltage being greater than a corresponding threshold voltage, thereby causing the electrical connection between the circuit input terminal and the circuit output terminal to be disconnected, to realize the blocking of the connection between the target DC power supply and the subsequent circuit.

8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method of claim 7.

9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the method of claim 7.

Citation Information

Patent Citations

  • Voltage-adaptive double-NMOS (N-channel metal oxide semiconductor) anti-reverse-connection power supply protection circuit

    CN119050978A