Self-adaptive direct current input interface circuit and driving method thereof
Through the voltage comparison module, adaptive protection module and voltage reference module of the adaptive DC input interface circuit, dual judgment of power supply polarity and voltage is achieved, which solves the problem of insensitive power supply detection in the existing technology and improves the safety of the power supply access process and the risk resistance of the circuit system.
Patent Information
- Application Number
- CN202511172491.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-21
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-08-21
AI Technical Summary
Existing DC power supply detection methods cannot achieve real-time identification and dynamic response in complex power supply environments, resulting in circuit damage or system restart, high energy consumption, large voltage loss, and insensitive response.
Adaptive DC input interface circuit is adopted, including voltage comparison module, adaptive protection module and voltage reference module. Through voltage stabilization processing, voltage division processing and polarity detection, adaptive recognition and protection control of power supply abnormality scenarios are achieved.
It improves the safety of the power supply access process and the risk resistance of the circuit system, ensures automatic judgment and safe release of power supply access, avoids interference or damage to the subsequent circuit caused by abnormal voltage, and prevents reverse current shock.
Smart Images

Figure CN120675398A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power management, and in particular to an adaptive DC input interface circuit and a driving method thereof. Background Art
[0002] In the field of power management technology, it involves detecting the polarity and voltage of a DC power supply to achieve automated and safe power supply control.
[0003] Related DC power supply detection methods usually implement reverse connection and overvoltage protection 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 anomalies in complex power supply environments, which can easily cause problems such as damage to subsequent circuits or system restart. Summary of the Invention
[0004] Based on this, it is necessary to provide an adaptive DC input interface circuit, a driving method for an adaptive DC input interface circuit, a computer device and a storage medium to address the above technical problems, so as to realize adaptive identification and protection control of the DC input interface in power supply abnormality scenarios.
[0005] In a first aspect, the present application provides an adaptive DC input interface circuit, the circuit comprising a voltage comparison module, an adaptive protection module, and a voltage reference module; The target DC power supply to be detected is respectively 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; 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 subsequent circuit to be powered; The voltage reference module performs voltage stabilization processing on the target DC power supply to obtain a reference DC power supply and transmits 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 voltage to be detected corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply, obtains a voltage comparison result based on the difference between the voltage to be detected and the reference voltage, and transmits the result to the adaptive protection module; The adaptive protection module performs polarity detection on the target DC power supply to obtain a power polarity detection result corresponding to the target DC power supply; If the power polarity detection result indicates that the target DC power supply has a positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module switches on 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 has a positive polarity, and the voltage comparison result indicates that the 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 polarity detection result indicates that the target DC power supply has reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.
[0006] In a second aspect, the present application further provides a driving method for an adaptive DC input interface circuit, which is applied to the adaptive DC input interface circuit, and the method includes: The voltage reference module performs voltage stabilization processing on the target DC power supply to be detected, obtains a reference DC power supply and transmits it 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 voltage to be detected corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply, obtains a voltage comparison result based on the difference between the voltage to be detected and the reference voltage, and transmits the result to the adaptive protection module; The adaptive protection module performs polarity detection on the target DC power supply to obtain a power polarity detection result corresponding to the target DC power supply; If the power polarity detection result indicates that the target DC power supply has a positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module switches on 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 has a positive polarity, and the voltage comparison result indicates that the 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 polarity detection result indicates that the target DC power supply has reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.
[0007] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the above steps when executing the computer program.
[0008] In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored, and the computer program implements the above steps when executed by a processor.
[0009] The adaptive DC input interface circuit, its driving method, computer device, and storage medium firstly stabilize 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 benchmark. Furthermore, the voltage comparison module divides the target DC power supply and the reference DC power supply to bring them within a comparable range, generating an accurate voltage comparison result through difference analysis to determine the controllability of the power supply voltage. Furthermore, the adaptive protection module performs polarity detection on the target DC power supply to obtain a power supply polarity detection result to determine the safety of electrical access. On the one hand, based on the circuit characteristics of the power supply connection being turned on under the conditions of forward polarity and voltage compliance, automatic judgment and safe release of power access are achieved; on the other hand, based on the circuit characteristics of blocking the power supply connection under the conditions of forward polarity but abnormal voltage, interference or damage to the subsequent circuits caused by abnormal voltage is avoided; on the other hand, based on the circuit characteristics of directly blocking the power supply connection under reverse polarity conditions, the circuit system is protected from reverse current shocks caused by reverse connection of the power supply; based on this, through the dual judgment mechanism of the power supply voltage amplitude and the power supply polarity status, adaptive identification and protection control of the DC input interface in power supply abnormality scenarios are realized, thereby improving the safety of the power supply access process and the risk resistance of the circuit system. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0011] Figure 1 is a structural block diagram of an adaptive DC input interface circuit in one embodiment; Figure 2 Schematic diagram of the structure of an adaptive DC input interface circuit in one embodiment; Figure 3 Schematic diagram of the structure of a voltage reference module in an adaptive DC input interface circuit in one embodiment; Figure 4 FIG. 4 is a flow chart of a driving method of an adaptive DC input interface circuit in an embodiment. DETAILED DESCRIPTION
[0012] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0013] In an exemplary embodiment, Figure 1 As shown, an adaptive DC input interface circuit is provided. The circuit includes a voltage comparison module 101 , an adaptive protection module 102 and a voltage reference module 103 .
[0014] Among them, the target DC power supply 104 to be detected is respectively connected to the first input end of the voltage comparison module 101, the input end of the adaptive protection module 102 and the input end of the voltage reference module 103, the output end of the voltage comparison module 101 is connected to the controlled end of the adaptive protection module 102, the voltage reference module 103 is connected to the second input end of the voltage comparison module 101, and the output end of the adaptive protection module 102 is connected to the subsequent circuit 105 to be powered.
[0015] Among them, the adaptive DC input interface circuit represents an interface circuit structure for DC power input scenarios. It can dynamically determine whether the externally connected DC power supply meets the power supply requirements based on the voltage and power polarity of the power supply, and control whether the DC power supply is connected to the subsequent load accordingly, so as to realize automatic identification of the input power supply and power supply safety control.
[0016] The voltage comparison module 101 represents a voltage difference detection structure for comparing the voltage of the input target DC power source 104 with a preset reference voltage to determine whether the voltage of the target DC power source 104 is within a safe power supply range.
[0017] Among them, the adaptive protection module 102 represents a power path control structure for dynamically controlling 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, so as to avoid damage to the subsequent circuit 105 caused by situations such as excessive voltage, excessive voltage or reverse polarity.
[0018] The voltage reference module 103 represents a reference voltage stabilization structure for generating a stable reference voltage from the target DC power supply 104 , thereby providing a consistent and predictable reference voltage signal to the voltage comparison module 101 .
[0019] The target DC power supply 104 represents an external DC power signal source connected to the input end of the adaptive DC input interface circuit, and is used to provide an operating voltage for the entire circuit system or the subsequent circuit 105 .
[0020] The subsequent circuit 105 represents a functional load circuit powered by a DC power supply connected to the output end of the adaptive DC input interface circuit, and is used to perform the actual function of the circuit system.
[0021] Exemplarily, the voltage reference module 103 performs voltage stabilization processing on the target DC power source 104 to obtain a reference DC power source 106, which is then transmitted to the voltage comparison module 101. The reference DC power source 106 represents a reference voltage signal obtained from the input target DC power source 104 after voltage stabilization processing by the voltage reference module 103, which has a stable voltage value, small fluctuations, and a known level. The reference DC power source 106 is used to provide a voltage judgment reference for the voltage comparison module 101, i.e., to determine whether the voltage of the target DC power source 104 falls within a set safety range.
[0022] 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 voltage to be detected corresponding to the target DC power supply 104 and the reference voltage corresponding to the reference DC power supply 106, and obtains a voltage comparison result based on the difference between the voltage to be detected and the reference voltage and transmits it to the adaptive protection module 102.
[0023] Among them, the voltage to be detected represents the voltage value obtained after the target DC power supply 104 is subjected to voltage division processing, and the reference voltage represents the voltage value obtained after the reference DC power supply 106 is subjected to voltage division processing, so as to reduce the voltage values of the target DC power supply 104 and the reference DC power supply 106 to within 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 based on the numerical value relationship between the voltage to be detected and the reference voltage, and is represented by a digital signal or level state, so as to be used to determine whether the voltage of the target DC power supply 104 falls within the set safety range.
[0024] On the other hand, the adaptive protection module 102 performs polarity detection on the target DC power supply 104 to obtain a power polarity detection result corresponding to the target DC power supply 104; wherein the power polarity detection result represents the power polarity information obtained by the adaptive protection module 102 after judging the positive and negative pole connection mode of the input target DC power supply 104, so as to determine whether the positive and negative poles of the target DC power supply 104 are correctly connected.
[0025] Optionally, if the power polarity detection result indicates that the target DC power supply 104 is in the forward polarity and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, the adaptive protection module 102 turns on the connection between the target DC power supply 104 and the subsequent circuit 105.
[0026] Optionally, if the power polarity detection result indicates that the target DC power supply 104 is in the forward 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, the adaptive protection module 102 blocks the connection between the target DC power supply 104 and the subsequent circuit 105.
[0027] Optionally, if the power polarity detection result indicates that the target DC power source 104 has a reverse polarity, the adaptive protection module 102 directly blocks the connection between the target DC power source 104 and the subsequent circuit 105 .
[0028] Among them, if the target DC power supply 104 is in forward polarity, it means that the connection direction of the target DC power supply 104 is consistent with the expected current flow direction, and if the target DC power supply 104 is in 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 interval value between the upper limit and lower limit of the voltage allowed by the target DC power supply 104.
[0029] In this embodiment, first, the target DC power supply is stabilized according to the voltage reference module, so as 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 according to the voltage comparison module, so as to compress the two into a comparable range, and generate an accurate voltage comparison result through difference analysis to determine the controllability of the power supply voltage; thirdly, the target DC power supply is polarity detected according to the adaptive protection module, so as to obtain the power supply polarity detection result to determine the safety of electrical access; on the one hand, according to the positive polarity and voltage compliance conditions On the other hand, according to the circuit characteristics of the power supply connection under the condition of forward polarity but abnormal voltage, the circuit characteristics of blocking the power supply connection are used to avoid interference or damage to the subsequent circuits caused by abnormal voltage. On the other hand, according to the circuit characteristics of directly blocking the power supply connection under reverse polarity conditions, the circuit system is protected from reverse current shock caused by reverse connection of the power supply. Based on this, through the dual judgment mechanism of the power supply voltage amplitude and the power supply polarity status, the adaptive identification and protection control of the DC input interface in the power supply abnormality scenario are realized, which improves the safety of the power supply access process and the risk resistance of the circuit system.
[0030] 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 terminal of the first voltage comparison unit and the output terminal of the second voltage comparison unit are respectively connected to the controlled terminal of the adaptive protection module 102.
[0031] Exemplarily, on the 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 a first voltage to be detected corresponding to the target DC power supply 104 and a first reference voltage corresponding to the reference DC power supply 106, and obtains a first voltage comparison result based on the difference between the first voltage to be detected and the first reference voltage.
[0032] 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 a second detection voltage corresponding to the target DC power supply 104 and a second reference voltage corresponding to the reference DC power supply 106, and obtains a second voltage comparison result based on the difference between the second detection voltage and the second reference voltage.
[0033] Furthermore, the first voltage comparison result and the second voltage comparison result are combined to obtain a 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 undervoltage comparison result, and the second voltage comparison result represents an overvoltage comparison result.
[0034] Among them, the first voltage to be detected represents the voltage value obtained by the target DC power supply 104 after the 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 the 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 division structure, detection accuracy, and functional differentiation requirements to meet actual voltage detection requirements.
[0035] Among them, the first reference voltage represents the voltage value obtained after the reference DC power supply is divided by the first voltage comparison unit, which 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, which is used as a comparison standard for overvoltage judgment; the first reference voltage is less than the second reference voltage, which is equivalent to the first reference voltage being used as the lower limit judgment reference and the second reference voltage being used as the upper limit judgment reference. 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 to meet actual voltage detection requirements.
[0036] Among them, 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 limit 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 limit threshold set by the second reference voltage; according to 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.
[0037] In this embodiment, on the one hand, the target DC power supply and the reference DC power supply are respectively voltage-divided and compared according to the first voltage comparison unit to obtain a first voltage comparison result, thereby realizing the judgment of whether the input voltage is lower than the lower limit threshold; on the other hand, the target DC power supply and the reference DC power supply are respectively voltage-divided and compared according to the second voltage comparison unit to obtain a second voltage comparison result, thereby realizing the judgment of whether the input voltage exceeds the upper limit threshold; on the other hand, the voltage comparison result is obtained by combining the first voltage comparison result and the second voltage comparison result, thereby realizing the comprehensive judgment of the input voltage size and forming a unified control basis; based on this, the dual-threshold accurate identification of undervoltage and overvoltage is realized through the separate upper and lower limit voltage comparison structure, thereby enhancing the refined control capability and response reliability of power input detection.
[0038] In an exemplary embodiment, Figure 2 As shown, the first voltage comparison unit includes a first voltage comparator U1, a first reference voltage division structure and a first dynamic voltage division structure, and the second voltage comparison unit includes a second voltage comparator U2, a second reference voltage division structure and a second dynamic voltage division structure.
[0039] The target DC power supply 104 is connected to the negative phase input terminal of the first voltage comparator U1 through a first dynamic voltage divider structure, the reference DC power supply 106 is connected to the positive phase input terminal of the first voltage comparator U1 through a first reference voltage divider structure, and the output terminal of the first voltage comparator U1 is connected to the adaptive protection module 102; Among them, the target DC power supply 104 is connected to the negative phase input terminal of the second voltage comparator U2 through a second dynamic voltage divider structure, the reference DC power supply 106 is connected to the positive phase input terminal of the second voltage comparator U2 through a second reference voltage divider structure, and the output terminal of the second voltage comparator U2 is connected to the adaptive protection module 102.
[0040] For example, on one hand, the first dynamic voltage division structure and the second dynamic voltage division structure respectively perform dynamic voltage division processing on the target DC power supply 104 to obtain a first voltage to be detected and a second voltage to be detected corresponding to the target DC power supply 104. The first voltage comparator U1 compares the first voltage to be detected with a first reference voltage, outputs a high-level signal when the first voltage to be detected is less than the first reference voltage, and outputs a low-level signal when the first voltage to be detected is greater than the first reference voltage. The output signal is used as the first voltage comparison result and transmitted to the adaptive protection module 102.
[0041] On the other hand, the first reference voltage-dividing structure and the second reference voltage-dividing structure respectively divide the reference DC power supply 106 to obtain a first reference voltage and a 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, outputs a high-level signal when the second voltage to be detected is less than the second reference voltage, and outputs a low-level signal when the second voltage to be detected is greater than the second reference voltage. The output signal is used as the second voltage comparison result and transmitted to the adaptive protection module 102.
[0042] 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.
[0043] Among them, the first dynamic voltage divider structure and the second dynamic voltage divider structure are respectively used to dynamically scale the voltage of the target DC power supply 104 according to a variable ratio to a detection voltage suitable for the input end of the voltage comparator; the first reference voltage divider structure and the second reference voltage divider structure are respectively used to scale the voltage of the reference DC power supply 106 according to a fixed ratio to a reference voltage suitable for the input end of the voltage comparator.
[0044] Specifically, Figure 2As 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 of the first resistor R1 is connected to Vcc (i.e., the reference DC power supply 106), and its output is connected to the input of the second resistor R2 and the non-inverting input of the first voltage comparator U1. The output of the second resistor R2 is grounded. The input of the third resistor R3 is connected to Vin (i.e., the target DC power supply 104), and its output is connected to the input of the fourth resistor R4 and the fixed terminal of the first potentiometer VR1. The output of the fourth resistor R4 is connected to the inverting input of the first voltage comparator U1, and the sliding terminal of the first potentiometer VR1 is connected to the output of the second resistor R2 and to ground.
[0045] The second reference voltage divider structure includes a fifth resistor R5 and a sixth resistor R6, and the second dynamic voltage divider structure includes a seventh resistor R7, an eighth resistor R8, and a second potentiometer VR2. The fifth resistor R5 has an input connected to Vcc, and its output 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 seventh resistor R7 has an input connected to Vin, and its output 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 ground. Furthermore, Vcc provides power to the first voltage comparator U1 and the second voltage comparator U2 (not shown).
[0046] 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 reduce the voltage of 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, and 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 a 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.
[0047] Among them, the fifth resistor R5 and the sixth resistor R6 are used to construct a reference voltage divider network with a fixed ratio to reduce the voltage of 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 a dynamic voltage divider network with an adjustable ratio 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.
[0048] In this embodiment, first, a target DC power supply is dynamically divided according to the first and second dynamic voltage-dividing structures, thereby making the voltage to be detected adjustable and compatible. The voltage-dividing ratio can be flexibly set according to the voltage of the target DC power supply, ensuring that the voltage-dividing output is within the linear operating range recognizable by the voltage comparator. This avoids situations where the voltage comparator input is saturated due to excessively high voltage or insufficient sensitivity due to excessively low voltage, thereby improving the adaptability and accuracy of the voltage to be detected. Second, two stable reference voltages corresponding to undervoltage and overvoltage judgment criteria are generated according to the first and second reference voltage-dividing structures, thereby establishing upper and lower limits for voltage comparison and improving the resolution of the comparison judgment. Third, two voltage comparators are used to compare the corresponding voltage to be detected with the reference voltage and output corresponding voltage comparison results. Based on this, by introducing a dynamic voltage-dividing structure with adjustability and proportional controllability, the input voltage can be dynamically adjusted to achieve effective mapping and accurate judgment, thereby improving the versatility, scalability, and flexibility of the voltage comparison module in adapting to different input conditions.
[0049] In an exemplary embodiment, the adaptive protection module 102 includes a first conduction control component and a second conduction control component.
[0050] Among them, the controlled end of the first conduction control component is connected to the output end of the voltage comparison module 101, 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 DC power supply 104, and the output end of the second conduction control component is connected to the subsequent circuit 105.
[0051] Among them, the first conduction control component represents a 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 the forward polarity, it is judged whether the voltage of the target DC power supply 104 is within the voltage control range and decides whether to allow the subsequent stage to power on.
[0052] Among them, the second conduction control component represents a main switching device for directly controlling the electrical connection between the target DC power supply 104 and the subsequent circuit 105, that is, the subsequent power supply is allowed when the target DC power supply 104 is in forward polarity and the voltage is within the voltage control range, and the subsequent power supply is disconnected when any condition is not met.
[0053] On the one hand, if the power polarity detection result indicates that the target DC power supply 104 is of forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within the preset voltage control range, the first conduction control component is in the on state to control the second conduction control component to conduct the connection between the target DC power supply 104 and the subsequent circuit 105.
[0054] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 is of forward 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, 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 104 and the subsequent circuit 105.
[0055] On the other hand, if the power polarity detection result indicates that the target DC power source 104 has a reverse polarity, the second conduction control component is in a blocking state to block the connection between the target DC power source 104 and the subsequent circuit 105 .
[0056] In this embodiment, first, according to the circuit characteristics of the first conduction control component controlling the conduction of the second conduction control component when the target DC power supply is of forward polarity and the voltage is within the voltage control range, it is ensured that the power path is established only when the input power supply meets the power supply conditions, thereby avoiding misconduction; secondly, according to the circuit characteristics of the first conduction control component controlling the blocking of the second conduction control component when the voltage of the target DC power supply is not within the voltage control range, the risk of impact on the subsequent circuit under abnormal voltage conditions is prevented; thirdly, according to the circuit characteristics of the second conduction control component directly blocking the power supply when the target DC power supply is of reverse polarity, a fast disconnection response is achieved in the event of polarity abnormality; based on this, by setting the conduction control components of the hierarchical control structure, respectively corresponding to the combination logic of the voltage amplitude state and the power supply polarity state, accurate identification and automatic disconnection of abnormal power supply conditions are achieved, thereby enhancing the safety, reliability and operational stability of the circuit.
[0057] In an exemplary embodiment, Figure 2 As shown, the first conduction control component includes a first NPN transistor Q1 and a second NPN transistor Q2.
[0058] Among them, the base of the first NPN transistor Q1 is connected to the output end of the first voltage comparison unit, the emitter of the first NPN transistor Q1 is grounded, the collector of the first NPN transistor Q1 is respectively connected to the output end of the second voltage comparison 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 end of the second conduction control component.
[0059] For example, on the one hand, if the power polarity detection result indicates that the target DC power supply 104 is of forward 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, so that the first NPN transistor Q1 is in the on state, so as to drive the second NPN transistor Q2 to be in the on state to control the second conduction control component to conduct the connection between the target DC power supply 104 and the subsequent circuit 105.
[0060] On the other hand, if the power polarity detection result indicates that the target DC power supply 104 has a forward 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 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 Q1 is 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.
[0061] In an exemplary embodiment, Figure 2 As shown, the second conduction control component includes a first P-type MOS transistor Q3 and a second P-type MOS transistor Q4.
[0062] The gate of the first P-type MOS transistor Q3 is connected to the control terminal of the first conduction control component and is connected to the target DC power supply 104 via a preset resistor. The source of the first P-type MOS transistor Q3 is connected to the target DC power supply 104. The drain of the first P-type MOS transistor Q3 is connected to the drain of the second P-type MOS transistor Q4. The gate of the second P-type MOS transistor Q4 is grounded via a preset resistor. The source of the second P-type MOS transistor Q4 is connected to the subsequent circuit 105.
[0063] For example, if the power polarity detection result indicates that the target DC power supply 104 has a forward polarity and the voltage comparison result indicates that the voltage of the target DC power supply 104 is within a preset voltage control range, the first conduction control component controls the first P-type MOS transistor Q3 to be in a conductive state, thereby also turning on the second P-type MOS transistor Q4, thereby establishing a connection between the target DC power supply 104 and the subsequent circuit 105. On the other hand, if the power polarity detection result indicates that the target DC power source 104 has a forward polarity and the voltage comparison result indicates that the voltage of the target DC power source 104 is not within the preset voltage control range, the first conduction control component controls the first P-type MOS transistor Q3 to be in a blocking state, so that the second P-type MOS transistor Q4 is in a blocking state, thereby blocking the connection between the target DC power source 104 and the subsequent circuit 105.
[0064] On the other hand, if the power polarity detection result indicates that the target DC power source 104 has a reverse polarity, the first P-type MOS transistor Q3 is in a blocking state, so that the second P-type MOS transistor Q4 is also in a blocking state, thereby blocking the connection between the target DC power source 104 and the subsequent circuit 105.
[0065] In an exemplary embodiment, Figure 2 As shown, the first conduction control component also 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 also 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.
[0066] Specifically, the base of the first NPN transistor Q1 is connected to the output end of the first voltage comparator U1 via a forward-biased first diode D1, and the base of the first NPN transistor Q1 is grounded via a 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 to the output end of the second voltage comparator U2 via a forward-biased second diode D2; the base of the second NPN transistor Q2 is grounded via a 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 MOS transistor Q3 via an eleventh resistor R11.
[0067] 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 resistance for the base of the corresponding NPN transistor; and the eleventh resistor R11 is used to provide a current-limiting resistor for the second NPN transistor Q2.
[0068] Specifically, a reverse-biased third diode D3, a first capacitor C1, and a twelfth resistor R12 are arranged in parallel, and one end of the parallel structure is connected to the gate of the first P-type MOS transistor Q3, and the other end thereof is respectively connected to the source of the first P-type MOS transistor Q3 and Vin, where 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, and the circuit output Terminal DC2 is used to connect to the subsequent circuit 105; the output end of the thirteenth resistor R13 is respectively connected to the drain of the first P-type MOS transistor Q3 and the drain of the second P-type MOS transistor Q4, and the source of the second P-type MOS transistor Q4 is connected to the circuit output terminal DC2; a fifteenth resistor R15, a fourth capacitor C4, and a reverse-biased fourth diode D4 are arranged in parallel, with one end of this parallel structure connected to the circuit output terminal DC2, and the other end connected to the gate of the second P-type MOS transistor Q4 and grounded via a sixteenth resistor R16.
[0069] Among them, the parallel structure consisting of the third diode D3, the first capacitor C1, and the twelfth resistor R12 is used to provide functions such as pulling up the bias, discharging charge, and filtering high-frequency interference for the gate of the first P-type MOS transistor Q3; the parallel structure consisting of the fifteenth resistor R15, the fourth capacitor C4, and the fourth diode D4 is used to provide functions such as pulling up the bias, discharging charge, and filtering high-frequency interference for the gate of the second P-type MOS transistor Q4; the structure consisting of the second capacitor C2 and the thirteenth resistor R13 is used for primary filtering and current limiting processing of the input path, and 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; and the sixteenth resistor R16 is used to provide a pull-down resistance for the gate of the second P-type MOS transistor Q4.
[0070] For example, 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 voltage lower limit threshold and there is no undervoltage problem, so 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 voltage lower limit threshold and there is an undervoltage problem, so the first voltage comparator U1 outputs a high-level signal.
[0071] 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 voltage upper limit threshold and there is no overvoltage problem, so 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 voltage upper limit threshold and there is an overvoltage problem, so the second voltage comparator U2 outputs a low-level signal.
[0072] At this time, there are three combinations of the output signals of the first voltage comparator U1 and the second voltage comparator U2: 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.
[0073] 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, so that the first NPN transistor Q1 is in a conducting state because the base voltage is greater than the corresponding threshold voltage, thereby pulling down the base voltage of the second NPN transistor Q2, so that the second NPN transistor Q2 is in a blocking state because the base voltage is less than the corresponding threshold voltage.
[0074] 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 the base voltage is less than the corresponding threshold voltage, thereby increasing the base voltage of the second NPN transistor Q2, causing the second NPN transistor Q2 to be in a conducting state because the base voltage is greater than the corresponding threshold voltage.
[0075] 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, so that the first NPN transistor Q1 is in the on state because the base voltage is greater than the corresponding threshold voltage, thereby pulling down the base voltage of the second NPN transistor Q2, so that the second NPN transistor Q2 is in the blocked state because the base voltage is less than the corresponding threshold voltage.
[0076] As can be seen, 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. As a result, the second NPN transistor Q2 is in the on state, thereby lowering the gate voltage of the first P-type MOS transistor Q3. When Vin is in a positive polarity, the first P-type MOS transistor Q3 is in the on state because the gate-source voltage is less than the corresponding threshold voltage. When the first P-type MOS transistor Q3 is in the on state, the drain voltage and source voltage of the second P-type MOS transistor Q4 are increased, causing the second P-type MOS transistor Q4 to be in the on state because the gate-source voltage is less than the corresponding threshold voltage. As a result, the circuit input terminal DC1 and the circuit output terminal DC2 are electrically connected through the first P-type MOS transistor Q3 and the second P-type MOS transistor Q4, thereby achieving a connection between the target DC power supply 104 and the subsequent circuit 105.
[0077] Furthermore, when Vin is of reverse polarity, the source voltage of the first P-type MOS transistor Q3 is pulled down, causing the first P-type MOS transistor Q3 to be in a blocked state due to the gate-source voltage being greater than the corresponding threshold voltage. The source voltage of the second P-type MOS transistor Q4 is also pulled down, causing the second P-type MOS transistor Q4 to be in a blocked state due to the gate-source voltage being greater than the corresponding threshold voltage. This disconnects the electrical connection between the circuit input terminal DC1 and the circuit output terminal DC2, thereby blocking the connection between the target DC power supply 104 and the subsequent circuit 105. Furthermore, after the input polarity is corrected, the first P-type MOS transistor Q3 and the second P-type MOS transistor Q4 are reconnected without requiring human intervention.
[0078] In an exemplary embodiment, 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.
[0079] The input end of the 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 end of the 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 end of the voltage regulator U3, and the other end of the output stage filter structure is grounded.
[0080] Exemplarily, the input protection structure and the input-stage filter structure perform reverse connection protection, current limiting protection, and filtering on the target DC power supply 104 to obtain an input voltage signal; the voltage regulator U3 performs voltage stabilization on the input voltage signal to obtain an output voltage signal; the output-stage filter structure performs filtering on the output voltage signal to obtain a reference DC power supply.
[0081] Furthermore, Figure 3As shown, the input protection structure includes a fifth diode D5, a seventeenth resistor R17 and an eighteenth resistor R18, the input stage filter structure includes a fifth capacitor C5, and the output stage filter structure includes a sixth capacitor C6 and a seventh capacitor C7.
[0082] Among them, Vin is connected to the input terminal of the voltage regulator U3 in sequence through the forward-biased fifth diode D5, the seventeenth resistor R17, and the eighteenth resistor R18, and the output terminal of the voltage regulator U3 outputs Vcc; one end of the fifth capacitor C5 is connected to the input terminal of the voltage regulator U3, and the other end thereof is grounded; one end of the sixth capacitor C6 and the seventh capacitor C7 are connected to the output terminal of the voltage regulator U3, and the other end thereof is grounded; the ground terminal of the voltage regulator U3 is grounded.
[0083] 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 resistance; 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 range of the output filter to improve the output voltage waveform.
[0084] In this embodiment, first, the input protection structure and the input-stage filtering structure are combined to perform reverse connection protection, current limiting protection and filtering processing on the target DC power supply, thereby adaptively obtaining an optimized input voltage signal; secondly, the input voltage signal is stabilized according to the voltage stabilizer, thereby adaptively obtaining an output voltage signal with a stable voltage amplitude; thirdly, the output voltage signal is filtered according to the output-stage filtering structure, thereby further weakening the subtle voltage fluctuations introduced by the dynamic adjustment of the voltage stabilizer, and outputting a reference DC power supply with a smoother ripple; based on this, a continuous processing chain of the target DC power supply from input protection, dynamic voltage stabilization to output purification is realized through a multi-stage structural combination, thereby providing a reference voltage benchmark with anti-interference capability.
[0085] Each module in the adaptive DC input interface circuit can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0086] Based on the same inventive concept, embodiments of the present application also provide a related driving method for the aforementioned adaptive DC input interface circuit. The solution provided by this method is similar to the solution described in the aforementioned circuit. Therefore, the specific limitations of the driving method embodiments of one or more adaptive DC input interface circuits provided below can be found in the above-mentioned limitations on the adaptive DC input interface circuit, and will not be further elaborated here.
[0087] In an exemplary embodiment, Figure 4 As shown, a driving method for an adaptive DC input interface circuit is provided. The method is applied to the adaptive DC input interface circuit in any of the above embodiments, and includes the following steps S101 to S106.
[0088] In step S101 , a voltage reference module performs voltage stabilization on a target DC power supply to obtain a reference DC power supply and transmits the result to a voltage comparison module.
[0089] 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 a voltage to be detected corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply. A voltage comparison result is obtained based on the difference between the voltage to be detected and the reference voltage and is transmitted to the adaptive protection module.
[0090] In step S103 , the adaptive protection module performs polarity detection on the target DC power supply to obtain a power polarity detection result corresponding to the target DC power supply.
[0091] In step S104 , if the power polarity detection result indicates that the target DC power supply has a positive polarity and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module switches on the connection between the target DC power supply and the subsequent circuit.
[0092] In step S105 , if the power polarity detection result indicates that the target DC power supply has a 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, the adaptive protection module blocks the connection between the target DC power supply and the subsequent circuit.
[0093] In step S106 , if the power polarity detection result indicates that the target DC power source has reverse polarity, the adaptive protection module directly blocks the connection between the target DC power source and the subsequent circuit.
[0094] In an exemplary embodiment, the 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 voltage to be detected corresponding to the target DC power supply and a first reference voltage corresponding to the reference DC power supply, and obtains a first voltage comparison result based on the difference between the first voltage to be detected and the first reference voltage; the 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 voltage to be detected corresponding to the target DC power supply and a second reference voltage corresponding to the reference DC power supply, and obtains a second voltage comparison result based on the difference between the second voltage to be detected and the second reference voltage; the first voltage comparison result and the second voltage comparison result are combined to obtain a 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 indicates an undervoltage comparison result, and the second voltage comparison result indicates an overvoltage comparison result.
[0095] In an exemplary embodiment, the first dynamic voltage dividing structure and the second dynamic voltage dividing structure respectively perform dynamic voltage dividing processing on the target DC power supply to obtain a first voltage to be detected and a second voltage to be detected corresponding to the target DC power supply. The first reference voltage dividing structure and the second reference voltage dividing structure respectively perform voltage dividing 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 voltage to be detected with the first reference voltage, and outputs a high-level signal when the first voltage to be detected is less than the first reference voltage, and outputs a low-level signal when the first voltage to be detected is greater than the first reference voltage. 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 voltage to be detected with the second reference voltage, and outputs a high-level signal when the second voltage to be detected is less than the second reference voltage, and outputs a low-level signal when the second voltage to be detected is greater than the second reference voltage. The output signal is used as the second voltage comparison result and transmitted to the adaptive protection module.
[0096] In an exemplary embodiment, if the power polarity detection result indicates that the target DC power supply is of forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, 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 of forward polarity, and the voltage comparison result indicates that the voltage of the target DC 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 DC power supply and the subsequent circuit; if the power polarity detection result indicates that the target DC power supply is of reverse polarity, the second conduction control component is in a blocking state to block the connection between the target DC power supply and the subsequent circuit.
[0097] In an exemplary embodiment, if the power polarity detection result indicates that the target DC power supply has a forward polarity and the voltage comparison result indicates that the voltage of the target DC power supply is within a 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 conducting state, thereby driving the second NPN transistor to be 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 has a forward polarity and the voltage comparison result indicates that the voltage of the target DC 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, 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.
[0098] In an exemplary embodiment, if the power polarity detection result indicates that the target DC power supply is of forward polarity and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the first conduction control component controls the first P-type MOS transistor to be in a conducting state, so that the second P-type MOS transistor is in a conducting state, thereby conducting 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 of forward polarity and the voltage comparison result indicates that the voltage of the target DC power supply is not within the preset voltage control range, the first conduction control component controls the first P-type MOS transistor to be in a blocking state, so that the second P-type MOS transistor is in a blocking state, thereby blocking 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 of reverse polarity, the first P-type MOS transistor is in a blocking state, so that the second P-type MOS transistor is in a blocking state, thereby blocking the connection between the target DC power supply and the subsequent circuit.
[0099] In an exemplary embodiment, the input protection structure and the input-stage filter structure perform reverse connection protection, current limiting protection, and filtering on the target DC power supply to obtain an input voltage signal; the voltage stabilizer performs voltage stabilization on the input voltage signal to obtain an output voltage signal; and the output-stage filter structure performs filtering on the output voltage signal to obtain a reference DC power supply.
[0100] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0101] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in any of the above embodiments when executing the computer program.
[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in any of the above embodiments are implemented.
[0103] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, 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 various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0104] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, 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.
[0105] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. An adaptive DC input interface circuit, characterized in that: The circuit includes a voltage comparison module, an adaptive protection module and a voltage reference module; The target DC power supply to be detected is respectively 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; 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 subsequent circuit to be powered; The voltage reference module performs voltage stabilization processing on the target DC power supply to obtain a reference DC power supply and transmits 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 voltage to be detected corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply, obtains a voltage comparison result based on the difference between the voltage to be detected and the reference voltage, and transmits the result to the adaptive protection module; The adaptive protection module performs polarity detection on the target DC power supply to obtain a power polarity detection result corresponding to the target DC power supply; If the power polarity detection result indicates that the target DC power supply has a positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module switches on 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 has a positive polarity, and the voltage comparison result indicates that the 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 polarity detection result indicates that the target DC power supply has reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.
2. The circuit according to claim 1, wherein: The voltage comparison module includes a first voltage comparison unit and a second voltage comparison unit; The target DC 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, 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 terminal of the first voltage comparison unit and the output terminal of the second voltage comparison unit are connected to the controlled terminal of the adaptive protection module respectively; The 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 voltage to be detected corresponding to the target DC power supply and a first reference voltage corresponding to the reference DC power supply, and obtains a first voltage comparison result according to the difference between the first voltage to be detected and the first reference voltage; the 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 voltage to be detected corresponding to the target DC power supply and a second reference voltage corresponding to the reference DC power supply, and obtains a second voltage comparison result according to a difference between the second voltage to be detected 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 an undervoltage comparison result, and the second voltage comparison result represents an overvoltage comparison result.
3. The circuit according to claim 2, characterized in that The first voltage comparison unit includes a first voltage comparator, a first reference voltage division structure and a first dynamic voltage division structure, and the second voltage comparison unit includes a second voltage comparator, a second reference voltage division structure and a second dynamic voltage division structure; The target DC power supply is connected to the negative phase input terminal of the first voltage comparator through the first dynamic voltage divider structure, the reference DC power supply is connected to the positive phase input terminal of the first voltage comparator through the first reference voltage divider structure, and the output terminal of the first voltage comparator is connected to the adaptive protection module; The target DC power supply is connected to the negative phase input terminal of the second voltage comparator through the second dynamic voltage divider structure, the reference DC power supply is connected to the positive phase input terminal of the second voltage comparator through the second reference voltage divider 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 respectively perform dynamic voltage division processing on the target DC power supply to obtain a first voltage to be detected and a second voltage to be detected corresponding to the target DC power supply; The first reference voltage dividing structure and the second reference voltage dividing structure respectively divide 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 voltage to be detected with the first reference voltage, outputs a high-level signal when the first voltage to be detected is less than the first reference voltage, and outputs a low-level signal when the first voltage to be detected 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 voltage to be detected with the second reference voltage, and outputs a high-level signal when the second voltage to be detected is less than the second reference voltage; and outputs a low-level signal when the second voltage to be detected is greater than the second reference voltage. The output signal is used as the second voltage comparison result and transmitted to the adaptive protection module.
4. The circuit according to claim 1, wherein: The adaptive protection module includes a first conduction control component and a second conduction control component; The controlled terminal of the first conduction control component is connected to the output terminal of the voltage comparison module, 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, and the output terminal of the second conduction control component is connected to the subsequent circuit; If the power polarity detection result indicates that the target DC power supply has a forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, 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 has a forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within a 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 DC power supply and the subsequent circuit; If the power polarity detection result indicates that the target DC power source has reverse polarity, the second conduction control component is in a blocking state to block the connection between the target DC power source and the subsequent circuit.
5. The circuit according to claim 4, characterized in that The first conduction control component includes a first NPN transistor and a second NPN transistor; The voltage comparison module includes a first voltage comparison unit and a second voltage comparison unit; The base of the first NPN transistor is connected to the output terminal of the first voltage comparison unit, the emitter of the first NPN transistor is grounded, the collector of the first NPN transistor is connected to the output terminal of the second voltage comparison unit and the base of the second NPN transistor respectively, the emitter of the second NPN transistor is grounded, and the collector of the second NPN transistor is connected to the controlled terminal of the second conduction control component; If the power polarity detection result indicates that the target DC power supply has a forward 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, so that the first NPN transistor is in a conductive state, thereby driving the second NPN transistor to be in a conductive state, thereby controlling 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 has a forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within a 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, so that the first NPN transistor is 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.
6. The circuit according to claim 4, characterized in that The second conduction control component includes a first P-type MOS transistor and a second P-type MOS transistor; The gate of the first P-type MOS transistor is connected to the control terminal of the first conduction control component and is connected to the target DC power supply via a preset resistor. The source of the first P-type MOS transistor is connected to the target DC power supply. The drain of the first P-type MOS transistor is connected to the drain of the second P-type MOS transistor. The gate of the second P-type MOS transistor is grounded via a preset resistor. The source of the second P-type MOS transistor is connected to a subsequent circuit. If the power polarity detection result indicates that the target DC power supply has a forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the first conduction control component controls the first P-type MOS transistor to be in a conducting state, so that the second P-type MOS transistor is in a conducting state, so as 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 has a forward polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is not within a preset voltage control range, the first conduction control component controls the first P-type MOS transistor to be in a blocking state, so that the second P-type MOS transistor is in a blocking state, thereby blocking 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 has reverse polarity, the first P-type MOS transistor is in a blocking state, so that the second P-type MOS transistor is also in a blocking state, thereby blocking the connection between the target DC power supply and the subsequent circuit.
7. The circuit according to claim 1, wherein: The voltage reference module includes a voltage stabilizer, an input protection structure, an input stage filter structure and an output stage filter structure; The input end of the voltage regulator is connected to the 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 regulator, 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 end of the voltage regulator, 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 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.
8. A driving method for an adaptive DC input interface circuit, characterized in that: The adaptive DC input interface circuit according to any one of claims 1 to 7, comprising 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 the target DC power supply to be detected, obtains a reference DC power supply and transmits it 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 voltage to be detected corresponding to the target DC power supply and a reference voltage corresponding to the reference DC power supply, obtains a voltage comparison result based on the difference between the voltage to be detected and the reference voltage, and transmits the result to the adaptive protection module; The adaptive protection module performs polarity detection on the target DC power supply to obtain a power polarity detection result corresponding to the target DC power supply; If the power polarity detection result indicates that the target DC power supply has a positive polarity, and the voltage comparison result indicates that the voltage of the target DC power supply is within a preset voltage control range, the adaptive protection module switches on 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 has a positive polarity, and the voltage comparison result indicates that the 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 polarity detection result indicates that the target DC power supply has reverse polarity, the adaptive protection module directly blocks the connection between the target DC power supply and the subsequent circuit.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to claim 8 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to claim 8 are implemented.
Citation Information
Patent Citations
Post-stage direct-current power supply circuit
CN113078616A
Flyback architecture input under-voltage and overvoltage protection circuit applied to power industry
CN114400620A
Voltage-adaptive double-NMOS (N-channel metal oxide semiconductor) anti-reverse-connection power supply protection circuit
CN119050978A
Overvoltage and undervoltage protection circuit with designed voltage automatic power-off
CN212849825U
Undervoltage and overvoltage protection circuit for automobile electronic module
CN220754336U