Hardware insertion identification circuit and interface circuit

By designing a hardware insertion recognition circuit, and using level conversion and ground level control modules to identify hardware insertion, the problem of hardware insertion recognition failure when there is no protocol in the prior art is solved, and simple and efficient hardware insertion recognition is achieved.

CN119628620APending Publication Date: 2025-03-14立讯技术(西安)有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411676657.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The problem of hardware insertion identification failure when there is no agreement in the prior art.

Method used

A hardware insertion recognition circuit is designed, including a pull-up auxiliary source module, a level conversion module, a ground level control module and a main control module. The pull-up auxiliary source module is connected to the interface to be identified to form a loop; the level conversion module performs level conversion according to the voltage difference between the terminal ground and the plate-level ground; the main control module outputs a control signal based on the level signal output by the level conversion module, and controls the ground level control module to turn on the terminal ground and the plate-level ground to eliminate the voltage difference.

Benefits of technology

It realizes hardware insertion identification through the change in voltage difference between terminal ground and plate-level ground. The recognition process is simple and efficient, and solves the problem of hardware insertion identification failure when there is no protocol.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119628620A_ABST
    Figure CN119628620A_ABST
Patent Text Reader

Abstract

The invention discloses a hardware insertion identification circuit and an interface circuit. The hardware insertion identification circuit comprises a pull-up auxiliary source module, a level conversion module, a grounding level control module and a main control module, the pull-up auxiliary source module is connected with a to-be-identified interface, and is used for forming a loop with a load when the to-be-identified interface is connected with the load; the grounding level control module is connected to the terminal ground of the to-be-identified interface, the board-level ground and the main control module; the level conversion module is respectively connected with the terminal ground and the board-level ground, and is used for performing level conversion according to the voltage difference between the terminal ground and the board-level ground; and the main control module is connected with the level conversion module and is used for outputting a control signal to the grounding level control module according to the level signal output by the level conversion module so as to control the connection state between the terminal ground and the board-level ground. The hardware identification circuit provided by the invention can realize hardware insertion identification when the interface has no protocol regulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of circuit design, and in particular to a hardware insertion identification circuit and an interface circuit. Background Art

[0002] The interface circuit is a logic circuit for information exchange between computers or between a computer and an external device. After the hardware inserted into the interface is identified, the corresponding functional circuit in the computer is turned on.

[0003] At present, hardware insertion identification usually requires clear protocol provisions between the computer control end and the device load end. If the computer control end does not have protocol judgment, then this hardware insertion identification will fail. Summary of the invention

[0004] The invention provides a hardware insertion identification circuit and an interface circuit to solve the problem of hardware insertion identification failure when there is no protocol regulation in the prior art.

[0005] According to one aspect of the present invention, there is provided a hardware insertion identification circuit, comprising a pull-up auxiliary source module, a level conversion module, a ground level control module and a main control module;

[0006] The pull-up auxiliary source module is connected to the interface to be identified, and the pull-up auxiliary source module is used to form a loop with the load when the interface to be identified is connected to the load;

[0007] The ground level control module is connected to the terminal ground, the board ground and the main control module of the interface to be identified;

[0008] The level conversion module is connected to the terminal ground and the board ground respectively, and is used for performing level conversion according to the voltage difference between the terminal ground and the board ground;

[0009] The main control module is connected to the level conversion module, and is used to output a control signal to the ground level control module according to the level signal output by the level conversion module, so as to control the connection state between the terminal ground and the board-level ground.

[0010] Optionally, the level conversion module includes a first switch unit, a control end of the first switch unit is connected to the terminal ground, a first end of the first switch unit is connected to the main control module and the first power supply, a second end of the first switch unit is connected to the board-level ground, and the first switch unit is used to conduct according to the voltage difference between the terminal ground and the board-level ground.

[0011] Optionally, the level conversion module also includes a first voltage stabilizing unit and a voltage dividing unit, the first end of the first voltage stabilizing unit and the first end of the voltage dividing unit are connected to the board-level ground, the second end of the first voltage stabilizing unit and the second end of the voltage dividing unit are connected to the terminal ground, the output end of the voltage dividing unit is connected to the control end of the first switching unit, the first voltage stabilizing unit is used to stabilize the voltage between the terminal ground and the board-level ground, and the voltage dividing unit is used to divide the voltage between the terminal ground and the board-level ground.

