Port detection circuit, integrated circuit chip and electrical equipment

Through the design of the port detection circuit, multiple detections are achieved using comparison modules and selection modules, which solves the problems of large occupancy and high complexity of multi-modules in the prior art, and reduces the cost and complexity of airbag ignition circuit detection.

CN119322254AActive Publication Date: 2025-01-17CCORE TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202411844670.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-01-17
Estimated Expiration
2044-12-16

AI Technical Summary

Technical Problem

Existing airbag ignition loop detection requires multiple independent modules, resulting in large chip area, high design complexity and high cost, making it difficult to reduce the number of modules to reduce costs.

Method used

Design a port detection circuit, through the comparison module, the first switch selection module and the comparison voltage selection module, the same module is used to realize different detection items, reduce the number of detection modules, reduce the chip area of ​​the module, and reduce the design complexity.

Benefits of technology

Multiple inspections of the airbag ignition circuit are realized, reducing the number of detection modules, reducing design complexity and cost, and improving detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322254A_ABST
    Figure CN119322254A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a port detection circuit, an integrated circuit chip and electrical equipment, the port detection circuit is applied to a driving circuit, the driving circuit comprises N driving channels, and each driving channel comprises a high-side output end and a low-side output end; the high-side output end and the low-side output end are used for connecting two ends of a load; the port detection circuit comprises a comparison voltage selection module used for selecting a comparison reference voltage signal input to a comparison module from a plurality of candidate reference voltage signals based on the control of a control module; the first switch selection module is used for selecting one of the voltage signals of the high-side output ends and the voltage signals of the low-side output ends corresponding to the N driving channels based on the control of the control module, and inputting the selected voltage signals to the comparison module to serve as comparison voltage signals; the comparison module is used for comparing the comparison reference voltage signal with the comparison voltage signal to obtain a comparison result; and the control module is used for determining the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic technology, and in particular to a port detection circuit, an integrated circuit chip and an electrical device. Background Art

[0002] The existing airbag module mainly includes power module, microprocessor, sensor, airbag ignition actuator, ignition tube for airbag ignition, etc. The airbag system needs to be reliable during the driving process of the car, and it needs to be able to detect and locate the airbag failure in time, so it is necessary to provide a complete and reliable self-test function. For example, whether the connection of the airbag ignition tube is open or short-circuited, whether the ignition circuit resistance / capacitance is too large, whether the ignition module function is normal, etc. Summary of the invention

[0003] Embodiments of the present disclosure provide a port detection circuit, an integrated circuit chip, and an electrical device.

