Interface short circuit detection circuit, method and device
By using a combination of control module and level setting module in the pin detection circuit of electronic equipment, the detection process is simplified, the problems of circuit complexity and cost in the existing technology are solved, and automated short-circuit detection is realized to ensure that electronic equipment is security.
Patent Information
- Application Number
- CN202411433442.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-03
AI Technical Summary
The pin short circuit detection circuit of existing electronic equipment is complex and costly, and it is necessary to provide current sources of +100uA and -100uA, which increases the detection complexity and cost.
A short-circuit detection circuit is designed, using a control module and a level setting module to provide a level signal to the pins of the measured interface by outputting control signals, and collecting a level signal to determine whether the pins are short-circuited. The entire circuit architecture does not An additional current source is required, simplifying circuit design and reducing costs.
It realizes simplified circuit design and reduced costs, automatically detects pin short circuits, prevents faults and equipment damage caused by unidentified short circuits, and is suitable for the detection of specific or batch pins.
Smart Images

Figure CN119247201A_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, method and device. Background Art
[0002] In order to ensure the safe use of electronic equipment, it is necessary to perform a short-circuit test on the pins of the electronic equipment before using the electronic equipment to prevent the electronic equipment from malfunctioning after power-on and causing damage to the equipment 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. Summary of the invention
[0004] The embodiments of the present application provide an interface short circuit detection circuit, method 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 control module is respectively connected to the n level setting modules, and the n level setting modules are respectively used to be connected to the n pins of the interface under test; wherein n is a natural number greater than 0;
[0006] The control module is used to output n first control signals; the n level setting modules are respectively used to provide first level signals to the corresponding pins of the interface under test according to the first control signals; the control module is also used to collect the level signals at the n pins of the interface under test through the n level setting modules, and determine whether each pin is short-circuited to the ground according to the level signals at the n pins of the interface under test.
[0007] In a possible implementation manner of the first aspect, the level setting module includes a switch unit, a resistance unit, and a first power supply unit, the switch unit is respectively connected to the resistance unit, the control module, and corresponding pins of the interface under test, the resistance unit is connected to the first power supply unit, and the switch unit is also grounded;
[0008] The switch unit is used to be disconnected according to the first control signal; the resistor unit is used to be disconnected from the ground after the switch unit is disconnected, and provide a first level signal to the corresponding pin of the interface under test.
[0009] In a possible implementation manner of the first aspect, the level setting module further includes a current limiting unit, and the current limiting unit is respectively connected to corresponding pins of the resistance unit, the switch unit, the control module, and the interface under test;
[0010] The current limiting unit is used to perform circuit protection on the switch unit.
[0011] In a possible implementation of the first aspect, the interface short circuit detection circuit also includes an interface module, and 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.
[0012] In a possible implementation manner 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;
[0013] 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.
[0014] In a possible implementation of the first aspect, 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;
[0015] The switch module is used to switch the connection state between the control module and a level setting modules.
[0016] In a possible implementation manner of the first aspect, the switch module includes a switches, a first end of each of the switches is connected to the level setting module, and a second end of each of the switches is connected to the control module.
[0017] In a second aspect, an embodiment of the present application provides an interface short circuit detection method, applying the interface short circuit detection circuit described in any one of the first aspects, including: a control module outputs n first control signals, so that n level setting modules respectively provide first level signals to corresponding pins of the tested interface according to the first control signals;
[0018] The control module collects level signals at n pins of the tested interface respectively through n level setting modules, and determines whether each pin is short-circuited to the ground according to the level signals at the n pins of the tested interface.
[0019] In a possible implementation manner of the second aspect, the interface short circuit detection method further includes:
[0020] If none of the n pins of the interface under test is short-circuited to the ground, the control module outputs at least one second control signal, so that at least one level setting module provides a second level signal to at least one target pin of the interface under test according to the second control signal;
[0021] The control module collects level signals at the pins adjacent to the target pin through the level setting module, and determines whether the target pin and the pins adjacent to the target pin are short-circuited according to the level signals at the pins adjacent to the target pin.
[0022] In a possible implementation manner of the second aspect, the interface short circuit detection method further includes:
[0023] 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;
[0024] 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 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.
[0025] In a third 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.
[0026] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0027] The embodiment of the present application provides an interface short circuit detection circuit, comprising a control module and n level setting modules, wherein the control module is connected to the n level setting modules respectively, and the n level setting modules are respectively used to be connected to n pins of the interface under test, wherein n is a natural number greater than 0.
[0028] The control module is used to output n first control signals. The n level setting modules are respectively used to provide first level signals to corresponding pins of the interface under test according to the first control signals. The control module is also used to collect level signals at n pins of the interface under test through the n level setting modules, and determine whether each pin is short-circuited to the ground according to the level signals at the n pins of the interface under test.
[0029] The control module in the present application applies a level signal to the pin of the interface under test through 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 the 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 with the detection circuit that uses a current source for short-circuit detection, the present application simplifies the complexity of the circuit design and also reduces the circuit cost.
[0030] It can be understood that the beneficial effects of the second to third aspects 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
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0032] Figure 1 It is the schematic diagram of the existing detection circuit;
[0033] Figure 2 It is a principle block diagram of an interface short circuit detection circuit provided in an embodiment of the present application;
[0034] Figure 3 is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0035] Figure 4 is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0036] Figure 5 It is a circuit connection diagram of an interface short circuit detection circuit provided in an embodiment of the present application;
[0037] Figure 6 is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0038] Figure 7 is a principle block diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0039] Figure 8 is a circuit connection diagram of an interface short circuit detection circuit provided by another embodiment of the present application;
[0040] Fig. 9 is a flow chart of an interface short circuit detection method provided by an embodiment of the present application;
[0041] Fig.10 This is a flow chart of an interface short circuit detection method provided in another embodiment of the present application.
[0042] 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
[0043] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.
[0044] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0045] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0046] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" 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 "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0047] 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.
[0048] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0049] 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 the short circuit of the pin. The specific detection method is: test the voltage drop of the diode connected to the power supply, control the relay switch K2 to be turned on, control the relay switch K1 to be turned off, input +100uA current to the tested pin, all other pins are given zero potential or directly grounded, after the diode connected to the power supply is turned on, collect the voltage at the tested pin, and determine whether the tested pin is short-circuited according to the voltage at the tested pin; test the voltage drop of the diode connected to the ground, control the relay switch K1 to be turned on, control the relay switch K2 to be turned on, input -100uA current to the tested pin, all other pins are given zero potential or directly grounded, after the diode connected to the ground is turned on, collect the voltage at the tested pin, and determine whether the tested pin is short-circuited according to the voltage at the tested pin.
[0050] 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.
[0051] In view of the above problems, the present application provides an interface short circuit detection circuit, such as 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, thereby ensuring the safety of the electronic device.
[0052] 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 the 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 the ground according to 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 the preset threshold, it is determined that the n pins of the tested interface 60 are not short-circuited to the ground. When the level signal at some of the n pins of the tested interface 60 is less than the preset threshold, it is determined that some of the pins of the tested interface 60 are short-circuited to the ground. Exemplarily, the preset threshold can be set to 0.8V, and the voltage value of the preset threshold needs to be set according to the device end state of the tested pin, which is not limited in this application.
[0053] As can be seen from the above, the control module 10 in the present application applies a level signal to the pin of the tested interface 60 through the level setting module 20, and 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 the ground according to 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 with the detection circuit that uses a current source for short-circuit detection, the present application simplifies the complexity of the circuit design and also reduces the circuit cost.
[0054] 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 also 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 also 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 modules 20, and determine whether the target pin and the pins adjacent to it are short-circuited according to 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 there is no short circuit 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 a pin adjacent to it.
[0055] In some embodiments, when the control module 10 outputs a second control signal, one of the n level setting modules 20 is further used to provide a second level signal to a target pin of the tested interface 60 according to the second control 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 modules 20, and determine whether the target pin and the pins adjacent to it are short-circuited according to the level signals at the pins adjacent to the target pin. For determining whether the target pin and the pins adjacent to it are short-circuited, please refer to the above-mentioned related principles, which will not be repeated here. This embodiment can detect specific pins.
[0056] Exemplarily, 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.
[0057] In some embodiments, when the control module 10 outputs multiple second control signals, all odd level setting modules 20 provide second level signals to the corresponding odd pins of the tested interface 60 according to the second control signal. The control module 10 collects the level signals at all even pins of the tested interface 60 through all even level setting modules 20, and determines whether the adjacent odd pins and even pins of the tested interface 60 are short-circuited according to the level signals at all even pins of the tested interface 60; or, all even level setting modules 20 provide second level signals to the corresponding even pins of the tested interface 60 according to the second control signal. The control module 10 collects the level signals at all odd pins of the tested interface 60 through all odd level setting modules 20, and determines whether the adjacent odd pins and even pins of the tested interface 60 are short-circuited according to the level signals at all odd pins of the tested interface 60. This embodiment can detect batch pins.
[0058] Exemplarily, low-level signals are applied to all odd-numbered pins of the tested interface 60, and the control module 10 collects level signals at all even-numbered pins of the tested interface 60. If the level signals at all even-numbered pins are high-level signals, it is determined that there is no short circuit between the adjacent odd-numbered pins and even-numbered pins of the tested interface 60. 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 pin and even-numbered pin of the tested interface 60 is short-circuited.
[0059] In some embodiments, 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 respectively connected to the corresponding pins of the resistor unit 22, the control module 10 and the interface 60 under test. The resistor unit 22 is connected to the first power supply unit 23, and the switch unit 21 is also grounded. The first power supply unit 23 is used to provide a power supply voltage.
[0060] Specifically, when the interface short circuit detection circuit is powered on, the control module 10 outputs the first control signal by default. In the embodiment of the present application, the first control signal is a low-level signal, and the low-level signal controls the switch unit 21 to be disconnected. The resistor unit 22 is used to disconnect from the ground after the switch unit 21 is disconnected, thereby providing a high-level signal, that is, a first-level signal, to the corresponding pin of the interface 60 under test.
[0061] After determining that none of the n pins of the tested interface 60 is short-circuited to the ground, the control module 10 will also output a second control signal. In the embodiment of the present application, the second control signal is a high-level signal, which controls the switch unit 21 to be turned on. The resistor unit 22 is used to be connected to the ground after the switch unit 21 is turned on, so that the corresponding pin of the tested interface 60 is applied with a low-level signal, that is, a second-level signal.
[0062] As can be seen from the above, the control module 10 in the present application controls the switch state of the switch unit 21, thereby controlling the conduction state between the resistor unit 22 and the ground, thereby applying different level signals to the corresponding pins of the tested interface 60.
[0063] 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 a 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.
[0064] In some embodiments, 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 interface under test 60 , respectively.
[0065] Specifically, the current limiting unit 24 is used to perform circuit protection on the switch unit 21 .
[0066] 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.
[0067] Specifically, the field effect transistor Q is used as a switch for switching the level state of the tested pin. When the interface short circuit detection circuit is powered on, the control module 10 outputs the 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, that is, a first-level signal, to the corresponding pin of the tested interface 60.
[0068] After determining that none of the n pins of the tested interface 60 is short-circuited to the ground, the control module 10 will also output a second control signal. In the embodiment of the present application, the second control signal is a high-level signal, which controls the field effect transistor Q to be turned on. The resistor unit 22 is used to be connected to the ground after the switch unit 21 is turned on, so that the corresponding pin of the tested interface 60 is applied with a low-level signal, that is, a second-level signal.
[0069] It should be noted that the field effect transistor Q can be replaced by a device with a switching function, such as a triode, a relay, or an electronic switch.
[0070] For example, Figure 5 As shown, the resistor 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.
[0071] 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 respectively connected to the drain of the field effect tube Q, the second end of the first resistor R1 and the control module 10, and the second end of the second resistor R2 is used to connect to the corresponding pin of the measured interface 60. The second resistor R2 is used to perform circuit protection on the field effect tube Q. When the field effect tube Q is turned on, the second resistor R2 can limit the current flowing through the field effect tube Q to not exceed its working current rating. It should be noted that the resistance value of the second resistor R2 should be much smaller than the resistance value of the first resistor R1.
[0072] 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.
[0073] In some embodiments, Figure 6 As shown, the interface short circuit detection circuit provided in the embodiment of the present application also includes an interface module 30, 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.
[0074] 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 60 under test 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 60 under test is an HDMI interface, and an HDMI socket can be welded on the interface short circuit detection circuit, so that the circuit board under test can be directly inserted into the interface short circuit detection circuit, which can save cables.
[0075] In some embodiments, Figure 6 As shown, the interface short circuit detection circuit further includes a display module 40 , and the display module 40 is connected to the control module 10 .
[0076] Specifically, the control module 10 is further used to transmit the detection result of whether each pin of the tested interface 60 is short-circuited and / or the detection result of the short-circuited pin identification to the display module 40. The display module 40 is used to display the detection result of whether each pin of the tested interface 60 is short-circuited (including whether a short circuit occurs between the ground and the adjacent pin) and / or the detection result of the short-circuited pin identification, so as to prompt the user whether the pin of the tested interface 60 is short-circuited.
[0077] Exemplarily, the display module 40 may be a display, an LED (light-emitting diode) lamp, or the like.
[0078] 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 Ethernet port, etc.
[0079] In some embodiments, 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.
[0080] Specifically, the switch module 50 is used to switch the connection state between the control module 10 and a level setting modules 20. When the number of ADC pins of the control module 10 is insufficient, the switch module 50 can be used to enable one ADC pin of the control module 10 to collect level signals at multiple tested pins, which can save resources of the control module 10 and reduce the cost of the control module 10.
[0081] For example, Figure 8As shown, the switch module 50 includes a switches K, a first end of each switch K is connected to the level setting module 20, and a 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.
[0082] In some embodiments, Figure 8 As shown, the control module 10 includes a controller 11 and a second power supply unit 12, and the controller 11 is respectively connected to the second power supply unit 12, the display module 40, the second end of a switch K, the drain of na field effect transistors Q, and the gate of n field effect transistors Q. Among them, the second power supply unit 12 is used to provide a power 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 applications.
[0083] Exemplarily, the controller 11 may be an MCU (Microcontroller Unit) controller, and the MCU controller 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).
[0084] 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 pin of the interface 60 under test, and prevent electronic equipment from failing to identify the pin short circuit and causing failure and damage to the equipment after power-on; it can also realize the detection of specific pins or batches of pins.
[0085] The present application also provides an interface short circuit detection method, which uses the above-mentioned interface short circuit detection circuit, such as Fig. 9 As shown, the interface short circuit detection method includes steps S901-S902.
[0086] S901. The control module outputs n first control signals, so that the n level setting modules respectively provide first level signals to corresponding pins of the tested interface according to the first control signals.
[0087] Specifically, when the interface short circuit detection circuit is powered on, the control module outputs n first control signals by default, so that the n level setting modules provide first level signals to the corresponding pins of the interface under test according to the first control signals, and 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 is powered on, the initial level signals at the n pins of the interface under test are all high level signals.
[0088] 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 the ground according to the level signals at the n pins of the tested interface.
[0089] Specifically, after the interface short circuit detection circuit is powered on, the initial level signals at the n pins of the tested interface are all high level signals. The control module collects the level signals at the n pins of the tested interface respectively. When the level signals at the n pins of the tested interface are all greater than the preset threshold, it is determined that none of the n pins of the tested interface are short-circuited to the ground. When the level signals at some of the n pins of the tested interface are less than the preset threshold, it is determined that some of the pins of the tested interface are short-circuited to the ground. Among them, the preset threshold can be set according to the actual situation, and this application does not limit this.
[0090] The interface short circuit detection method provided in the embodiment of the present application first detects whether the 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.
[0091] In some embodiments, Fig.10 As shown, the interface short circuit detection method also includes steps S903-S904.
[0092] S903: If none of the n pins of the tested interface is short-circuited to the ground, the control module outputs at least one second control signal, so that at least one level setting module provides a second level signal to at least one target pin of the tested interface according to the second control signal.
[0093] Specifically, if none of the n pins of the tested interface is short-circuited to the ground, it means that the n pins of the tested interface are normal. After confirming that the n pins of the tested interface are normal, the control module outputs at least one second control signal, so that at least one level setting module provides a second level signal to at least one target pin of the tested interface according to 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 the n pins of the tested interface are normal, the level signal at at least one target pin of the tested interface is changed to a low level signal, and the level signals at the remaining pins of the tested interface are still high level signals.
[0094] S904 , the control module collects level signals at the pins adjacent to the target pin through the level setting module, and determines whether the target pin and the pins adjacent to the target pin are short-circuited according to the level signals at the pins adjacent to the target pin.
[0095] 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 pin adjacent to it. If the level signal at a pin adjacent to the target pin is a low-level signal, it is determined that there is a short circuit between the target pin and the pin adjacent to it.
[0096] In some embodiments, the interface short circuit detection method further includes:
[0097] 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;
[0098] 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.
[0099] Specifically, when the control module outputs multiple second control signals, the batch pins of the interface under test can be detected. Exemplarily, low-level signals are applied to all odd-numbered pins of the interface under test, and the control module collects 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 the adjacent odd-numbered pins 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 pin and even-numbered pin of the interface under test is short-circuited.
[0100] In some embodiments, the interface short circuit detection method further includes:
[0101] 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 according to the second control signal. The control module collects level signals at pins adjacent to the target pin through the level setting modules respectively, and determines whether a short circuit occurs between the target pin and the pins adjacent to the target pin according to the level signals at the pins adjacent to the target pin.
[0102] Specifically, when the control module outputs a second control signal, a specific pin of the interface under test can be detected. Exemplarily, 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.
[0103] In summary, the interface short circuit detection method provided in the embodiment of the present application can automatically detect the short circuit condition of the pins of the interface under test, thereby 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.
[0104] The embodiment of 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 by the embodiment of the present application adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be repeated here one by one.
[0105] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0106] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. An interface short circuit detection circuit, characterized in that: It comprises a control module and n level setting modules, wherein the control module is connected to the n level setting modules respectively, and the n level setting modules are respectively used to be connected to the n pins of the interface under test; wherein n is a natural number greater than 0; The control module is used to output n first control signals; the n level setting modules are respectively used to provide first level signals to the corresponding pins of the interface under test according to the first control signals; the control module is also used to collect the level signals at the n pins of the interface under test through the n level setting modules, and determine whether each pin is short-circuited to the ground according to 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 comprises a switch unit, a resistor unit and a first power supply unit, the switch unit is respectively connected to the resistor unit, the control module and the 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; The switch unit is used to disconnect according to the first control signal; The resistor unit 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.
3. The interface short circuit detection circuit according to claim 2, characterized in that: The level setting module further includes a current limiting unit, which is respectively connected to corresponding pins of the resistance unit, the switch unit, the control module and the interface under test; The current limiting unit is used to perform circuit protection on the switch unit.
4. The interface short circuit detection circuit according to any one of claims 1 to 3, characterized in that: The interface short circuit detection circuit also 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 be connected to the n pins of the interface under test.
5. The interface short circuit detection circuit according to any one of claims 1 to 3, characterized in that: The interface short circuit detection circuit also 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.
6. The interface short circuit detection circuit according to any one of claims 1 to 3, characterized in that: The interface short circuit detection circuit further includes a switch module, and the switch module is respectively connected to the control module and a level setting modules; wherein 1<a≤n; The switch module is used to switch the connection state between the control module and a level setting modules.
7. The interface short circuit detection circuit according to claim 6, 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.
8. An interface short circuit detection method, using the interface short circuit detection circuit according to any one of claims 1 to 7, characterized in that: include: The control module outputs n first control signals, so that the n level setting modules respectively provide first level signals to corresponding pins of the interface under test according to the first control signals; The control module collects level signals at n pins of the tested interface respectively through n level setting modules, and determines whether each pin is short-circuited to the ground according to the level signals at the n pins of the tested interface.
9. The interface short circuit detection method according to claim 8, characterized in that: The interface short circuit detection method also includes: If none of the n pins of the interface under test is short-circuited to the ground, the control module outputs at least one second control signal, so that at least one level setting module provides a second level signal to at least one target pin of the interface under test according to the second control signal; The control module collects level signals at the pins adjacent to the target pin through the level setting module, and determines whether the target pin and the pins adjacent to the target pin are short-circuited according to the level signals at the pins adjacent to the target pin.
10. The interface short circuit detection method according to claim 9, characterized in that: The interface short circuit detection method also includes: 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; 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 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.
11. An interface short circuit detection device, characterized in that: The invention comprises the interface short circuit detection circuit as described in any one of claims 1 to 7.