[0012] Optionally, the first switch unit is a first transistor, the control end of the first transistor is the control end of the first switch unit, the first end of the first transistor is the first end of the first switch unit, and the second end of the first transistor is the second end of the first switch unit.

[0013] Optionally, the first voltage stabilizing unit includes a first voltage stabilizing diode, a first end of the first voltage stabilizing diode is connected to the first end of the first voltage stabilizing unit, and a second end of the first voltage stabilizing diode is connected to the second end of the first voltage stabilizing unit; the voltage dividing unit includes a first resistor and a second resistor, a first end of the first resistor is connected to the first end of the voltage dividing unit, a second end of the first resistor is connected to the first end of the second resistor and the output end of the voltage dividing unit, and a second end of the second resistor is connected to the second end of the voltage dividing unit.

[0014] Optionally, the pull-up auxiliary source module includes a second voltage stabilizing unit, a first end of the second voltage stabilizing unit is connected to the first power supply and the power supply end of the interface to be identified, a second end of the second voltage stabilizing unit is connected to the board-level ground, and the second voltage stabilizing unit is used to limit voltage shock.

[0015] Optionally, the second voltage stabilizing unit includes a second voltage stabilizing tube, a first end of the second voltage stabilizing tube is connected to a first end of the second voltage stabilizing unit, and a second end of the second voltage stabilizing tube is connected to a second end of the second voltage stabilizing unit.

[0016] Optionally, the ground level control module includes a second switch unit, a control end of the second switch unit is connected to the main control module, a first end of the second switch unit is connected to the terminal ground, a second end of the second switch unit is connected to the board-level ground, and the second switch unit is used to turn on or off according to a control signal output by the main control module.

[0017] Optionally, the second switch unit includes a second transistor, a control end of the second transistor is connected to the control end of the second switch unit, a first end of the second transistor is connected to the first end of the second switch unit, and a second end of the second transistor is connected to the second end of the second switch unit.

[0018] According to another aspect of the present invention, an interface circuit is provided, comprising the hardware insertion identification circuit.

[0019] The technical solution of the embodiment of the present invention provides a hardware insertion identification circuit, including a pull-up auxiliary source module, a level conversion module, a ground level control module and a main control module; the pull-up auxiliary source module is connected to the interface to be identified, and the pull-up auxiliary source module is used to form a loop with the load when the interface to be identified is connected to the load, the ground level control module is connected to the terminal ground, the board-level ground and the main control module of the interface to be identified, the level conversion module is respectively connected to the terminal ground and the board-level ground, and is used to perform level conversion according to the voltage difference between the terminal ground and the board-level ground, the main control module is connected to the level conversion module, and the main control module is used to output a control signal to the ground level control module according to the level signal output by the level conversion module, so as to control the connection state between the terminal ground and the board-level ground. When the interface is connected to the load, there is a voltage difference between the terminal ground and the board-level ground, the level signal output by the level conversion module is flipped, the main control module outputs a control signal according to the level signal output by the level conversion module, and the grounding level control module controls the terminal ground and the board-level ground to be connected, so that the voltage difference between the terminal ground and the board-level ground is zero, that is, the hardware insertion is identified by the change in the voltage difference between the terminal ground and the board-level ground. The identification process is simple and efficient, and the problem of hardware insertion identification failure when there is no protocol provision in the prior art is solved.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 is a structural schematic diagram of a hardware insertion identification circuit provided by an embodiment of the present invention;

[0023] Figure 2 is a circuit diagram of a hardware insertion identification circuit provided by an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a hardware insertion identification circuit provided by an embodiment of the present invention;

[0025] Figure 4 It is a hardware insertion identification circuit provided in the related art;