[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a port detection circuit, which is applied to a driving circuit, wherein the driving circuit includes N driving channels, and the driving channels include: a high-side output terminal, a high-side driving circuit connected to the high-side output terminal, a low-side output terminal, and a low-side driving circuit connected to the low-side output terminal; the high-side output terminal and the low-side output terminal are used to connect two ends of a load; The port detection circuit includes: a comparison module, a first switch selection module, a comparison voltage selection module and a control module, wherein: The comparison voltage selection module is used to select a comparison reference voltage signal input to the comparison module from a plurality of candidate reference voltage signals based on the control of the control module; The first switch selection module is used to select one of the voltage signals of the high-side output terminals and the voltage signals of the low-side output terminals respectively corresponding to the N driving channels based on the control of the control module, and input it into the comparison module as a comparison voltage signal; The comparison module is used to compare the comparison reference voltage signal with the comparison voltage signal to obtain a comparison result; The control module is used to determine the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module.

[0005] In some embodiments, the comparison module includes a first comparator and / or a second comparator; the comparison voltage selection module includes a first comparison voltage selection submodule and / or a second comparison voltage selection submodule; Wherein, the first comparison voltage selection submodule is used to select one from the multiple candidate reference voltage signals and input it into the first comparator as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule is used to select one of the multiple candidate reference voltage signals and input it into the second comparator as an upper limit comparison reference voltage signal; The first comparator is used to compare the comparison voltage signal with the lower limit comparison reference voltage signal to obtain a first comparison result; The second comparator is used to compare the comparison voltage signal with the upper limit comparison reference voltage signal to obtain a second comparison result; The control module is used to determine the detection result based on the first comparison result and / or the second comparison result.

[0006] In some embodiments, the first comparison voltage selection submodule is used to input the first reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule is used to input the second reference voltage signal into the second comparator as an upper limit comparison reference voltage signal; wherein the voltage value of the first reference voltage signal is less than the voltage value of the second reference voltage signal; The control module is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited to the power ground; The second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited with the corresponding driving power supply; Among them, the bias voltage value of the high-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal; the bias voltage value of the low-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.

[0007] In some embodiments, the port detection circuit further includes a first current source; The first current source is connected between the low-side output terminal of the first driving channel among the N driving channels and the power ground, and is used to extract a first current from the low-side output terminal of the first driving channel to the power ground; The first comparison voltage selection submodule is used to input the third reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The first switch selection module is used to select a voltage signal at a low-side output terminal of a second driving channel among the N driving channels and input it into the first comparator as a comparison voltage signal; wherein the first driving channel is different from the second driving channel; The control module is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, and it is determined that there is cross coupling between the first driving channel and the second driving channel; The first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, and determines that there is no cross coupling between the first drive channel and the second drive channel; Among them, in the N driving channels, the bias voltage value of the high-side output end is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low-side output end is greater than the voltage value of the third reference voltage signal.

[0008] In some embodiments, the port detection circuit further includes a second current source, wherein: The second current source is connected between the low-side output terminal and the power ground, and is used to draw a second current from the low-side output terminal to the power ground within a first time period based on the control of the control module, and not draw current after the end of the first time period; The first comparison voltage selection submodule is used to input the fourth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The first switch selection module is used to select the voltage signal of the low-side output terminal to be input into the first comparator as a comparison voltage signal; The control module is used to determine the boost time between the end time and the time when the first comparison result indicates that the comparison voltage signal is greater than the fourth reference voltage signal, and determine the parasitic capacitance of the drive channel corresponding to the low-side output end based on the boost time.

[0009] In some embodiments, the port detection circuit further includes a third current source, The third current source is connected between the low-side output terminal of the third driving channel among the N driving channels and the power ground, and is used to extract a third current from the low-side output terminal to the power ground based on the control of the control module; The first comparison voltage selection submodule is used to input a fifth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; wherein the voltage value of the fifth reference voltage signal is less than the bias voltage value of the high side output end of the third driving channel; The first switch selection module is used to input the voltage signal of the high-side output end of the third driving channel into the first comparator as a comparison voltage signal; The control module is used for at least one of the following: When the first comparison result indicates that the voltage value of the comparison voltage signal is less than the voltage value of the fifth reference voltage signal, determining that the third driving channel is normal; When the first comparison result indicates that the voltage value of the comparison voltage signal is greater than or equal to the voltage value of the fifth reference voltage signal, it is determined that the third driving channel is abnormal.

[0010] In some embodiments, the control module is used to turn on the low-side drive circuit of the fourth drive channel among the N drive channels in a second time period, and / or turn on the high-side drive circuit of the fourth drive channel in a third time period, wherein the second time period has no overlapping portion with the third time period; The first comparison voltage selection submodule is used to input the sixth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; and / or the second comparison voltage selection submodule is used to input the seventh reference voltage signal into the second comparator as an upper limit comparison reference voltage signal; wherein the voltage value of the sixth reference voltage signal is less than the voltage value of the seventh reference voltage signal; The first switch selection module is used to input the voltage signal of the low-side output terminal into the first comparator as a comparison voltage signal in a second time period; and / or input the voltage signal of the high-side output terminal into the second comparator as a comparison voltage signal in a third time period; The control module is used for at least one of the following: The first comparison result in the second time period indicates that the voltage value of the comparison voltage signal is less than the voltage value of the sixth reference voltage signal, and it is determined that the low-side output terminal is normal; otherwise, it is determined that the low-side output terminal is abnormal; The second comparison result in the third time period indicates that the voltage value of the comparison voltage signal is greater than the voltage value of the seventh reference voltage signal, and the high-side output terminal is determined to be normal; otherwise, the high-side output terminal is determined to be abnormal.

[0011] In some embodiments, the port detection circuit further includes an analog-to-digital conversion module; wherein, The first switch selection module is used to select one of the voltage signals of at least one predetermined detection point corresponding to each of the N driving channels and input it into the analog-to-digital conversion module as a voltage signal to be detected; The analog-to-digital conversion module is used to determine the voltage value of the voltage signal to be detected; The control module is used to determine the detection result of the voltage signal to be detected associated with the driving channel based on the voltage value determined by the analog-to-digital conversion module.

[0012] In some embodiments, the predetermined detection point includes a power supply voltage sampling point of a driving power supply of a high-side driving circuit and / or a low-side driving circuit in each of the driving channels; The analog-to-digital conversion module is used to determine the voltage value of the driving power supply.

[0013] In some embodiments, the port detection circuit further includes a fourth current source and a sample-and-hold module; wherein; The fourth current source is used to extract a fourth current from the driving power supply of the driving channel selected by the first switch selection module in a fourth time period; The sampling and holding module is used to sample and hold the voltage signal to be detected collected by the power supply voltage sampling point; The analog-to-digital conversion module is used to determine the voltage value of the driving power supply obtained by sampling and holding the voltage signal to be detected.

[0014] In some embodiments, the port detection circuit further includes a second switch selection module, a fifth current source and a reference resistor; wherein; The second switch selection module is used to select and output the fifth current of the fifth current source to one of the reference resistor and the high-side output terminal of each driving channel based on the control of the control module; wherein the first end of the reference resistor is used to input the fifth current, and the second end of the reference resistor is connected to the power ground; The predetermined detection point includes: a high-side output end of the driving channel, a low-side output end of the driving channel and a first end of the reference resistor; The control module is used to determine the resistance of the load based on the voltage value of the first end of the reference resistor, the voltage value of the high-side output end of the drive channel, the voltage value of the low-side output end of the drive channel, and the resistance value of the reference resistor.

[0015] According to a second aspect of an embodiment of the present disclosure, an integrated circuit chip is provided. The integrated circuit chip includes a driving circuit and the port detection circuit described in the first aspect.

[0016] According to a third aspect of an embodiment of the present disclosure, there is provided an electrical device, the electrical device comprising: The port detection circuit according to the first aspect; or The integrated circuit chip described in the second aspect.

[0017] The embodiment of the present disclosure provides a port detection circuit, an integrated circuit chip and an electrical device. The port detection circuit is applied to a driving circuit. The driving circuit includes N driving channels. The driving channels include: a high-side output terminal, a high-side driving circuit connected to the high-side output terminal, a low-side output terminal and a low-side driving circuit connected to the low-side output terminal. The high-side output terminal and the low-side output terminal are used to connect two ends of a load. The port detection circuit includes: a comparison module, a first switch selection module, a comparison voltage selection module and a control module. The comparison voltage selection module is used to select a comparison reference voltage signal input to the comparison module from a plurality of candidate reference voltage signals based on the control of the control module. The first switch selection module is used to select one of the voltage signals of the high-side output terminal and the voltage signals of the low-side output terminal respectively corresponding to the N driving channels and input it to the comparison module as a comparison voltage signal based on the control of the control module. The comparison module is used to compare the comparison reference voltage signal and the comparison voltage signal to obtain a comparison result. The control module is used to determine the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module. In this way, the voltage signal of the high-side output terminal or the voltage signal of the low-side output terminal in different driving channels is selected through the first switch selection module, different candidate reference voltage signals are selected through the comparison voltage selection module, and the comparison module is used to compare different ports with different candidate reference voltage signals, thereby realizing different detection items using the same module. Compared with using different detection modules to realize different detection items, the number of detection modules can be reduced, the chip area occupied by the detection modules can be reduced, the design complexity can be reduced, and the cost can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a schematic diagram of a driving circuit structure according to an exemplary embodiment; Figure 2 is a schematic diagram of a port detection circuit structure according to an exemplary embodiment; Figure 3 is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Figure 4 is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Figure 5 is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Figure 6 is a schematic diagram of a detection timing sequence according to an exemplary embodiment; Figure 7 is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Figure 8is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Fig. 9 is a schematic diagram of another port detection circuit structure according to an exemplary embodiment; Fig.10 is another schematic diagram of a detection timing structure according to an exemplary embodiment; Fig.11 It is a schematic diagram of another structure of a port detection circuit according to an exemplary embodiment. DETAILED DESCRIPTION

[0019] In order to make the technical solutions and beneficial effects of the present invention more clearly understandable, the following is a detailed description by listing specific embodiments. The drawings are not necessarily drawn to scale, and local features may be enlarged or reduced to more clearly show the details of the local features; unless otherwise defined, the technical and scientific terms used herein have the same meanings as those in the technical field to which this application belongs.

[0020] The embodiments of the present disclosure are not exhaustive, but are only illustrative of some embodiments, and are not intended to be a specific limitation on the scope of protection of the present disclosure. In the absence of contradiction, each step in a certain embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a certain embodiment can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment can be arbitrarily exchanged. In addition, the optional implementation methods in a certain embodiment can be arbitrarily combined; in addition, the embodiments can be arbitrarily combined, for example, some or all of the steps of different embodiments can be arbitrarily combined, and a certain embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.

[0021] In each embodiment of the present disclosure, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the embodiments are consistent and can be referenced to each other, and the technical features in different embodiments can be combined to form a new embodiment based on their internal logical relationships.

[0022] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0023] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular form, such as "a", "an", "the", "above", "said", "aforementioned", "this", etc., may mean "one and only one", or "one or more", "at least one", etc. For example, when using articles such as "a", "an", "the" in English in translation, the noun after the article may be understood as a singular expression or a plural expression.

