Interface short circuit detection circuit and device
By combining the control module and the level setting module, the interface short circuit detection circuit is simplified, the problems of complex design and high cost in the prior art are solved, and low-cost interface short circuit detection is achieved.
Patent Information
- Application Number
- CN202422488380.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-09-30
- Estimated Expiration
- 2034-10-14
AI Technical Summary
The existing interface short-circuit detection circuit is complex and costly to design, and requires the provision of +100uA and -100uA current sources, which increases the complexity and cost of the circuit.
A combination of a control module and a level setting module is adopted to detect whether the interface pin is short-circuited by outputting a control signal and a level signal, thereby avoiding the use of an additional current source, simplifying circuit design and reducing costs.
The circuit design is simplified, the cost is reduced, and the short circuit detection function can effectively detect whether the interface pins are short-circuited, thereby preventing the failure and damage of the electronic equipment caused by the short circuit.
Smart Images

Figure CN223401026U_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of integrated circuit testing, and in particular relates to an interface short circuit detection circuit and device. Background Art
[0002] In order to ensure the safe use of electronic devices, it is necessary to perform a short-circuit test on the pins of the electronic devices before using them to prevent the electronic devices from malfunctioning or being damaged due to failure to identify the short circuit of the pins.
[0003] The current detection circuit needs to provide +100uA and -100uA current sources when detecting the pin under test, which increases the complexity and cost of the detection circuit. Utility Model Content
[0004] The embodiments of the present application provide an interface short circuit detection circuit and device, which can solve the problems of complex circuit design and high cost in current detection circuits.
[0005] In a first aspect, an embodiment of the present application provides an interface short circuit detection circuit, comprising a control module and n level setting modules, wherein the level setting module comprises a switch unit, a resistor unit, and a first power supply unit, wherein the switch unit is respectively connected to the resistor unit, the control module, and corresponding pins of the interface under test, the resistor unit is connected to the first power supply unit, and the switch unit is also grounded; wherein n is a natural number greater than 0;
[0006] The control module is used to output n first control signals; each of the switch units is used to disconnect according to the first control signal; each of the resistor units is used to disconnect from the ground after the switch unit is disconnected, and provide a first level signal to the corresponding pin of the interface under test; the control module is also used to collect the level signals at the n pins of the interface under test, and determine whether each pin is short-circuited to the ground based on the level signals at the n pins of the interface under test.
[0007] In a possible implementation of the first aspect, the level setting module further includes a current limiting unit, which is connected to corresponding pins of the resistance unit, the switch unit, the control module, and the interface under test respectively;
[0008] The current limiting unit is used to perform circuit protection on the switch unit.
[0009] In a possible implementation of the first aspect, the switching unit includes a field effect transistor, a gate of the field effect transistor is connected to the control module, a drain of the field effect transistor is respectively connected to the resistance unit, the control module and the current limiting unit, and a source of the field effect transistor is grounded.
[0010] In a possible implementation of the first aspect, the resistance unit includes a first resistor, a first end of the first resistor is connected to the first power supply unit, and a second end of the first resistor is respectively connected to the switch unit, the control module and the current limiting unit.
[0011] In a possible implementation of the first aspect, the current limiting unit includes a second resistor, the first end of the second resistor is respectively connected to the switch unit, the resistance unit and the control module, and the second end of the second resistor is used to connect to the corresponding pin of the interface under test.
[0012] In a possible implementation of the first aspect, the interface short circuit detection circuit also includes an interface module, the n pins of the interface module are respectively connected to the n level setting modules, and the n pins of the interface module are also respectively used to connect to the n pins of the interface under test.
[0013] In a possible implementation of the first aspect, the interface short circuit detection circuit further includes a display module, and the display module is connected to the control module;
[0014] The control module is also used to transmit the detection results of whether each pin of the tested interface is short-circuited and / or the short-circuited pin identification to the display module; the display module is used to display the detection results of whether each pin of the tested interface is short-circuited and / or the short-circuited pin identification.
[0015] In a possible implementation of the first aspect, the interface short circuit detection circuit further includes a switch module, wherein the switch module is connected to the control module and a level setting modules respectively; wherein 1<a≤n;
[0016] The switch module is used to switch the connection state between the control module and a level setting modules.
[0017] In a possible implementation manner of the first aspect, the switch module includes a switches, a first end of each switch is connected to the level setting module, and a second end of each switch is connected to the control module.
[0018] In a second aspect, an embodiment of the present application provides an interface short circuit detection device, comprising the interface short circuit detection circuit described in any one of the first aspects.
[0019] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0020] An embodiment of the present application provides an interface short-circuit detection circuit, comprising a control module and n level setting modules, wherein the level setting modules include a switch unit, a resistor unit, and a first power supply unit, wherein the switch unit is respectively connected to the resistor unit, the control module, and corresponding pins of the interface under test, the resistor unit is connected to the first power supply unit, and the switch unit is also grounded. Where n is a natural number greater than 0.
[0021] The control module is configured to output n first control signals. Each switch unit is configured to disconnect in response to the first control signal; each resistor unit is configured to disconnect from ground after the switch unit is disconnected and provide a first level signal to the corresponding pin of the interface under test. The control module is further configured to collect level signals at the n pins of the interface under test and determine whether each pin is short-circuited to ground based on the level signals at the n pins of the interface under test.
[0022] The control module in this application applies a level signal to the pin of the interface under test via the level setting module, then collects the level signal at the pin of the interface under test, and finally determines whether the pin of the interface under test is short-circuited to ground based on the collected level signal. The entire circuit architecture only uses the control module and the level setting module, and does not require an additional current source. Compared to detection circuits that use current sources for short-circuit detection, this application simplifies the complexity of circuit design and also reduces circuit cost.
[0023] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. 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 any creative work.
[0025] Figure 1 This is the schematic diagram of the existing detection circuit;
[0026] Figure 2 This is a principle block diagram of an interface short circuit detection circuit provided in one embodiment of the present application;
[0027] Figure 3 This is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0028] Figure 4 This is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0029] Figure 5This is a circuit connection diagram of an interface short circuit detection circuit provided in one embodiment of the present application;
[0030] Figure 6 This is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0031] Figure 7 This is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0032] Figure 8 1 is a circuit connection diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0033] Figure 9 This is a flow chart of an interface short circuit detection method provided by an embodiment of the present application;
[0034] Figure 10 This is a flowchart of an interface short circuit detection method provided by another embodiment of the present application.
[0035] In the figure: 10, control module; 11, controller; 12, second power supply unit; 20, level setting module; 21, switch unit; 22, resistor unit; 23, first power supply unit; 24, current limiting unit; 30, interface module; 40, display module; 50, switch module; 60, measured interface. DETAILED DESCRIPTION
[0036] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0037] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0038] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0039] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0040] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0041] The principle block diagram of the current detection circuit is as follows Figure 1 As shown, it uses the diode at each pin to detect short circuits. The specific detection method is as follows: test the voltage drop of the diode connected to the power supply, control the relay switch K2 to conduct, control the relay switch K1 to disconnect, input a current of +100uA to the tested pin, and all other pins are set to zero potential or directly grounded. After the diode connected to the power supply is turned on, the voltage at the tested pin is collected, and whether the tested pin is short-circuited is determined based on the voltage at the tested pin; test the voltage drop of the diode connected to the ground, control the relay switch K1 to conduct, control the relay switch K2 to conduct, input a current of -100uA to the tested pin, and all other pins are set to zero potential or directly grounded. After the diode connected to the ground is turned on, the voltage at the tested pin is collected, and whether the tested pin is short-circuited is determined based on the voltage at the tested pin.
[0042] As can be seen from the above, when the current detection circuit detects the tested pin, it is not only necessary to add two diodes at the tested pin, but also to provide +100uA and -100uA current sources, which increases the complexity and cost of the detection circuit.
[0043] In order to solve the above problems, the present invention provides an interface short circuit detection circuit. Figure 2As shown, the interface short circuit detection circuit includes a control module 10 and n level setting modules 20, the control module 10 is respectively connected to the n level setting modules 20, and the n level setting modules 20 are respectively used to be connected to the n pins of the tested interface 60. Wherein, n is a natural number greater than 0. It should be noted that the tested interface 60 is an interface on the tested circuit board, which can be one or more interfaces, including but not limited to HDMI (High Definition Multimedia Interface, high-definition multimedia interface) interface, DP (DisplayPort, display interface) interface, DVI (Digital Visual Interface, digital video interface) interface, network port, etc. By performing short circuit detection on the interface on the tested circuit board, the safety of the tested circuit board can be ensured, and then the safety of the electronic device can be ensured.
[0044] Specifically, when the interface short circuit detection circuit is powered on, the control module 10 is used to output n first control signals. In the embodiment of the present application, the first control signal is a low-level signal. The n level setting modules 20 are respectively used to provide a first level signal to the corresponding pin of the tested interface 60 according to the first control signal. In the embodiment of the present application, the first level signal is a high-level signal, that is, the initial level signal at the n pins of the tested interface 60 is a high-level signal. The control module 10 is also used to collect the level signals at the n pins of the tested interface 60 through the n level setting modules 20, and determine whether each pin is short-circuited to ground based on the level signals at the n pins of the tested interface 60. It should be noted that the control module 10 has an ADC (analog to digital converter) acquisition function. More specifically, when the level signals at the n pins of the tested interface 60 are all greater than a preset threshold, it is determined that none of the n pins of the tested interface 60 are short-circuited to ground. When the level signal at some of the n pins of the tested interface 60 is less than a preset threshold, it is determined that some of the pins of the tested interface 60 are short-circuited to ground. For example, the preset threshold can be set to 0.8V. The voltage value of the preset threshold needs to be set based on the device-side status of the tested pins, and this application does not limit this.
[0045] As can be seen from the above, the control module 10 in this application applies a level signal to the pin of the tested interface 60 via the level setting module 20, then collects the level signal at the pin of the tested interface 60, and finally determines whether the pin of the tested interface 60 is short-circuited to ground based on the collected level signal. The entire circuit architecture only uses the control module 10 and the level setting module 20, and does not require an additional current source. Compared to detection circuits that use current sources for short-circuit detection, this application simplifies the complexity of the circuit design and also reduces the circuit cost.
[0046] In some embodiments, if none of the n pins of the tested interface 60 is short-circuited to the ground, the control module 10 is further used to output at least one second control signal. In the embodiment of the present application, the second control signal is a high-level signal. At least one of the n level setting modules 20 is further used to provide a second level signal to at least one target pin of the tested interface 60 according to the second control signal. In the embodiment of the present application, the second level signal is a low-level signal. The control module 10 is also used to collect the level signals at the pins adjacent to the target pin through the level setting module 20, and determine whether the target pin and the pins adjacent to it are short-circuited based on the level signals at the pins adjacent to the target pin. More specifically, after the interface short-circuit detection circuit is powered on, if none of the n pins of the tested interface 60 is short-circuited to the ground, it means that the level signals at the n pins of the tested interface 60 are all high-level signals. Since a low-level signal is applied to at least one target pin, if the level signals at the pins adjacent to the target pin are all high-level signals, it is determined that no short circuit occurs between the target pin and the pins adjacent to it; if the level signal at a pin adjacent to the target pin is a low-level signal, it is determined that a short circuit occurs between the target pin and the pin adjacent to it.
[0047] In some embodiments, when the control module 10 outputs a second control signal, one of the n level setting modules 20 is further configured to provide a second level signal to a target pin of the interface under test 60 based on the second control signal. The control module 10 is further configured to collect level signals from pins adjacent to the target pin through the level setting modules 20, and determine whether a short circuit has occurred between the target pin and the adjacent pins based on the level signals from the pins adjacent to the target pin. The determination of whether a short circuit has occurred between the target pin and the adjacent pins can be found in the relevant principles described above and will not be further described here. This embodiment allows for testing of specific pins.
[0048] For example, if the target pin is the second pin, the control module 10 collects the level signals at the first pin and the third pin respectively through the level setting module 20. If the level signal at the first pin is a high level signal, it is determined that there is no short circuit between the first pin and the second pin. If the level signal at the first pin is a low level signal, it is determined that there is a short circuit between the first pin and the second pin. Similarly, if the level signal at the third pin is a high level signal, it is determined that there is no short circuit between the second pin and the third pin. If the level signal at the third pin is a low level signal, it is determined that there is a short circuit between the second pin and the third pin.
[0049] In some embodiments, when the control module 10 outputs multiple second control signals, all odd-numbered level setting modules 20 provide second level signals to the corresponding odd-numbered pins of the interface under test 60 according to the second control signals. The control module 10 collects level signals at all even-numbered pins of the interface under test 60 through all even-numbered level setting modules 20, and determines whether adjacent odd-numbered and even-numbered pins of the interface under test 60 are short-circuited based on the level signals at all even-numbered pins of the interface under test 60. Alternatively, all even-numbered level setting modules 20 provide second level signals to the corresponding even-numbered pins of the interface under test 60 according to the second control signals. The control module 10 collects level signals at all odd-numbered pins of the interface under test 60 through all odd-numbered level setting modules 20, and determines whether adjacent odd-numbered and even-numbered pins of the interface under test 60 are short-circuited based on the level signals at all odd-numbered pins of the interface under test 60. This embodiment can detect batches of pins.
[0050] For example, a low-level signal is applied to all odd-numbered pins of the interface under test 60, and the control module 10 collects level signals from all even-numbered pins of the interface under test 60. If the level signals at all even-numbered pins are high-level signals, it is determined that no short circuit occurs between adjacent odd-numbered and even-numbered pins of the interface under test 60. If the level signal at at least one even-numbered pin is a low-level signal, it is determined that at least one adjacent odd-numbered and even-numbered pins of the interface under test 60 is short-circuited.
[0051] In some embodiments, as Figure 3 As shown, the level setting module 20 includes a switch unit 21, a resistor unit 22, and a first power supply unit 23. The switch unit 21 is connected to the corresponding pins of the resistor unit 22, the control module 10, and the measured interface 60, respectively. The resistor unit 22 is connected to the first power supply unit 23. The switch unit 21 is also grounded. The first power supply unit 23 is used to provide a supply voltage.
[0052] Specifically, when the interface short-circuit detection circuit is powered on, the control module 10 outputs a first control signal by default. In the embodiment of the present application, the first control signal is a low-level signal that controls the switch unit 21 to be disconnected. The resistor unit 22 is configured to disconnect from the ground after the switch unit 21 is disconnected, thereby providing a high-level signal, i.e., a first-level signal, to the corresponding pin of the interface under test 60.
[0053] After determining that none of the n pins of the tested interface 60 are short-circuited to ground, the control module 10 further outputs a second control signal. In the embodiment of the present application, the second control signal is a high-level signal that turns on the switch unit 21. The resistor unit 22 is configured to connect to ground after the switch unit 21 is turned on, thereby applying a low-level signal, i.e., a second-level signal, to the corresponding pin of the tested interface 60.
[0054] As can be seen from the above, the control module 10 in the present application controls the switching state of the switch unit 21 and then controls the conductive state between the resistor unit 22 and the ground, thereby applying different level signals to the corresponding pins of the tested interface 60.
[0055] It should be noted that Figure 3 A connection method is provided for the control module 10 and the level setting module 20: the control module 10 is connected to the level setting module 20 via two connecting wires, one connecting wire is used to output the control signal, and the other connecting wire is used to realize signal acquisition. This application does not limit this connection method and can be adjusted accordingly according to actual conditions.
[0056] In some embodiments, as Figure 4 As shown, the level setting module 20 further includes a current limiting unit 24 , which is connected to corresponding pins of the resistance unit 22 , the switch unit 21 , the control module 10 and the tested interface 60 , respectively.
[0057] Specifically, the current limiting unit 24 is used to perform circuit protection on the switch unit 21 .
[0058] For example, Figure 5 As shown, the switch unit 21 includes a field effect transistor Q, the gate of the field effect transistor Q is connected to the control module 10, the drain of the field effect transistor Q is respectively connected to the resistance unit 22, the control module 10 and the current limiting unit 24, and the source of the field effect transistor Q is grounded.
[0059] Specifically, the field-effect transistor Q acts as a switch to switch the level state of the tested pin. When the interface short-circuit detection circuit is powered on, the control module 10 outputs a first control signal by default. In the embodiment of the present application, the first control signal is a low-level signal, which controls the field-effect transistor Q to disconnect. The resistor unit 22 is used to disconnect from the ground after the switch unit 21 is disconnected, thereby providing a high-level signal, i.e., a first-level signal, to the corresponding pin of the tested interface 60.
[0060] After determining that none of the n pins of the tested interface 60 are short-circuited to ground, the control module 10 further outputs a second control signal. In the embodiment of the present application, the second control signal is a high-level signal that turns on the field-effect transistor Q. The resistor unit 22 is configured to connect to ground after the switch unit 21 is turned on, thereby applying a low-level signal, i.e., a second-level signal, to the corresponding pin of the tested interface 60.
[0061] It should be noted that the field effect transistor Q can be replaced by a device with a switching function, such as a transistor, a relay, or an electronic switch.
[0062] For example, Figure 5 As shown, the resistance unit 22 includes a first resistor R1, a first end of the first resistor R1 is connected to the first power supply unit 23, and a second end of the first resistor R1 is respectively connected to the drain of the field effect transistor Q, the control module 10, and the current limiting unit 24. The first resistor R1 is used to provide a high-level signal to the corresponding pin of the tested interface 60 after the field effect transistor Q is disconnected.
[0063] For example, Figure 5 As shown, the current-limiting unit 24 includes a second resistor R2. The first end of the second resistor R2 is connected to the drain of the field-effect transistor Q, the second end of the first resistor R1, and the control module 10, respectively. The second end of the second resistor R2 is connected to the corresponding pin of the interface under test 60. The second resistor R2 is used to provide circuit protection for the field-effect transistor Q. When the field-effect transistor Q is turned on, the second resistor R2 can limit the current flowing through the field-effect transistor Q to not exceed its operating current rating. It should be noted that the resistance of the second resistor R2 should be much smaller than the resistance of the first resistor R1.
[0064] In summary, the level setting module 20 in the present application is mainly composed of resistors and field-effect transistors. Compared with the existing detection circuit, the present application does not need to set a diode at the tested pin, and only needs to use an electronic switch, which not only increases the service life and improves the reliability of the circuit, but also reduces the circuit cost.
[0065] In some embodiments, as Figure 6 As shown, the interface short circuit detection circuit provided in the embodiment of the present application also includes an interface module 30, and the n pins of the interface module 30 are respectively connected to the n level setting modules 20, and the n pins of the interface module are also respectively used to connect to the n pins of the tested interface 60.
[0066] Specifically, the interface module 30 is a detection interface of the interface short circuit detection circuit, including one or more interfaces, including but not limited to an HDMI interface, a DP interface, a DVI interface, a network port, etc. The connection between the interface short circuit detection circuit and the circuit board under test can be a line connection. For example, the interface under test 60 is an HDMI interface, and the circuit board under test can be connected to the interface short circuit detection circuit via an HDMI cable. Alternatively, the circuit board under test is directly inserted into the interface short circuit detection circuit. For example, the interface under test 60 is an HDMI interface, and an HDMI female socket can be welded on the interface short circuit detection circuit. In this way, the circuit board under test can be directly inserted into the interface short circuit detection circuit, which can save cables.
[0067] In some embodiments, as Figure 6 As shown, the interface short circuit detection circuit further includes a display module 40 , which is connected to the control module 10 .
[0068] Specifically, the control module 10 is further configured to transmit the detection result of whether a short circuit occurs on each pin of the tested interface 60 and / or the identification of the short-circuited pin to the display module 40. The display module 40 is configured to display the detection result of whether a short circuit occurs on each pin of the tested interface 60 (including whether a short circuit occurs to ground or between adjacent pins) and / or the identification of the short-circuited pin, so as to prompt the user whether a short circuit occurs on the pin of the tested interface 60.
[0069] Exemplarily, the display module 40 may be a display, an LED (light-emitting diode) lamp, or the like.
[0070] It should be noted that the control module 10 can also transmit the detection results of whether each pin of the tested interface 60 is short-circuited to the ground and / or the short-circuited pin identification to a wireless network or a remote device for remote display through a communication interface, such as a serial port, an Internet port, etc.
[0071] In some embodiments, as Figure 7 As shown, the interface short circuit detection circuit further includes a switch module 50, and the switch module 50 is respectively connected to the control module and a level setting modules 20. Wherein, 1<a≤n.
[0072] Specifically, the switch module 50 is used to switch the connection status between the control module 10 and the a level setting modules 20. When the control module 10 has insufficient ADC pins, the switch module 50 can be used to enable one ADC pin of the control module 10 to collect level signals from multiple test pins. This can save resources of the control module 10 and reduce the cost of the control module 10.
[0073] For example, Figure 8As shown, the switch module 50 includes a switches K. The first end of each switch K is connected to the level setting module 20, and the second end of each switch K is connected to the control module 10. The switch K can be an electronic switch or a dip switch. The switch module 50 can also be a multiplexer.
[0074] In some embodiments, as Figure 8 As shown, the control module 10 includes a controller 11 and a second power supply unit 12. The controller 11 is respectively connected to the second power supply unit 12, the display module 40, the second ends of a switches K, the drains of na field-effect transistors Q, and the gates of n field-effect transistors Q. The second power supply unit 12 is used to provide a supply voltage. It should be noted that the first power supply unit 23 and the second power supply unit 12 can be the same power supply unit or different power supply units, which can be set according to actual application.
[0075] Exemplarily, the controller 11 may be an MCU (Microcontroller Unit) controller, which may be replaced by an integrated circuit with ADC detection and logic control, such as an ARM (Advanced RISC Machines) or an FPGA (Field Programmable Gate Array).
[0076] In summary, the interface short-circuit detection circuit provided in the embodiment of the present application has a simple overall circuit structure and low cost; it can automatically detect the short-circuit condition of the pins of the tested interface 60, preventing electronic equipment from malfunctioning after power-on and causing equipment damage due to failure to identify pin short circuits; it can also realize the detection of specific pins or batches of pins.
[0077] The embodiment of the present application also provides an interface short circuit detection method, which uses the above-mentioned interface short circuit detection circuit, such as Figure 9 As shown, the interface short circuit detection method includes steps S901-S902.
[0078] S901: The control module outputs n first control signals, so that n level setting modules respectively provide first level signals to corresponding pins of the interface under test according to the first control signals.
[0079] Specifically, when the interface short-circuit detection circuit is powered on, the control module outputs n first control signals by default, causing n level setting modules to provide first level signals to corresponding pins of the interface under test based on the first control signals. In the embodiment of the present application, the first control signal is a low-level signal and the first level signal is a high-level signal. That is, after the short-circuit detection circuit is powered on, the initial level signals at the n pins of the interface under test are all high-level signals.
[0080] S902 , the control module collects level signals at n pins of the tested interface through n level setting modules, and determines whether each pin is short-circuited to ground according to the level signals at the n pins of the tested interface.
[0081] Specifically, after the interface short-circuit detection circuit is powered on, the initial level signals at the n pins of the interface under test are all high-level signals. The control module collects the level signals at the n pins of the interface under test respectively. When the level signals at the n pins of the interface under test are all greater than a preset threshold, it is determined that none of the n pins of the interface under test are short-circuited to the ground. When the level signals at some of the n pins of the interface under test are less than the preset threshold, it is determined that some of the pins of the interface under test are short-circuited to the ground. The preset threshold can be set according to actual conditions and is not limited in this application.
[0082] The interface short circuit detection method provided in the embodiment of the present application first detects whether n pins of the interface under test are short-circuited to the ground after the interface short circuit detection circuit is powered on, so as to confirm whether the n pins of the interface under test are normal.
[0083] In some embodiments, as Figure 10 As shown, the interface short circuit detection method further includes steps S903-S904.
[0084] S903: If none of the n pins of the tested interface are short-circuited to ground, the control module outputs at least one second control signal, causing at least one level setting module to provide a second level signal to at least one target pin of the tested interface according to the second control signal.
[0085] Specifically, if none of the n pins of the interface under test are short-circuited to ground, it means that all n pins of the interface under test are normal. After confirming that all n pins of the interface under test are normal, the control module outputs at least one second control signal, causing at least one level setting module to provide a second level signal to at least one target pin of the interface under test based on the second control signal. In the embodiment of the present application, the second control signal is a high-level signal, and the second level signal is a low-level signal. That is, after confirming that all n pins of the interface under test are normal, the level signal at at least one target pin of the interface under test is changed to a low-level signal, and the level signals at the remaining pins of the interface under test remain high-level signals.
[0086] S904 , the control module collects level signals at pins adjacent to the target pin through the level setting module, and determines whether a short circuit occurs between the target pin and the adjacent pins according to the level signals at the pins adjacent to the target pin.
[0087] Specifically, the control module collects the level signals at the pins adjacent to the target pin. If the level signals at the pins adjacent to the target pin are all high-level signals, it is determined that there is no short circuit between the target pin and the adjacent pins. If the level signal at a pin adjacent to the target pin is a low-level signal, it is determined that a short circuit occurs between the target pin and the adjacent pins.
[0088] In some embodiments, the interface short circuit detection method further includes:
[0089] When the control module outputs a plurality of second control signals, all odd-numbered level setting modules respectively provide second level signals to the corresponding odd-numbered pins of the interface under test according to the second control signals; the control module respectively collects level signals at all even-numbered pins of the interface under test through all even-numbered level setting modules, and determines whether adjacent odd-numbered pins and even-numbered pins of the interface under test are short-circuited according to the level signals at all even-numbered pins of the interface under test;
[0090] Alternatively, all the even-numbered level setting modules provide second level signals to the corresponding even-numbered pins of the interface under test according to the second control signal; the control module collects the level signals at all the odd-numbered pins of the interface under test through all the odd-numbered level setting modules, and determines whether the adjacent odd-numbered pins and even-numbered pins of the interface under test are short-circuited according to the level signals at all the odd-numbered pins of the interface under test.
[0091] Specifically, when the control module outputs multiple second control signals, a batch of pins of the interface under test can be tested. For example, a low-level signal is applied to all odd-numbered pins of the interface under test, and the control module collects the level signals at all even-numbered pins of the interface under test. If the level signals at all even-numbered pins are high-level signals, it is determined that there is no short circuit between adjacent odd-numbered and even-numbered pins of the interface under test. If the level signal at at least one even-numbered pin is a low-level signal, it is confirmed that at least one adjacent odd-numbered and even-numbered pins of the interface under test is short-circuited.
[0092] In some embodiments, the interface short circuit detection method further includes:
[0093] When the control module outputs a second control signal, one of the n level setting modules provides a second level signal to a target pin of the interface under test based on the second control signal. The control module collects level signals from pins adjacent to the target pin through the level setting modules and determines whether a short circuit occurs between the target pin and the adjacent pins based on the level signals from the pins adjacent to the target pin.
[0094] Specifically, when the control module outputs a second control signal, a specific pin of the interface under test can be detected. For example, if the target pin is the second pin, the control module collects the level signals at the first pin and the third pin respectively through the level setting module. If the level signal at the first pin is a high level signal, it is determined that there is no short circuit between the first pin and the second pin. If the level signal at the first pin is a low level signal, it is determined that there is a short circuit between the first pin and the second pin. Similarly, if the level signal at the third pin is a high level signal, it is determined that there is no short circuit between the second pin and the third pin. If the level signal at the third pin is a low level signal, it is determined that there is a short circuit between the second pin and the third pin.
[0095] In summary, the interface short circuit detection method provided in the embodiment of the present application can automatically detect the short circuit of the pins of the tested interface, preventing electronic equipment from failing to identify the pin short circuit and causing failure and damage after power-on; it can also realize the detection of specific pins or batches of pins.
[0096] The present application also provides an interface short circuit detection device, including the interface short circuit detection circuit described above. Since the interface short circuit detection device provided in the present application utilizes all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought about by the technical solutions of the above embodiments, and will not be detailed here.
[0097] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. An interface short circuit detection circuit, characterized in that: The device comprises a control module and n level setting modules, wherein the level setting modules include a switch unit, a resistor unit, and a first power supply unit, wherein the switch unit is respectively connected to the resistor unit, the control module, and corresponding pins of the interface under test, the resistor unit is connected to the first power supply unit, and the switch unit is also grounded; wherein n is a natural number greater than 0; The control module is used to output n first control signals; each of the switch units is used to disconnect according to the first control signal; each of the resistor units is used to disconnect from the ground after the switch unit is disconnected, and provide a first level signal to the corresponding pin of the interface under test; the control module is also used to collect the level signals at the n pins of the interface under test, and determine whether each pin is short-circuited to the ground based on the level signals at the n pins of the interface under test.
2. The interface short circuit detection circuit according to claim 1, characterized in that: The level setting module further includes a current limiting unit, which is connected to corresponding pins of the resistance unit, the switch unit, the control module and the interface under test respectively; The current limiting unit is used to perform circuit protection on the switch unit.
3. The interface short circuit detection circuit according to claim 2, characterized in that: The switch unit includes a field effect tube, a gate of the field effect tube is connected to the control module, a drain of the field effect tube is respectively connected to the resistance unit, the control module and the current limiting unit, and a source of the field effect tube is grounded.
4. The interface short circuit detection circuit according to claim 2, characterized in that: The resistance unit includes a first resistor, a first end of the first resistor is connected to the first power supply unit, and a second end of the first resistor is connected to the switch unit, the control module and the current limiting unit respectively.
5. The interface short circuit detection circuit according to claim 2, characterized in that: The current limiting unit includes a second resistor, a first end of the second resistor is connected to the switch unit, the resistor unit and the control module respectively, and a second end of the second resistor is used to be connected to a corresponding pin of the interface under test.
6. The interface short circuit detection circuit according to any one of claims 1 to 5, characterized in that: The interface short circuit detection circuit further includes an interface module, wherein n pins of the interface module are respectively connected to the n level setting modules, and the n pins of the interface module are also respectively used to connect to the n pins of the interface under test.
7. The interface short circuit detection circuit according to any one of claims 1 to 5, characterized in that: The interface short circuit detection circuit further includes a display module, and the display module is connected to the control module; The control module is also used to transmit the detection results of whether each pin of the tested interface is short-circuited and / or the short-circuited pin identification to the display module; the display module is used to display the detection results of whether each pin of the tested interface is short-circuited and / or the short-circuited pin identification.
8. The interface short circuit detection circuit according to any one of claims 1 to 5, characterized in that: The interface short circuit detection circuit further includes a switch module, and the switch module is connected to the control module and a level setting modules respectively; wherein 1<a≤n; The switch module is used to switch the connection state between the control module and a level setting modules.
9. The interface short circuit detection circuit according to claim 8, characterized in that: The switch module includes a switches, a first end of each switch is connected to the level setting module, and a second end of each switch is connected to the control module.
10. An interface short circuit detection device, characterized in that: The invention comprises the interface short circuit detection circuit according to any one of claims 1 to 9.