[0026] Figure 5 It is a circuit diagram of another hardware insertion identification circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] An embodiment of the present invention provides a hardware insertion identification circuit. Figure 1 is a schematic diagram of the structure of a hardware insertion identification circuit provided by an embodiment of the present invention, such as Figure 1 As shown, the hardware insertion identification circuit 100 includes a pull-up auxiliary source module 110, a level conversion module 120, a ground level control module 130 and a main control module 140; the pull-up auxiliary source module 110 is connected to the interface P to be identified, and the pull-up auxiliary source module 110 is used to form a loop with the load when the interface P to be identified is connected to the load; the ground level control module 130 is connected to the terminal ground GND1 of the interface P to be identified, the board-level ground GND and the main control module 140; the level conversion module 120 is respectively connected to the terminal ground GND1 and the board-level ground GND, and is used to perform level conversion according to the voltage difference between the terminal ground GND1 and the board-level ground GND; the main control module 140 is connected to the level conversion module 120, and the main control module 140 is used to output a control signal to the ground level control module 130 according to the level signal output by the level conversion module 120, so as to control the connection state between the terminal ground GND1 and the board-level ground GND.

[0030] In this embodiment, the hardware insertion identification circuit 100 is a circuit that automatically detects the interface access hardware, and can be applied to a plug-and-play interface circuit, for example, the interface circuit is a USB interface circuit or a TYPEC interface circuit, etc. The interface P to be identified includes a plurality of pins, the terminal ground GND1 is the ground pin of the interface P to be identified, and the board-level ground GND is the ground terminal of the device where the interface P to be identified is located. The pull-up auxiliary source module 110 is a module that provides power, and is connected to the terminal power supply VBUS1 of the interface P to be identified. The level conversion module 120 is a module that performs level conversion according to the voltage difference between the terminal ground GND1 and the board-level ground GND. For example, when there is a voltage difference between the terminal ground GND1 and the board-level ground GND, the level conversion module 120 outputs a low-level signal. When there is no voltage difference between the terminal ground GND1 and the board-level ground GND, the level conversion module 120 outputs a high-level signal. The ground level control module 130 is a module for controlling the connection state between the terminal ground GND1 and the board-level ground GND. The main control module 140 is a module for processing the level signal output by the level conversion module 120 and outputting a control signal.

[0031] In this embodiment, after the interface P to be identified is connected to the load, the pull-up auxiliary source module 110 forms a loop with the load through the terminal power supply VBUS1 of the interface P to be identified. Since the ground level control module 130 is not connected, a voltage difference is generated between the terminal ground GND1 and the board-level ground GND, so that the level conversion module 120 is turned on, and the level conversion module 120 outputs a low-level signal. The main control module 140 outputs a control signal according to the received low-level signal. For example, the control signal is a high-level signal. At this time, the ground level control module 130 is turned on according to the control signal, the terminal ground GND1 and the board-level ground GND are connected, and the voltage difference between the terminal ground GND1 and the board-level ground GND is zero. The hardware insertion is identified by the change in the voltage difference between the terminal ground and the board-level ground, and the identification process is simple and efficient.

[0032] The technical solution of this embodiment provides a hardware insertion identification circuit, including a pull-up auxiliary source module, a level conversion module, a ground level control module and a main control module; the pull-up auxiliary source module is connected to the interface to be identified, and the pull-up auxiliary source module is used to form a loop with the load when the interface to be identified is connected to the load, the ground level control module is connected to the terminal ground, the board-level ground and the main control module of the interface to be identified, the level conversion module is respectively connected to the terminal ground and the board-level ground, and is used to perform level conversion according to the voltage difference between the terminal ground and the board-level ground, the main control module is connected to the level conversion module, and the main control module is used to output a control signal to the ground level control module according to the level signal output by the level conversion module, so as to control the connection state between the terminal ground and the board-level ground. When the interface is connected to the load, there is a voltage difference between the terminal ground and the board-level ground, the level signal output by the level conversion module is flipped, the main control module outputs a control signal according to the level signal output by the level conversion module, and the grounding level control module controls the terminal ground and the board-level ground to be connected, so that the voltage difference between the terminal ground and the board-level ground is zero, that is, the hardware insertion is identified by the change in the voltage difference between the terminal ground and the board-level ground. The identification process is simple and efficient, and the problem of hardware insertion identification failure when there is no protocol provision in the prior art is solved.