[0024] In the embodiments of the present disclosure, “plurality” refers to two or more.

[0025] In some embodiments, the terms “at least one”, “one or more”, “a plurality of”, “multiple”, etc. can be used interchangeably.

[0026] In some embodiments, "at least one of A and B", "A and / or B", "A in one case, B in another case", "A in one case, B in another case", etc., may include the following technical solutions according to the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, A and B (A and B are both executed). When there are more branches such as A, B, C, etc., the above is also similar.

[0027] In some embodiments, the recording method of "A or B" may include the following technical solutions according to the situation: in some embodiments, A (A is executed independently of B); in some embodiments, B (B is executed independently of A); in some embodiments, execution is selected from A and B (A and B are selectively executed). When there are more branches such as A, B, C, etc., the above is also similar.

[0028] The prefixes such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different description objects, and do not constitute restrictions on the position, order, priority, value or content of the description objects. The statement of the description object refers to the description in the context of the claims or embodiments, and should not constitute redundant restrictions due to the use of prefixes. For example, if the description object is a "field", the ordinal number before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields", and the "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the description object is a "level", the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the numerical value of the description object is not limited by the ordinal number, and can be one or more. Taking the "first device" as an example, the numerical value of the "device" can be one or more. In addition, the objects modified by different prefixes may be the same or different. For example, if the description object is "device", then the "first device" and the "second device" may be the same device or different devices, and their types may be the same or different. For another example, if the description object is "information", then the "first information" and the "second information" may be the same information or different information, and their contents may be the same or different.

[0029] In some embodiments, “including A”, “comprising A”, “used to indicate A”, and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.

[0030] In some embodiments, terms such as “…”, “determine…”, “in the case of…”, “at the time of…”, “when…”, “if…”, “if…”, etc. can be used interchangeably.

[0031] In some embodiments, terms such as "greater than", "greater than or equal to", "not less than", "more than", "more than or equal to", "not less than", "higher than", "higher than or equal to", "not lower than", and "above" can be replaced with each other, and terms such as "less than", "less than or equal to", "not greater than", "less than", "less than or equal to", "no more than", "lower than", "lower than or equal to", "not higher than", and "below" can be replaced with each other.

[0032] In addition, each element, each row, or each column in the table of the embodiments of the present disclosure may be implemented as an independent embodiment, and the combination of any elements, any rows, and any columns may also be implemented as an independent embodiment.

[0033] Figure 1 The schematic diagram of the airbag driving circuit (or airbag ignition circuit) is shown in FIG. Figure 1As shown, the airbag ignition circuit includes a drive circuit located in the ignition actuator. Usually, the drive circuit in an ignition actuator contains N drive channels (also called ignition channels), and each drive channel is used to drive an airbag ignition tube (that is, drive an airbag). A drive channel includes: a high-side output end, a high-side drive circuit connected to the high-side output end, a low-side output end, and a low-side drive circuit connected to the low-side output end. Among them, the high-side output end and the low-side output end are respectively connected to the two ends of the airbag ignition tube. When the high-side drive circuit and the low-side drive circuit are turned on, the ignition circuit is turned on, and the drive current flows through the airbag ignition tube (load), triggering ignition.

[0034] The normal function of the airbag ignition circuit determines whether the airbag can be properly detonated. Therefore, the detection of the airbag ignition circuit is related to the safety of personnel and is very important. For the existing ignition actuator, it will provide ignition circuit short circuit detection, ignition circuit power supply voltage detection, safety switch detection, power level diagnosis, drive channel cross-coupling diagnosis, drive channel parasitic capacitance diagnosis, drive channel resistance detection and other detections.

[0035] In some embodiments, each of the above-mentioned detection items is completed using an independent module. Therefore, multiple modules are required to realize the detection of the airbag ignition circuit. Multiple independent modules occupy a larger chip area, increase the design complexity, and further increase the cost.

[0036] Therefore, how to reduce the number of modules used for airbag ignition circuit detection, reduce the chip area occupied by the modules, reduce the design complexity, and reduce costs is an urgent problem to be solved.

[0037] The embodiment of the present disclosure provides a port detection circuit, which is applied to a driving circuit, wherein the driving circuit includes N driving channels, and the driving channels include: a high-side output end, a high-side driving circuit connected to the high-side output end, a low-side output end, and a low-side driving circuit connected to the low-side output end; the high-side output end and the low-side output end are used to connect two ends of a load; like Figure 2 The port detection circuit includes: a comparison module 110, a first switch selection module 120, a comparison voltage selection module 130 and a control module 140, wherein: The comparison voltage selection module 130 is used to select a comparison reference voltage signal input to the comparison module 110 from a plurality of candidate reference voltage signals based on the control of the control module 140; The first switch selection module 120 is used to select one of the voltage signals of the high-side output terminals and the voltage signals of the low-side output terminals respectively corresponding to the N driving channels based on the control of the control module 140, and input it into the comparison module 110 as a comparison voltage signal; The comparison module 110 is used to compare the comparison reference voltage signal with the comparison voltage signal to obtain a comparison result; The control module 140 is used to determine the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module 110.

[0038] Here, a possible implementation of the driving circuit is as follows Figure 1 shown.

[0039] In a possible implementation, the drive circuit is used to close the power supply loop of the load to realize power supply to the load. The high-side drive circuit is used to drive the switch (such as switch MOS) of the high-side output end to control the conduction or disconnection between the high-side output end and the drive power supply; the low-side drive circuit is used to drive the switch (such as switch MOS) of the low-side output end to control the conduction or disconnection between the low-side output end and the power ground. The drive power supply can be used to drive the high-side output end and / or the low-side output end.

[0040] In a possible implementation, the driving circuit may include a driving circuit in an airbag system for driving an airbag squib, and the load may be an airbag squib.

[0041] In a possible implementation, the driving circuit and the port detection circuit may be in the same integrated circuit chip. For example, the driving circuit and the port detection circuit may be in the same airbag ignition execution chip.

[0042] In one possible implementation, Figure 3 As shown, the first switch selection module 120 may include a plurality of switches, one end of each switch is connected to the input end of the comparison module 110, and the other end is connected to any one of the voltage signal of the high side output end and the voltage signal of the low side output end of each driving channel. Here, the switch can be implemented by a MOS tube. The control module 140 can realize the selection of any one of the high side output end and the low side output end of any driving channel by the opening and closing of the MOS tube.

[0043] Here, the control module 140 can control the first switch selection module 120 to select a high-side output terminal or a low-side output terminal from any driving channel to compare with the comparison reference voltage signal, thereby realizing the detection of the high-side output terminal and the low-side output terminal in multiple driving channels.

[0044] In a possible implementation, similar to the first switch selection module 120, the comparison voltage selection module 130 may also include a plurality of switches, one end of each switch is connected to the input end of the comparison module 110, and the other end is connected to different candidate reference voltage signals. Here, the switch may be implemented by a MOS tube. The control module 140 may select any candidate reference voltage signal as the comparison reference voltage signal by switching the MOS tube on and off.

[0045] In a possible implementation, the candidate reference voltage signal is obtained by at least one of the following: resistor voltage division; diode / Zener diode conduction voltage; bandgap reference; external reference voltage input.

[0046] In a possible implementation, the comparison module 110 may be configured to compare the comparison voltage signal with at least one comparison reference voltage signal to obtain a comparison result.

[0047] Here, the candidate reference voltage signals corresponding to different detection items may not be completely the same or may be completely different.

[0048] By controlling the first switch selection module 120 and the comparison voltage selection module 130 through the control module 140, the voltage signal of the high-side output terminal or the voltage signal of the low-side output terminal in any driving channel can be compared with different candidate reference voltage signals. That is, the detection of different detection items of the high-side output terminal and / or the low-side output terminal can be realized.

[0049] In a possible implementation, the high-side output terminal and the low-side output terminal each have a bias voltage, for example, the high-side output terminal and the low-side output terminal each have a bias voltage obtained by resistor voltage division.

[0050] Exemplarily, in a state where both the high-side drive circuit and the low-side drive circuit are turned off, the first switch selection module 120 can select the voltage signal of the high-side output terminal as the comparison voltage signal, and the comparison voltage selection module 130 can select a voltage signal (such as 4.3V) with a slightly lower driving power supply voltage value as the comparison reference voltage signal to implement a short-circuit test between the high-side output terminal and the driving power supply. For example, if the comparison voltage signal is higher than the comparison reference voltage signal voltage value, the control module 140 can determine that the high-side output terminal is short-circuited with the power supply. The first switch selection module 120 can select the voltage signal of the low-side output terminal as the comparison voltage signal, and the comparison voltage selection module 130 can select a voltage signal (such as 4.3V) with a slightly lower driving power supply voltage value as the comparison reference voltage signal to implement a short-circuit test between the low-side output terminal and the driving power supply. For example, if the comparison voltage signal is higher than the comparison reference voltage signal voltage value, the control module 140 can determine that the low-side output terminal is short-circuited with the power supply.

[0051] In this way, the voltage signal of the high-side output terminal or the low-side output terminal in different driving channels is selected by the first switch selection module 120, different candidate reference voltage signals are selected by the comparison voltage selection module 130, and the comparison between different ports and different candidate reference voltage signals is realized by the comparison module 110, thereby realizing different detection items by using the same module. Compared with using different detection modules to realize different detection items, the number of detection modules can be reduced, the chip area occupied by the detection modules can be reduced, the design complexity can be reduced, and the cost can be reduced.

[0052] In some embodiments, Figure 4 The comparison module 110 includes a first comparator 111 and / or a second comparator 112; the comparison voltage selection module 130 includes a first comparison voltage selection submodule 131 and / or a second comparison voltage selection submodule 132; The first comparison voltage selection submodule 131 is used to select one of the multiple candidate reference voltage signals and input it into the first comparator 111 as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule 132 is used to select one of the multiple candidate reference voltage signals and input it to the second comparator 112 as an upper limit comparison reference voltage signal; The first comparator 111 is used to compare the comparison voltage signal with the lower limit comparison reference voltage signal to obtain a first comparison result; The second comparator 112 is used to compare the comparison voltage signal with the upper limit comparison reference voltage signal to obtain a second comparison result; The control module 140 is configured to determine the detection result based on the first comparison result and / or the second comparison result.

[0053] In a possible implementation, the comparison module 110 may include at least one of a first comparator 111 and a second comparator 112 .

[0054] In a possible implementation, the first comparison voltage selection submodule 131 and the second comparison voltage selection submodule 132 respectively select corresponding lower limit candidate reference voltage signals and upper limit comparison reference voltage signals from different combinations of candidate reference voltage signals.

[0055] For example, Figure 4As shown, IGHx / IGLx represents the x-th high-side output terminal or low-side output terminal. The first comparison voltage selection submodule 131 selects the lower limit candidate reference voltage signal from the two candidate reference voltage signals of 0.5V and 0.9V, wherein sel05_lv and sel05_lv respectively represent the selection signals of the control module for selecting 0.5V and 0.9V; the second comparison voltage selection submodule 132 selects the upper limit candidate reference voltage signal from the two candidate reference voltage signals of 2.5V, 4.0V and 4.3V, wherein sel25_lv, sel40_lv and sel43_lv respectively represent the selection signals of the control module for selecting 2.5V, 4.0V and 4.3V. detl_lv and deth_lv respectively represent the first comparison result and the second comparison result.

[0056] In a possible implementation, the first comparison voltage selection submodule 131 and the second comparison voltage selection submodule 132 respectively select corresponding lower limit candidate reference voltage signals and upper limit comparison reference voltage signals from different combinations of candidate reference voltage signals.

[0057] By setting the first comparator 111 and the second comparator 112, it is possible to compare the comparison voltage signal with two comparison reference voltage signals at the same time, or to compare the comparison voltage signal with a single comparison reference voltage signal, thereby improving the flexibility of voltage comparison and being suitable for the detection requirements of different detection items.

[0058] In some embodiments, the first comparison voltage selection submodule 131 is used to input the first reference voltage signal to the first comparator 111 as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule 132 is used to input the second reference voltage signal to the second comparator 112 as an upper limit comparison reference voltage signal; wherein the voltage value of the first reference voltage signal is less than the voltage value of the second reference voltage signal; The control module 140 is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited to the power ground; The second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited with the corresponding driving power supply; Among them, the bias voltage value of the high-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal; the bias voltage value of the low-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.