[0033] Figure 2 is a circuit diagram of a hardware insertion identification circuit provided by an embodiment of the present invention, Figure 3 is a schematic diagram of a hardware insertion identification circuit provided by an embodiment of the present invention, such as Figure 2 and Figure 3 As shown, the level conversion module 120 includes a first switch unit 210, a control end of the first switch unit 210 is connected to the terminal ground GND1, a first end of the first switch unit 210 is connected to the main control module 140 and the first power supply V1, a second end of the first switch unit 210 is connected to the board-level ground GND, and the first switch unit 210 is used to conduct according to the voltage difference between the terminal ground GND1 and the board-level ground GND. Figure 3 As shown, the load is connected to the interface P to be identified through a cable, and the terminals at the cable end are correspondingly connected to the terminals of the interface P to be identified. For example, the terminal power VBUS at the cable end is connected to the terminal power VBUS of the interface P to be identified, and the terminal ground GND1 at the cable end is connected to the terminal ground GND1 of the interface P to be identified.

[0034] In this embodiment, the first switch unit 210 is a unit including a switch element. The first switch unit 210 is turned on according to the voltage difference between the terminal ground GND1 and the board-level ground GND. On the basis of the above embodiment, after the interface P to be identified is connected to the load, the pull-up auxiliary source module 110 forms a loop with the load through the terminal power supply VBUS1 of the interface P to be identified. Since the ground level control module 130 is not turned on, a voltage difference is generated between the terminal ground GND1 and the board-level ground GND, and the first switch unit 210 is turned on. The first switch unit 210 transmits a low-level signal to the main control module 140.

[0035] Continue to refer Figure 2 and Figure 3 The level conversion module 120 also includes a first voltage stabilizing unit 220 and a voltage dividing unit 230. The first end of the first voltage stabilizing unit 220 and the first end of the voltage dividing unit 230 are connected to the board-level ground GND, the second end of the first voltage stabilizing unit 220 and the second end of the voltage dividing unit 230 are connected to the terminal ground GND1, and the output end of the voltage dividing unit 230 is connected to the control end of the first switch unit 210. The first voltage stabilizing unit 220 is used to stabilize the voltage between the terminal ground GND1 and the board-level ground GND, and the voltage dividing unit 230 is used to divide the voltage between the terminal ground GND1 and the board-level ground GND.

[0036] In this embodiment, the first voltage stabilizing unit 220 can keep the voltage difference between the board-level ground GND and the terminal ground GND1 stable, improve the stability of the voltage at the control end of the first switch unit 210, and ensure the normal operation of the first switch unit 210. The voltage dividing unit 230 is a unit for dividing the voltage between the board-level ground GND and the terminal ground GND1, and the voltage output by the voltage dividing unit 230 can meet the working requirements of the first switch unit 210.

[0037] Specifically, the first switch unit 210 includes a first transistor Q1, a control end of the first transistor Q1 is connected to the control end of the first switch unit 210, a first end of the first transistor Q1 is connected to the first end of the first switch unit 210, and a second end of the first transistor Q1 is connected to the second end of the first switch unit 210. The first voltage stabilizing unit 220 includes a first voltage stabilizing tube T1, a first end of the first voltage stabilizing tube T1 is connected to the first end of the first voltage stabilizing unit 220, and a second end of the first voltage stabilizing tube T1 is connected to the second end of the first voltage stabilizing unit 220; the voltage dividing unit 230 includes a first resistor R1 and a second resistor R2, a first end of the first resistor R1 is connected to the first end of the voltage dividing unit 230, a second end of the first resistor R1 is connected to the first end of the second resistor R2 and the output end of the voltage dividing unit 230, and a second end of the second resistor R2 is connected to the second end of the voltage dividing unit 230.

[0038] On the basis of the above embodiment, the level conversion unit 120 also includes a sixth resistor R6, a seventh resistor R7 and a third voltage regulator T3. After the interface P to be identified is connected to the load, the pull-up auxiliary source module 110 forms a loop with the load through the terminal power supply VBUS1 of the interface P to be identified. Since the ground level control module 130 is not connected, a voltage difference is generated between the terminal ground GND1 and the board-level ground GND. The first voltage regulator T1 clamps the generated voltage to improve the working stability of the circuit. For example, the first voltage regulator T1 is a bidirectional ESD tube with anti-static effect. The first resistor R1 and the second resistor R2 in the voltage divider unit 230 divide the clamping voltage of the first voltage regulator T1, and transmit the divided voltage to the control end of the first transistor Q1. The first transistor Q1 is turned on and outputs a low-level signal. The main control module 140 outputs a control signal according to the low-level signal.