[0059] Typically, the high-side output terminal and the low-side output terminal have bias voltages, respectively. For example, the high-side output terminal and the low-side output terminal have bias voltages obtained by resistor voltage division, respectively. In this embodiment and the following embodiments, unless otherwise specified, the high-side output terminal and the low-side output terminal have bias voltages, respectively, as an example for description.

[0060] The high-side output terminal and the low-side output terminal respectively have a bias voltage, and the bias voltage is lower than the voltage value of the driving power supply. If the voltage value of the high-side output terminal voltage signal or the voltage value of the low-side output terminal voltage signal is close to the voltage value of the driving power supply, then it can be determined that the high-side output terminal and the low-side output terminal are short-circuited with the driving power supply. If the voltage value of the high-side output terminal voltage signal or the voltage value of the low-side output terminal voltage signal is close to the voltage value of the power ground, then it can be determined that the high-side output terminal and the low-side output terminal are short-circuited with the power ground.

[0061] Exemplary, the voltage value of the driving power supply is 5V, the first comparison voltage selection submodule 131 selects 0.9V as the lower limit comparison reference voltage signal, and the second comparison voltage selection submodule 132 selects 4V as the upper limit comparison reference voltage signal. Therefore, if the voltage value of the high side output terminal voltage signal or the voltage value of the low side output terminal voltage signal is greater than 4V, then determine that the high side output terminal or the low side output terminal is short-circuited with the driving power supply. If the voltage value of the high side output terminal voltage signal or the voltage value of the low side output terminal voltage signal is less than 0.9V, then determine that the high side output terminal or the low side output terminal is short-circuited with the power supply ground.

[0062] In some embodiments, Figure 5 The port detection circuit shown also includes a first current source; The first current source is connected between the low-side output terminal of the first driving channel among the N driving channels and the power ground, and is used to extract a first current from the low-side output terminal of the first driving channel to the power ground; The first comparison voltage selection submodule 131 is used to input the third reference voltage signal into the first comparator 111 as a lower limit comparison reference voltage signal; The first switch selection module 120 is used to select a voltage signal of a low-side output terminal of a second driving channel among the N driving channels and input it into the first comparator 111 as a comparison voltage signal; wherein the first driving channel is different from the second driving channel; The control module 140 is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, and it is determined that there is cross coupling between the first driving channel and the second driving channel; The first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, and determines that there is no cross coupling between the first drive channel and the second drive channel; Among them, in the N driving channels, the bias voltage value of the high-side output end is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low-side output end is greater than the voltage value of the third reference voltage signal.

[0063] Here, each of the N driving channels may be polled in turn as a first driving channel to determine whether the first driving channel and the second driving channel have cross coupling, thereby determining the cross coupling between the driving channels.

[0064] In a possible implementation, the first current is smaller than a normal operating current of the load.

[0065] For example, Figure 5 As shown, VST50 represents a driving power supply, and the driving circuit has three driving channels, which are respectively connected to load 1, load 2 and load 3. Figure 5 In the embodiment, the first drive channel is used to drive load 1, and the two second drive channels are used to drive load 2 and load 2 respectively. The low-side output end of the first drive channel is connected to the first current source, and the first current (such as 100mA) is output through the first current source to pull the low-side output end of the first drive channel down to the power ground. The control module 140 controls the first switch selection module 120 to select a voltage signal of the low-side output end of a second drive channel in turn and input it into the first comparator 111, and compare it with a third reference signal (such as a voltage value of 0.9V) less than the bias voltage. If the voltage value of the voltage signal of the low-side output end of any second drive channel is lower than the third reference signal, it can be determined that the second drive channel is cross-coupled with the first drive channel. Among them, sel_lv represents the selection signal of the control module for selecting each second drive channel. detl_lv represents the first comparison result. Figure 6 for Figure 5 In the timing diagram, the voltage value of the voltage signal at the low-side output terminal (IGL1) of the first driving channel is pulled down by the first current, and the voltage value of the voltage signal at the low-side output terminal (IGL2) of one of the two second driving channels is pulled down. Therefore, it can be determined that the driving channel corresponding to the low-side output terminal (IGL2) and the driving channel corresponding to the low-side output terminal (IGL1) are cross-coupled.

[0066] In some embodiments, Figure 7 As shown, the port detection circuit also includes a second current source, wherein, The second current source is connected between the low-side output terminal and the power ground, and is used to draw a second current from the low-side output terminal to the power ground within a first time period based on the control of the control module 140, and not draw current after the end of the first time period; The first comparison voltage selection submodule 131 is used to input the fourth reference voltage signal into the first comparator 111 as a lower limit comparison reference voltage signal; The first switch selection module 120 is used to select the voltage signal of the low-side output terminal to be input to the first comparator 111 as a comparison voltage signal; The control module 140 is used to determine the boost time between the end time and the time when the first comparison result indicates that the comparison voltage signal is greater than the fourth reference voltage signal, and determine the parasitic capacitance value of the driving channel corresponding to the low-side output end based on the boost time.

[0067] In a possible implementation, a voltage value of the fourth reference voltage signal is smaller than a voltage value of a bias voltage at the low-side output terminal.

[0068] In a possible implementation, the second current is smaller than a normal operating current of the load.

[0069] like Figure 7 Here, the first time period can be determined based on the pull-down time required for the second current to pull the low-side output terminal IGL1 down to the power ground. The first time period is longer than the pull-down time.

[0070] After the second current source pulls the low-side output terminal IGL1 down to the power ground, the output of the second current can be stopped. The parasitic capacitor is charged by the pull-up resistor in the bias resistor until the parasitic capacitor voltage reaches a voltage value greater than the fourth reference voltage signal (such as the voltage value of the low-side output bias voltage). In the process of charging the parasitic capacitor, the charging current can be determined based on the voltage difference between the driving power supply (VST50) voltage value and the parasitic capacitor voltage value and the pull-up resistor. Therefore, the charging time can be determined based on the charging current and the voltage value of the fourth reference voltage signal. Then, the capacitance of the parasitic capacitor can be determined.

[0071] The control module 140 can control the first switch selection module 120 to select the low-side output terminals of different drive channels, and further determine the capacitance of the parasitic capacitor of the low-side output terminal of each drive channel. sel_lv represents the selection signal of the control module for selecting each second drive channel. detl_lv represents the first comparison result.

[0072] In some embodiments, the port detection circuit further includes a third current source, The third current source is connected between the low-side output terminal of the third driving channel among the N driving channels and the power ground, and is used to extract a third current from the low-side output terminal to the power ground based on the control of the control module 140; The first comparison voltage selection submodule 131 is used to input the fifth reference voltage signal into the first comparator 111 as a lower limit comparison reference voltage signal; wherein the voltage value of the fifth reference voltage signal is less than the bias voltage value of the high-side output end of the third driving channel; The first switch selection module 120 is used to input the voltage signal of the high-side output end of the third driving channel into the first comparator 111 as a comparison voltage signal; The control module 140 is used for at least one of the following: When the first comparison result indicates that the voltage value of the comparison voltage signal is less than the voltage value of the fifth reference voltage signal, determining that the third driving channel is normal; When the first comparison result indicates that the voltage value of the comparison voltage signal is greater than or equal to the voltage value of the fifth reference voltage signal, it is determined that the third driving channel is abnormal.

[0073] Here, the voltage change of the high-side output terminal when the low-side output terminal is pulled low can be used to determine the loop connectivity of the driving circuit, such as whether the load is connected to the driving circuit.

[0074] Since the high-side output terminal has a resistor voltage divider bias circuit, if the load is connected to the driving circuit, if the low-side output terminal is pulled low, the resistance of the high-side output terminal to ground becomes smaller, thereby causing the voltage value of the high-side output terminal to also decrease.

[0075] Therefore, a fifth reference voltage signal having a smaller value than the bias voltage of the high-side output terminal may be set to be compared with the voltage signal of the high-side output terminal.

[0076] A third current source can be set at the low-side output end of each drive channel, and the control module 140 can control the first switch selection module 120 to select the voltage signal of the high-side output end of different drive channels for comparison with the fifth reference voltage signal, thereby determining the loop connection status of each drive channel.

[0077] In some embodiments, the control module 140 is used to turn on the low-side driving circuit of the fourth driving channel among the N driving channels in a second time period, and / or turn on the high-side driving circuit of the fourth driving channel in a third time period, wherein the second time period does not overlap with the third time period; The first comparison voltage selection submodule 131 is used to input the sixth reference voltage signal to the first comparator 111 as a lower limit comparison reference voltage signal; and / or the second comparison voltage selection submodule 132 is used to input the seventh reference voltage signal to the second comparator 112 as an upper limit comparison reference voltage signal; wherein the voltage value of the sixth reference voltage signal is less than the voltage value of the seventh reference voltage signal; The first switch selection module 120 is used to input the voltage signal of the low-side output end into the first comparator 111 as a comparison voltage signal in a second time period; and / or input the voltage signal of the high-side output end into the second comparator 112 as a comparison voltage signal in a third time period; The control module 140 is used for at least one of the following: The first comparison result in the second time period indicates that the voltage value of the comparison voltage signal is less than the voltage value of the sixth reference voltage signal, and it is determined that the low-side output terminal is normal; otherwise, it is determined that the low-side output terminal is abnormal; The second comparison result in the third time period indicates that the voltage value of the comparison voltage signal is greater than the voltage value of the seventh reference voltage signal, and the high-side output terminal is determined to be normal; otherwise, the high-side output terminal is determined to be abnormal.

[0078] Specifically, for a single drive channel, the low-side drive circuit and the high-side drive circuit can be turned on respectively in the second time period and the third time period without overlapping parts, and the first comparator 111 compares the voltage signal at the low-side output end with the sixth reference voltage signal in the second time period, and the second comparator 112 compares the voltage signal at the low-side output end with the seventh reference voltage signal in the third time period.

[0079] In a possible implementation, the low-side driving circuit at least includes a switch tube (such as an N-type MOS tube) for turning on or off between the low-side output terminal and the power ground. The high-side driving circuit at least includes a switch tube (such as an N-type MOS tube) for turning on or off between the high-side output terminal and the driving power supply.

[0080] When the low-side drive circuit is turned on, the voltage difference between the low-side output terminal and the power ground is the voltage difference when the switch tube is turned on. Therefore, the sixth reference voltage signal can be set to a smaller voltage value (such as 0.5V). If the voltage value of the low-side output terminal voltage signal is less than the voltage value of the sixth reference voltage signal, it means that the low-side drive circuit is turned on normally, and the low-side output terminal is considered normal. Otherwise, the low-side output terminal is considered abnormal, such as the low-side drive circuit is not fully turned on.

[0081] When the high-side drive circuit is turned on, the voltage difference between the high-side output terminal and the drive power supply is the voltage difference when the switch tube is turned on. Therefore, the seventh reference voltage signal can be set to a voltage value slightly smaller than the drive power supply voltage value (for example, the drive power supply voltage is 5V, and the seventh reference voltage signal is 4.3V). If the voltage value of the high-side output terminal voltage signal is greater than the voltage value of the seventh reference voltage signal, it means that the high-side drive circuit is turned on normally, and the high-side output terminal is considered normal. Otherwise, it is considered that the high-side output terminal is abnormal, such as the high-side drive circuit is not fully turned on.

[0082] In some embodiments, Figure 8 As shown, the port detection circuit also includes an analog-to-digital conversion module 150; wherein, The first switch selection module 120 is used to select one of the voltage signals of at least one predetermined detection point corresponding to the N driving channels and input it to the analog-to-digital conversion module 150 as a voltage signal to be detected; The analog-to-digital conversion module 150 is used to determine the voltage value of the voltage signal to be detected; The control module 140 is used to determine the detection result of the drive channel associated with the voltage signal to be detected based on the voltage value determined by the analog-to-digital conversion module 150.

[0083] Here, the analog-to-digital conversion module 150 is used to convert the analog signal: the voltage signal to be detected, into a digital signal that can be processed by the control module 140 .

[0084] In a possible implementation, the first switch selection module 120 may include a plurality of switches, one end of each switch is connected to the input end of the analog-to-digital conversion module 150, and the other end is connected to any one of the voltage signals of the predetermined detection points of each drive channel. Here, the switch may be implemented by a MOS tube. The control module 140 may select any one of the predetermined detection points of any drive channel by opening and closing the MOS tube.

[0085] The analog-to-digital conversion module 150 may perform analog-to-digital conversion on the voltage signal selected by the first switch selection module 120 to obtain a voltage value at a predetermined detection point. The controller may determine the detection result of the driving channel based on the voltage value.

[0086] In a possible implementation, if there is no contradiction, the predetermined detection point may include any point in the driving channel, such as a high-side output terminal, a low-side output terminal, etc.

[0087] Here, the analog-to-digital conversion results of the voltage signals at different predetermined detection points can be used to detect different detection items without setting up a separate module for each detection item, thereby reducing the number of detection modules, reducing the chip area occupied by the detection modules, reducing design complexity and reducing costs.

[0088] In some embodiments, the predetermined detection point includes a power supply voltage sampling point of a driving power supply of a high-side driving circuit and / or a low-side driving circuit in each of the driving channels; The analog-to-digital conversion module 150 is used to determine the voltage value of the driving power supply.