[0039] Continue to refer Figure 2 The pull-up auxiliary source module 110 includes a second voltage stabilizing unit 240, a first end of the second voltage stabilizing unit 240 is connected to the first power source V1 and the power supply end VBUS1 of the interface to be identified P, a second end of the second voltage stabilizing unit 240 is connected to the board-level ground GND, and the second voltage stabilizing unit 240 is used to limit voltage impact. Among them, the second voltage stabilizing unit 240 is a unit that limits voltage impact to ensure stable operation of the circuit.

[0040] Specifically, the second voltage stabilizing unit 240 includes a second voltage stabilizing tube T2, a first end of the second voltage stabilizing tube T2 is connected to a first end of the second voltage stabilizing unit 240, and a second end of the second voltage stabilizing tube T2 is connected to a second end of the second voltage stabilizing unit 240. After the pull-up auxiliary source module 110 forms a loop with the load through the interface, the second voltage stabilizing tube T2 can limit the impact of the interface voltage on the circuit.

[0041] In this embodiment, the pull-up auxiliary source module 110 also includes a first diode D1 and a third resistor R3. The first end of the first diode D1 is connected to the first power supply V1, the second end of the first diode D1 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is connected to the second voltage stabilizing unit 240. The first diode D1 has a backflow prevention function.

[0042] Continue to refer Figure 2 and Figure 3The ground level control module 130 includes a second switch unit 250, a control end of the second switch unit 250 is connected to the main control module 140, a first end of the second switch unit 250 is connected to the terminal ground GND1, a second end of the second switch unit 250 is connected to the board-level ground GND, and the second switch unit 250 is used to turn on or off according to the control signal output by the main control module 140. The second switch unit 250 is a unit including a switch element, and the second switch unit 250 connects the terminal ground GND1 and the board-level ground GND. The turning on or off of the second switch unit 250 changes the voltage difference between the terminal ground GND1 and the board-level ground GND.

[0043] Specifically, the second switch unit 250 includes a second transistor Q2, the control end of the second transistor Q2 is connected to the control end of the second switch unit 250, the first end of the second transistor Q2 is connected to the first end of the second switch unit, and the second end of the second transistor Q2 is connected to the second end of the second switch unit 250. The ground level control module 130 also includes a fourth resistor R4 and a fifth resistor R5, the first end of the fourth resistor R4 is connected to the control end of the second switch unit 250, the second end of the fourth resistor R4 is connected to the first end of the fifth resistor R5 and the control end of the second transistor Q2, and the fifth resistor R5 is connected to the board-level ground GND. The main control module 140 includes a microcontroller, and the microcontroller transmits signals through pins GPIO1 and GPIO2.

[0044] On the basis of the above embodiment, after the interface P to be identified is connected to the load, the first power supply V1 forms a loop with the load through the first diode D1, the third resistor R3, and the terminal power supply VBUS1 of the interface P to be identified. At this time, since the second transistor Q2 is not turned on, a voltage difference is generated between the terminal ground GND1 and the board-level ground GND, and the first voltage regulator T1 clamps the generated voltage. The first resistor R1 and the second resistor R2 in the voltage dividing unit 230 divide the clamped voltage of the first voltage regulator T1, and transmit the divided voltage to the control end of the first transistor Q1. The first transistor Q1 is turned on and outputs a low-level signal. The pin GPIO2 of the microcontroller receives the low-level signal. The microcontroller processes the low-level signal and outputs a high-level signal through the pin GPIO1. The second transistor Q2 is turned on, that is, the terminal ground GND1 and the board-level ground GND are connected, and the voltage difference between the terminal ground GND1 and the board-level ground GND becomes zero. The hardware insertion identification circuit identifies the hardware insertion through the change in the voltage difference between the terminal ground and the board-level ground.