[0089] Here, the first switch selection module 120 can input the driving power supply voltage signal of each driving channel to the analog-to-digital conversion module 150 in sequence under the control of the control module 140, and the analog-to-digital conversion module 150 determines the voltage value, and then the control module 140 determines whether the voltage value of the driving power supply voltage signal meets the predetermined voltage requirement, thereby realizing the detection of the driving power supply.

[0090] In some embodiments, Fig. 9 Said port detection circuit further comprises a fourth current source and a sampling and holding module 160; wherein; The fourth current source is used to extract a fourth current from the driving power supply of the driving channel selected by the first switch selection module 120 in a fourth time period; The sampling and holding module 160 is used to sample and hold the voltage signal to be detected collected at the power supply voltage sampling point; The analog-to-digital conversion module 150 is used to determine the voltage value of the driving power supply obtained by sampling and holding the voltage signal to be detected.

[0091] Figure 1 In the driving circuit shown, when the switch MOS in the high-side driving circuit is disconnected or fails, the voltage of the pin connected to the switch MOS and the driving power supply is floating. Here, the driving power supply can be discharged by a fourth current (such as 52mA) to remove the interference of the pin. Then, the driving power supply voltage signal is detected by the analog-to-digital conversion module 150 to measure the actual voltage value of the driving power supply.

[0092] like Fig.10 As shown, voltage sampling can be performed during the discharge process (the fourth circuit acts on the driving power supply). The fourth time period is relatively short. Therefore, the sampling and holding module 160 can be used to sample and hold the voltage signal to be tested that the analog-to-digital conversion module 150 needs to sample, and then perform analog-to-digital conversion.

[0093] In a possible implementation, the sampling and holding module 160 may be connected to the first switch selection module 120 to sample and hold the voltage signal to be detected selected by the first switch selection module 120 .

[0094] In some embodiments, Fig.11 As shown, the port detection circuit further includes a second switch selection module 170, a fifth current source and a reference resistor; wherein; The second switch selection module 170 is used to select and output the fifth current of the fifth current source to one of the reference resistor and the high-side output terminal of each driving channel based on the control of the control module 140; wherein the first end of the reference resistor is used to input the fifth current, and the second end of the reference resistor is connected to the power ground; The predetermined detection point includes: a high-side output end of the driving channel, a low-side output end of the driving channel and a first end of the reference resistor; The control module 140 is used to determine the resistance of the load based on the voltage value of the first end of the reference resistor, the voltage value of the high-side output end of the drive channel, the voltage value of the low-side output end of the drive channel, and the resistance value of the reference resistor.

[0095] like Fig.11 As described above, the second switch selection module 170 can direct the fifth current to the reference resistor to determine the voltage drop generated by the fifth current on the reference resistor, that is, the voltage value of the first end of the reference resistor. Then, the second switch selection module 170 can direct the fifth current to the drive channel. Here, the control module 140 can turn on the high-side drive circuit and the low-side drive circuit to allow the fifth current to flow through the load. The first switch selection module 120 can respectively receive the voltage signal of the first end of the reference resistor, the voltage signal of the high-side output end, and the voltage signal of the low-side output end to respectively obtain the voltage value of the first end of the reference resistor, the voltage value of the high-side output end, and the voltage value of the low-side output end, and then use expression (1) to determine the load resistance. In this way, it can be determined whether the load resistance is within the predetermined resistance range to determine whether the load is normal.

[0096] [(VIGH-VIGL) / VSQREF]*RSQREF (1) Among them, VIGH represents the voltage value of the high-side output terminal, VIGL represents the voltage value of the low-side output terminal, VSQREF represents the voltage value of the first terminal of the reference resistor, and RSQREF represents the resistance value of the reference resistor.

[0097] The present application also provides an integrated circuit chip, including the port detection circuit described in any of the above embodiments. The implementation of the port detection circuit is the same as any of the above embodiments and will not be described in detail here.

[0098] The present application also provides an electrical device, such as an airbag system, and the port detection circuit described in any of the above embodiments or the integrated circuit chip described in any of the above embodiments.

[0099] In a possible implementation, the airbag system further includes an airbag.

[0100] The present application also provides a vehicle system, comprising a vehicle body and the airbag system described in any one of the above embodiments.

[0101] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above-mentioned port detection method is implemented.

[0102] The computer-readable storage medium provided in this embodiment can execute the port detection method of the above embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0103] The computer-readable storage medium mentioned above may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium may be any available medium that can be accessed by a general or special-purpose computer.

[0104] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a main control device.

[0105] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0106] The various embodiments or implementation methods in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referenced to each other.

[0107] In the description of this specification, reference to "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0108] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A port detection circuit, characterized in that: The port detection circuit is applied to a driving circuit, the driving circuit includes N driving channels, the driving channels include: a high-side output end, a high-side driving circuit connected to the high-side output end, a low-side output end, and a low-side driving circuit connected to the low-side output end; the high-side output end and the low-side output end are used to connect two ends of a load; The port detection circuit includes: a comparison module, a first switch selection module, a comparison voltage selection module and a control module, wherein: The comparison voltage selection module is used to select a comparison reference voltage signal input to the comparison module from a plurality of candidate reference voltage signals based on the control of the control module; The first switch selection module is used to select one of the voltage signals of the high-side output terminals and the voltage signals of the low-side output terminals respectively corresponding to the N driving channels based on the control of the control module, and input it into the comparison module as a comparison voltage signal; The comparison module is used to compare the comparison reference voltage signal with the comparison voltage signal to obtain a comparison result; The control module is used to determine the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module.

2. The port detection circuit according to claim 1, characterized in that: The comparison module includes a first comparator and / or a second comparator; the comparison voltage selection module includes a first comparison voltage selection submodule and / or a second comparison voltage selection submodule; Wherein, the first comparison voltage selection submodule is used to select one from the multiple candidate reference voltage signals and input it into the first comparator as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule is used to select one of the multiple candidate reference voltage signals and input it into the second comparator as an upper limit comparison reference voltage signal; The first comparator is used to compare the comparison voltage signal with the lower limit comparison reference voltage signal to obtain a first comparison result; The second comparator is used to compare the comparison voltage signal with the upper limit comparison reference voltage signal to obtain a second comparison result; The control module is used to determine the detection result based on the first comparison result and / or the second comparison result.

3. The port detection circuit according to claim 2, characterized in that: The first comparison voltage selection submodule is used to input the first reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The second comparison voltage selection submodule is used to input the second reference voltage signal into the second comparator as an upper limit comparison reference voltage signal; wherein the voltage value of the first reference voltage signal is less than the voltage value of the second reference voltage signal; The control module is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited to the power ground; The second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, and determines that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited with the corresponding driving power supply; Among them, the bias voltage value of the high-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal; the bias voltage value of the low-side output end is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.

4. The port detection circuit according to claim 2, characterized in that: The port detection circuit also includes a first current source; The first current source is connected between the low-side output terminal of the first driving channel among the N driving channels and the power ground, and is used to extract a first current from the low-side output terminal of the first driving channel to the power ground; The first comparison voltage selection submodule is used to input the third reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The first switch selection module is used to select a voltage signal at a low-side output terminal of a second driving channel among the N driving channels and input it into the first comparator as a comparison voltage signal; wherein the first driving channel is different from the second driving channel; The control module is used for at least one of the following: The first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, and it is determined that there is cross coupling between the first driving channel and the second driving channel; The first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, and determines that there is no cross coupling between the first drive channel and the second drive channel; Among them, in the N driving channels, the bias voltage value of the high-side output end is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low-side output end is greater than the voltage value of the third reference voltage signal.

5. The port detection circuit according to claim 2, characterized in that: The port detection circuit further includes a second current source, wherein: The second current source is connected between the low-side output terminal and the power ground, and is used to draw a second current from the low-side output terminal to the power ground within a first time period based on the control of the control module, and not draw current after the end of the first time period; The first comparison voltage selection submodule is used to input the fourth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; The first switch selection module is used to select the voltage signal of the low-side output terminal to be input into the first comparator as a comparison voltage signal; The control module is used to determine the boost time between the end time and the time when the first comparison result indicates that the comparison voltage signal is greater than the fourth reference voltage signal, and determine the parasitic capacitance of the drive channel corresponding to the low-side output end based on the boost time.

6. The port detection circuit according to claim 2, characterized in that: The port detection circuit further includes a third current source, The third current source is connected between the low-side output terminal of the third driving channel among the N driving channels and the power ground, and is used to extract a third current from the low-side output terminal to the power ground based on the control of the control module; The first comparison voltage selection submodule is used to input a fifth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; wherein the voltage value of the fifth reference voltage signal is less than the bias voltage value of the high side output end of the third driving channel; The first switch selection module is used to input the voltage signal of the high-side output end of the third driving channel into the first comparator as a comparison voltage signal; The control module is used for at least one of the following: When the first comparison result indicates that the voltage value of the comparison voltage signal is less than the voltage value of the fifth reference voltage signal, determining that the third driving channel is normal; When the first comparison result indicates that the voltage value of the comparison voltage signal is greater than or equal to the voltage value of the fifth reference voltage signal, it is determined that the third driving channel is abnormal.

7. The port detection circuit according to claim 2, characterized in that: The control module is used to turn on the low-side driving circuit of the fourth driving channel among the N driving channels in a second time period, and / or turn on the high-side driving circuit of the fourth driving channel in a third time period, wherein the second time period has no overlapping part with the third time period; The first comparison voltage selection submodule is used to input the sixth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; and / or the second comparison voltage selection submodule is used to input the seventh reference voltage signal into the second comparator as an upper limit comparison reference voltage signal; wherein the voltage value of the sixth reference voltage signal is less than the voltage value of the seventh reference voltage signal; The first switch selection module is used to input the voltage signal of the low-side output terminal into the first comparator as a comparison voltage signal in a second time period; and / or input the voltage signal of the high-side output terminal into the second comparator as a comparison voltage signal in a third time period; The control module is used for at least one of the following: The first comparison result in the second time period indicates that the voltage value of the comparison voltage signal is less than the voltage value of the sixth reference voltage signal, and it is determined that the low-side output terminal is normal; otherwise, it is determined that the low-side output terminal is abnormal; The second comparison result in the third time period indicates that the voltage value of the comparison voltage signal is greater than the voltage value of the seventh reference voltage signal, and the high-side output terminal is determined to be normal; otherwise, the high-side output terminal is determined to be abnormal.

8. The port detection circuit according to any one of claims 1 to 7, characterized in that: The port detection circuit also includes an analog-to-digital conversion module; wherein, The first switch selection module is used to select one of the voltage signals of at least one predetermined detection point corresponding to each of the N driving channels and input it into the analog-to-digital conversion module as a voltage signal to be detected; The analog-to-digital conversion module is used to determine the voltage value of the voltage signal to be detected; The control module is used to determine the detection result of the voltage signal to be detected associated with the driving channel based on the voltage value determined by the analog-to-digital conversion module.

9. The port detection circuit according to claim 8, characterized in that: The predetermined detection points include power supply voltage sampling points of the driving power supplies of the high-side driving circuit and / or the low-side driving circuit in each of the driving channels; The analog-to-digital conversion module is used to determine the voltage value of the driving power supply.

10. The port detection circuit according to claim 9, characterized in that: The port detection circuit also includes a fourth current source and a sample-and-hold module; in; The fourth current source is used to extract a fourth current from the driving power supply of the driving channel selected by the first switch selection module in a fourth time period; The sampling and holding module is used to sample and hold the voltage signal to be detected collected by the power supply voltage sampling point; The analog-to-digital conversion module is used to determine the voltage value of the driving power supply obtained by sampling and holding the voltage signal to be detected.

11. The port detection circuit according to claim 8, characterized in that: The port detection circuit also includes a second switch selection module, a fifth current source and a reference resistor; in; The second switch selection module is used to select and output the fifth current of the fifth current source to one of the reference resistor and the high-side output terminal of each driving channel based on the control of the control module; wherein the first end of the reference resistor is used to input the fifth current, and the second end of the reference resistor is connected to the power ground; The predetermined detection point includes: a high-side output end of the driving channel, a low-side output end of the driving channel and a first end of the reference resistor; The control module is used to determine the resistance of the load based on the voltage value of the first end of the reference resistor, the voltage value of the high-side output end of the drive channel, the voltage value of the low-side output end of the drive channel, and the resistance value of the reference resistor.

12. An integrated circuit chip, characterized in that: The integrated circuit chip comprises a driving circuit and the port detection circuit according to any one of claims 1 to 11.

13. An electrical device, characterized in that: The electrical equipment comprises: The port detection circuit according to any one of claims 1 to 6; or The integrated circuit chip of claim 12.

Citation Information

Patent Citations

  • Port detection system and vehicle possessing same

    CN105093048A

  • High-low edge drive output circuit of finished automobile controller of pure electric automobile

    CN108819879A

  • Chip port state detection circuit, chip and communication terminal

    CN112485654A

  • Chip circuit, chip and multi-chip system

    CN116865732A

  • LED array driver with external pin short circuit detection

    CN117135792A