[0045] Referring to the above embodiment, the interface P to be identified is a TYPEC interface, and the TYPEC interface further includes pins GND2, GND3, GND4, VBUS2, VBUS3, VBUS4, SBU1, SBU2, DN1, DN2, DP1, DP2, CC1, and CC2, and pins VBUS1, VBUS2, VBUS3, and VBUS4 are powered by a POWER signal output by a computer connected to the interface. In the prior art, for a TYPEC interface circuit, a hardware insertion identification circuit is generally connected to a control line connected to pins CC1 and CC2. Figure 4 It is a hardware insertion identification circuit provided in the related art. The hardware insertion identification circuit is connected to the control cable. The control cable is connected to the pin CC1 and pin CC2 of the power supply party (equivalent to the interface circuit), and is connected to the power receiving party (equivalent to the load). The power supply party includes a power supply VCC, a resistor R01 and a resistor R02, and the power receiving party includes a resistor R03 and a resistor R04. When the interface of the power supply party detects a pull-down resistor, it means that a load is inserted, and when the power receiving party detects a pull-up resistor, it means that power is coming in. For such an interface where the functional circuit is not powered off, the insertion identification circuit is effective, wherein the functional circuit supplies power to the interface, but when the functional circuit is powered off, it will lose the ability to judge the pull-up and pull-down, and the insertion identification circuit will fail. In this embodiment, the pull-up auxiliary source module 110 forms a loop with the connected load, and insertion identification can be performed when there is no electrical signal in the POWER signal of the terminal power supply of the interface, which makes up for the defect of power failure in the above-mentioned prior art.

[0046] Based on the above embodiment, the hardware insertion identification circuit can also be used in a USB interface circuit. Figure 5 is a circuit diagram of another hardware insertion identification circuit provided by an embodiment of the present invention, such as Figure 5 As shown, the hardware insertion identification circuit includes a pull-up auxiliary source module 110, a level conversion module 120, a ground level control module 130 and a main control module 140. The interface P to be identified is a USB interface. The USB interface includes pins M1, M2, VCC, D-, D+ and GND1, wherein pin VCC is equivalent to the terminal power supply VBUS1 in the TYPEC interface.

[0047] In this embodiment, after the interface P to be identified is connected to the load, the first power supply V1 forms a loop with the load through the first diode D1, the third resistor R3, and the pin VCC of the interface P to be identified. At this time, since the second transistor Q2 is not turned on, a voltage difference is generated between the pin GND1 and the board-level ground GND, and the first voltage regulator T1 clamps the generated voltage. The first resistor R1 and the second resistor R2 in the voltage dividing unit 230 divide the clamped voltage of the first voltage regulator T1, and transmit the divided voltage to the control end of the first transistor Q1. The first transistor Q1 is turned on and outputs a low-level signal, and the pin GPIO2 of the microcontroller receives the low-level signal. The microcontroller processes the low-level signal and outputs a high-level signal through the pin GPIO1. The second transistor Q2 is turned on, that is, the pin GND1 is connected to the board-level ground GND, and the voltage difference between the pin GND1 and the board-level ground GND becomes zero. The hardware insertion identification circuit identifies the hardware insertion through the change in the voltage difference between the interface pin GND1 and the board-level ground.

[0048] The embodiment of the present invention further provides an interface circuit, which includes a hardware insertion identification circuit. The hardware insertion identification circuit 100 is an important circuit structure of the interface circuit. When the hardware insertion identification circuit identifies that the interface to be identified is connected to a load, the interface circuit enables the corresponding functional circuit.

[0049] In this embodiment, the hardware insertion identification circuit 100 is provided with a level conversion module and a ground level control module. When the interface is connected to the load, there is a voltage difference between the terminal ground and the board-level ground, and the level signal output by the level conversion module is flipped. The main control module outputs a control signal according to the level signal output by the level conversion module. The ground level control module controls the terminal ground and the board-level ground to be connected, so that the voltage difference between the terminal ground and the board-level ground is zero, and the hardware insertion is identified by the change of the voltage difference between the terminal ground and the board-level ground. The identification process is simple and efficient. By providing a pull-up auxiliary source module and the connected load to form a loop, the insertion identification can be performed when there is no electrical signal at the terminal power supply of the interface, and the effect of energy saving and consumption reduction can be achieved. At the same time, the hardware insertion identification circuit has no requirements on the form of the interface terminal and is a universal hardware insertion identification circuit. Applying the hardware insertion identification circuit to the interface circuit can improve the energy level of the interface circuit.

[0050] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0051] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A hardware insertion identification circuit, characterized in that: It includes a pull-up auxiliary source module, a level conversion module, a ground level control module and a main control module; The pull-up auxiliary source module is connected to the interface to be identified, and the pull-up auxiliary source module is used to form a loop with the load when the interface to be identified is connected to the load; The ground level control module is connected to the terminal ground, the board ground and the main control module of the interface to be identified; The level conversion module is connected to the terminal ground and the board ground respectively, and is used for performing level conversion according to the voltage difference between the terminal ground and the board ground; The main control module is connected to the level conversion module, and is used to output a control signal to the ground level control module according to the level signal output by the level conversion module, so as to control the connection state between the terminal ground and the board-level ground.

2. The hardware insertion identification circuit according to claim 1, characterized in that: The level conversion module includes a first switch unit, a control end of the first switch unit is connected to the terminal ground, a first end of the first switch unit is connected to the main control module and the first power supply, a second end of the first switch unit is connected to the board-level ground, and the first switch unit is used to be turned on according to the voltage difference between the terminal ground and the board-level ground.

3. The hardware insertion identification circuit according to claim 2, characterized in that: The level conversion module also includes a first voltage stabilizing unit and a voltage dividing unit, wherein a first end of the first voltage stabilizing unit and a first end of the voltage dividing unit are connected to the board-level ground, a second end of the first voltage stabilizing unit and a second end of the voltage dividing unit are connected to the terminal ground, an output end of the voltage dividing unit is connected to a control end of the first switch unit, the first voltage stabilizing unit is used to stabilize the voltage between the terminal ground and the board-level ground, and the voltage dividing unit is used to divide the voltage between the terminal ground and the board-level ground.

4. The hardware insertion identification circuit according to claim 2, characterized in that: The first switch unit is a first transistor, the control end of the first transistor is the control end of the first switch unit, the first end of the first transistor is the first end of the first switch unit, and the second end of the first transistor is the second end of the first switch unit.

5. The hardware insertion identification circuit according to claim 3, characterized in that: The first voltage stabilizing unit includes a first voltage stabilizing tube, a first end of the first voltage stabilizing tube is connected to the first end of the first voltage stabilizing unit, and a second end of the first voltage stabilizing tube is connected to the second end of the first voltage stabilizing unit; the voltage dividing unit includes a first resistor and a second resistor, a first end of the first resistor is connected to the first end of the voltage dividing unit, a second end of the first resistor is connected to the first end of the second resistor and the output end of the voltage dividing unit, and a second end of the second resistor is connected to the second end of the voltage dividing unit.

6. The hardware insertion identification circuit according to claim 1, characterized in that: The pull-up auxiliary source module includes a second voltage stabilizing unit, a first end of the second voltage stabilizing unit is connected to the first power supply and the power supply end of the interface to be identified, a second end of the second voltage stabilizing unit is connected to the board-level ground, and the second voltage stabilizing unit is used to limit voltage shock.

7. The hardware insertion identification circuit according to claim 6, characterized in that: The second voltage stabilizing unit includes a second voltage stabilizing tube, a first end of the second voltage stabilizing tube is connected to a first end of the second voltage stabilizing unit, and a second end of the second voltage stabilizing tube is connected to a second end of the second voltage stabilizing unit.

8. The hardware insertion identification circuit according to claim 1, characterized in that: The ground level control module includes a second switch unit, a control end of the second switch unit is connected to the main control module, a first end of the second switch unit is connected to the terminal ground, a second end of the second switch unit is connected to the board-level ground, and the second switch unit is used to turn on or off according to a control signal output by the main control module.

9. The hardware insertion identification circuit according to claim 8, characterized in that: The second switch unit includes a second transistor, a control end of the second transistor is connected to the control end of the second switch unit, a first end of the second transistor is connected to the first end of the second switch unit, and a second end of the second transistor is connected to the second end of the second switch unit.

10. An interface circuit, characterized in that: The invention comprises the hardware insertion identification circuit described in claims 1-9.