Port detection circuit, integrated circuit chip and electrical device
Through the integrated design of port detection circuits, multiple detection projects of airbag systems are integrated, solving the problems of large number of modules, large area and high complexity in the existing technology, reducing costs and improving detection efficiency.
Patent Information
- Application Number
- CN202411844670.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-16
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2044-12-16
AI Technical Summary
The existing airbag system has a large number of detection modules, takes up a large chip area, high design complexity and high cost.
The port detection circuit is adopted, including a comparison module, a first switch selection module, a comparison voltage selection module and a control module. By selecting the voltage signals and reference voltage signals of different driving channels for comparison, the integrated detection of multiple detection items is realized.
The number of detection modules is reduced, the chip area is reduced, the design complexity and cost are reduced, and the flexibility and accuracy of detection are improved.
Smart Images

Figure CN119322254B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and particularly to a port detection circuit, an integrated circuit chip, and an electrical device. Background Art
[0002] Existing airbag modules mainly include a power module, a microprocessor, sensors, an airbag ignition actuator, an ignition tube for airbag ignition, etc. During the driving process of an automobile, it is necessary to ensure the reliable function of the airbag system, and it is necessary to ensure that when a fault occurs in the airbag, it can be detected and located in time. Therefore, a perfect and reliable self-check function needs to be provided. Such as whether the connection of the airbag ignition tube is open or short-circuited, whether the resistance / capacitance of the ignition circuit is too large, whether the function of the ignition module 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 the embodiments of the present disclosure, there is provided a port detection circuit applied to a driving circuit, the driving circuit including N driving channels, and each driving channel including: 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 for connecting both ends of a load;
[0005] The port detection circuit includes: a comparison module, a first switch selection module, a comparison voltage selection module, and a control module, where
[0006] The comparison voltage selection module is configured to select, based on the control of the control module, a comparison reference voltage signal input to the comparison module from a plurality of candidate reference voltage signals;
[0007] The first switch selection module is configured to select, based on the control of the control module, 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 as a comparison voltage signal input to the comparison module;
[0008] The comparison module is configured to compare the comparison reference voltage signal and the comparison voltage signal to obtain a comparison result;
[0009] The control module is configured to determine, based on the comparison result of the comparison module, the detection result of the driving channel associated with the comparison result.
[0010] 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 sub-module and / or a second comparison voltage selection sub-module;
[0011] Among them, the first comparison voltage selection sub-module is configured to select one from the multiple candidate reference voltage signals and input it to the first comparator as the lower limit comparison reference voltage signal;
[0012] The second comparison voltage selection sub-module is configured to select one from the multiple candidate reference voltage signals and input it to the second comparator as the upper limit comparison reference voltage signal;
[0013] The first comparator is configured to compare the comparison voltage signal and the lower limit comparison reference voltage signal to obtain a first comparison result;
[0014] The second comparator is configured to compare the comparison voltage signal and the upper limit comparison reference voltage signal to obtain a second comparison result;
[0015] The control module is configured to determine the detection result based on the first comparison result and / or the second comparison result.
[0016] In some embodiments, the first comparison voltage selection sub-module is configured to input a first reference voltage signal to the first comparator as the lower limit comparison reference voltage signal;
[0017] The second comparison voltage selection sub-module is configured to input a second reference voltage signal to the second comparator as the 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;
[0018] The control module is configured to perform at least one of the following:
[0019] When the first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, it is determined 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;
[0020] When the second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, it is determined that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited to the corresponding drive power supply;
[0021] Among them, the bias voltage value of the high-side output terminal 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 terminal is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.
[0022] In some embodiments, the port detection circuit further includes a first current source;
[0023] 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 draw a first current from the low-side output terminal of the first driving channel to the power ground;
[0024] The first comparison voltage selection sub-module is used to input a third reference voltage signal into the first comparator as a lower-limit comparison reference voltage signal;
[0025] The first switch selection module is used to select the voltage signal at the low-side output terminal of the 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;
[0026] The control module is used for at least one of the following:
[0027] When the first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, it is determined that there is cross-coupling between the first driving channel and the second driving channel;
[0028] When the first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, it is determined that there is no cross-coupling between the first driving channel and the second driving channel;
[0029] Wherein, among the N driving channels, the bias voltage value of the high-side output terminal is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low-side output terminal is greater than the voltage value of the third reference voltage signal.
[0030] In some embodiments, the port detection circuit further includes a second current source, wherein,
[0031] 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 based on the control of the control module during a first time period, and does not draw current after the end moment of the first time period;
[0032] The first comparison voltage selection sub-module is used to input a fourth reference voltage signal into the first comparator as a lower-limit comparison reference voltage signal;
[0033] The first switch selection module is used to select the voltage signal of the low-side output terminal and input it into the first comparator as a comparison voltage signal;
[0034] The control module is used to determine the boost duration between the end moment and the moment 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 corresponding driving channel of the low-side output terminal based on the boost duration.
[0035] In some embodiments, the port detection circuit further includes a third current source,
[0036] 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 configured to draw a third current from the low-side output terminal to the power ground based on the control of the control module;
[0037] The first comparison voltage selection sub-module is configured to input a fifth reference voltage signal to 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 terminal of the third driving channel;
[0038] The first switch selection module is configured to input the voltage signal of the high-side output terminal of the third driving channel to the first comparator as a comparison voltage signal;
[0039] The control module is configured to perform at least one of the following:
[0040] 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, determine that the third driving channel is normal;
[0041] 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, determine that the third driving channel is abnormal.
[0042] In some embodiments, the control module is configured to turn on the low-side driving circuit of the fourth driving channel among the N driving channels within a second time period, and / or turn on the high-side driving circuit of the fourth driving channel within a third time period, wherein the second time period and the third time period do not overlap;
[0043] The first comparison voltage selection sub-module is configured to input a sixth reference voltage signal to the first comparator as a lower limit comparison reference voltage signal; and / or the second comparison voltage selection sub-module is configured to input a seventh reference voltage signal to 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;
[0044] The first switch selection module is configured to input the voltage signal of the low-side output terminal to the first comparator as a comparison voltage signal within the second time period; and / or input the voltage signal of the high-side output terminal to the second comparator as a comparison voltage signal within the third time period;
[0045] The control module is configured to perform at least one of the following:
[0046] During the second time period, if the first comparison result indicates that the voltage value of the comparison voltage signal is less than the voltage value of the sixth reference voltage signal, it is determined that the low-side output terminal is normal; otherwise, it is determined that the low-side output terminal is abnormal.
[0047] During the third time period, if the second comparison result indicates that the voltage value of the comparison voltage signal is greater than the voltage value of the seventh reference voltage signal, it is determined that the high-side output terminal is normal; otherwise, it is determined that the high-side output terminal is abnormal.
[0048] In some embodiments, the port detection circuit further includes an analog-to-digital conversion module; wherein,
[0049] The first switch selection module is configured to select one voltage signal from at least one predetermined detection point corresponding to each of the N driving channels and input it to the analog-to-digital conversion module as the voltage signal to be detected.
[0050] The analog-to-digital conversion module is configured to determine the voltage value of the voltage signal to be detected.
[0051] The control module is configured to determine the detection result of the driving channel associated with the voltage signal to be detected based on the voltage value determined by the analog-to-digital conversion module.
[0052] In some embodiments, the predetermined detection points include the power 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.
[0053] The analog-to-digital conversion module is configured to determine the voltage value of the driving power supply.
[0054] In some embodiments, the port detection circuit further includes a fourth current source and a sample-and-hold module; wherein;
[0055] The fourth current source is configured to draw a fourth current from the driving power supply of the driving channel selected by the first switch selection module during the fourth time period.
[0056] The sample-and-hold module is configured to sample and hold the voltage signal to be detected collected at the power voltage sampling point.
[0057] The analog-to-digital conversion module is configured to determine the voltage value of the driving power supply from the voltage signal to be detected that has been sampled and held.
[0058] In some embodiments, the port detection circuit further includes a second switch selection module, a fifth current source, and a reference resistor; wherein;
[0059] The second switch selection module is configured to selectively 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;
[0060] The predetermined detection points include: the high-side output terminal of the driving channel, the low-side output terminal of the driving channel, and the first end of the reference resistor;
[0061] The control module is configured to determine the resistance value of the load based on the voltage value at the first end of the reference resistor, the voltage value at the high-side output terminal of the driving channel, the voltage value at the low-side output terminal of the driving channel, and the resistance value of the reference resistor.
[0062] According to a second aspect of the embodiments of the present disclosure, there is provided an integrated circuit chip, which includes a driving circuit and the port detection circuit according to the first aspect.
[0063] According to a third aspect of the embodiments of the present disclosure, there is provided an electrical device, which includes:
[0064] The port detection circuit according to the first aspect; or
[0065] The integrated circuit chip according to the second aspect.
[0066] Embodiments of the present disclosure provide a port detection circuit, an integrated circuit chip, and an electrical device. The port detection circuit is applied to a driving circuit, and the driving circuit includes N driving channels. Each driving channel includes 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 to both 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. Among them, the comparison voltage selection module is configured to select a comparison reference voltage signal input to the comparison module from multiple candidate reference voltage signals based on the control of the control module. The first switch selection module is configured to select one of the voltage signals of the high-side output terminal and the voltage signals of the low-side output terminal corresponding to the N driving channels respectively as a comparison voltage signal input to the comparison module based on the control of the control module. The comparison module is configured to compare the comparison reference voltage signal and the comparison voltage signal to obtain a comparison result. The control module is configured 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, by the first switch selection module, 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, by the comparison voltage selection module, different candidate reference voltage signals are selected, and by the comparison module, the comparison between different ports and different candidate reference voltage signals is realized. Furthermore, the same module is used to realize different detection items. 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
[0067] Figure 1 FIG. is a schematic structural diagram of a driving circuit shown according to an exemplary embodiment;
[0068] Figure 2 FIG. is a schematic structural diagram of a port detection circuit shown according to an exemplary embodiment;
[0069] Figure 3 FIG. is a schematic structural diagram of another port detection circuit shown according to an exemplary embodiment;
[0070] Figure 4 FIG. is a schematic structural diagram of yet another port detection circuit shown according to an exemplary embodiment;
[0071] Figure 5 FIG. is a schematic structural diagram of still another port detection circuit shown according to an exemplary embodiment;
[0072] Figure 6 FIG. is a schematic diagram of a detection timing shown according to an exemplary embodiment;
[0073] Figure 7 It is a schematic diagram of yet another port detection circuit structure shown according to an exemplary embodiment;
[0074] Figure 8 It is a schematic diagram of yet another port detection circuit structure shown according to an exemplary embodiment;
[0075] Figure 9 It is a schematic diagram of yet another port detection circuit structure shown according to an exemplary embodiment;
[0076] Figure 10 It is a schematic diagram of another detection timing structure shown according to an exemplary embodiment;
[0077] Figure 11 It is a schematic diagram of yet another port detection circuit structure shown according to an exemplary embodiment. Detailed implementation manners
[0078] To make the technical solutions and beneficial effects of the present invention more obvious and understandable, the following will be described in detail by listing specific embodiments. Among them, the drawings are not necessarily drawn to scale, and local features can 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 and scientific fields to which this application belongs.
[0079] The embodiments of the present disclosure are not exhaustive, but only schematic of some embodiments, and do not constitute a specific limitation on the protection scope of the present disclosure. Without contradiction, each step in an embodiment can be implemented as an independent embodiment, and the steps can be combined arbitrarily. For example, the solution after removing some steps in an embodiment can also be implemented as an independent embodiment, and the order of the steps in an embodiment can be arbitrarily exchanged. In addition, the optional implementation manners in an embodiment can be arbitrarily combined; furthermore, the embodiments can be arbitrarily combined. For example, some or all of the steps of different embodiments can be arbitrarily combined, and an embodiment can be arbitrarily combined with the optional implementation manners of other embodiments.
[0080] In each embodiment of the present disclosure, if there is no special explanation and logical conflict, the terms and / or descriptions among the embodiments are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0081] The terms used in the embodiments of the present disclosure are only for the purpose of describing specific embodiments, and do not constitute a limitation on the present disclosure.
[0082] In the embodiments of the present disclosure, unless otherwise specified, elements expressed in the singular form, such as "a", "an", "the", "above-mentioned", "said", "aforementioned", "this", etc., may mean "one and only one", or may also mean "one or more", "at least one", etc. For example, in the case of using articles such as "a", "an", "the" in English translation, the noun following the article can be understood as a singular form of expression or a plural form of expression.
[0083] In the embodiments of the present disclosure, "a plurality of" means two or more.
[0084] In some embodiments, terms such as "at least one (at least one of, at least one item, at least one)", "one or more", "a plurality of", "multiple", etc. can be substituted for each other.
[0085] In some embodiments, notations such as "at least one of A and B", "A and / or B", "in one case A, in another case B", "one case A, another case B", etc. may, depending on the circumstances, include the following technical solutions: In some embodiments, A (performing A independently of B); in some embodiments, B (performing B independently of A); in some embodiments, performing a selection from A and B (A and B are selectively performed); in some embodiments, A and B (both A and B are performed). The same is true when there are more branches such as A, B, C, etc.
[0086] In some embodiments, notations such as "A or B" may, depending on the circumstances, include the following technical solutions: In some embodiments, A (performing A independently of B); in some embodiments, B (performing B independently of A); in some embodiments, performing a selection from A and B (A and B are selectively performed). The same is true when there are more branches such as A, B, C, etc.
[0087] The prefix words such as "first" and "second" in the embodiments of the present disclosure are only used to distinguish different described objects, and do not limit the position, order, priority, value or content of the described objects. For the statements of the described objects, refer to the descriptions in the claims or the context of the embodiments. Unnecessary restrictions should not be formed due to the use of prefix words. For example, if the described object is "field", the ordinal numbers before "field" in "first field" and "second field" do not limit the position or order between the "fields", and "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of "first field" and "second field". Another example, if the described object is "level", the ordinal numbers before "level" in "first level" and "second level" do not limit the priority between the "levels". Another example, the value of the described object is not restricted by the ordinal number and can be one or more. Taking "first device" as an example, the value of "device" can be one or more. In addition, the objects modified by different prefix words can be the same or different. For example, if the described object is "device", "first device" and "second device" can be the same device or different devices, and their types can be the same or different; another example, if the described object is "information", "first information" and "second information" can be the same information or different information, and their contents can be the same or different.
[0088] In some embodiments, "including A", "containing A", "used to indicate A", "carrying A" can be interpreted as directly carrying A or indirectly indicating A.
[0089] In some embodiments, terms such as "……", "determine……", "in the case of……", "when……", "when……", "if……", "if……" can be replaced with each other.
[0090] 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", "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", "not more than", "lower than", "lower than or equal to", "not higher than", "below" can be replaced with each other.
[0091] In addition, each element, each row, or each column in the table of the embodiments of the present disclosure can be implemented as an independent embodiment, and any combination of any element, any row, and any column can also be implemented as an independent embodiment.
[0092] Figure 1 It is a schematic structural diagram of an airbag drive circuit (or an airbag ignition circuit), as Figure 1As shown, the airbag ignition circuit includes a drive circuit located within the ignition actuator. Generally, the drive circuit within an ignition actuator includes N drive channels (also referred to as ignition channels), and each drive channel is used to drive an airbag igniter tube (i.e., drive an airbag). A drive channel includes: a high-side output terminal, a high-side drive circuit connected to the high-side output terminal, a low-side output terminal, and a low-side drive circuit connected to the low-side output terminal. Among them, the high-side output terminal and the low-side output terminal are respectively connected to both ends of the airbag igniter tube. When the high-side drive circuit and the low-side drive circuit are turned on, the ignition circuit is conducted, and the drive current flows through the airbag igniter tube (load) to trigger ignition.
[0093] The proper functioning of the airbag ignition circuit determines whether the airbag can be correctly detonated. Therefore, the detection of the airbag ignition circuit is related to the safety of personnel and is very important. Existing ignition actuators provide detections such as ignition circuit short-circuit detection, ignition circuit power supply voltage detection, safety switch detection, power stage diagnosis, drive channel cross-coupling diagnosis, drive channel parasitic capacitance diagnosis, drive channel resistance detection, etc.
[0094] In some embodiments, each of the above detection items is completed by an independent module. Therefore, multiple modules are required to implement the detection of the airbag ignition circuit. The multiple independent modules occupy a large chip area, increasing the design complexity and thus raising the cost.
[0095] Therefore, how to reduce the number of modules for detecting the airbag ignition circuit, reduce the chip area occupied by the modules, lower the design complexity, and reduce the cost is an urgent problem to be solved.
[0096] The embodiment of the present disclosure provides a port detection circuit applied to a drive circuit. The drive circuit includes N drive channels. The drive channel includes: a high-side output terminal, a high-side drive circuit connected to the high-side output terminal, a low-side output terminal, and a low-side drive circuit connected to the low-side output terminal; the high-side output terminal and the low-side output terminal are used to connect both ends of the load;
[0097] As Figure 2 described, 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, where
[0098] The comparison voltage selection module 130 is configured to select, based on the control of the control module 140, a comparison reference voltage signal input to the comparison module 110 from multiple candidate reference voltage signals;
[0099] The first switch selection module 120 is configured to select one of the voltage signals at the high-side output terminal and the voltage signal at the low-side output terminal corresponding to each of the N driving channels as a comparison voltage signal to be input to the comparison module 110 based on the control of the control module 140;
[0100] The comparison module 110 is configured to compare the comparison reference voltage signal and the comparison voltage signal to obtain a comparison result;
[0101] The control module 140 is configured to determine a detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module 110.
[0102] Here, a possible implementation of the driving circuit is as Figure 1 shown.
[0103] In a possible implementation, the driving circuit is configured to close the power supply loop of the load to supply power to the load. Among them, the high-side driving circuit is configured to drive the switch (such as a switching MOS) at the high-side output terminal to control the conduction or disconnection of the high-side output terminal and the driving power supply; the low-side driving circuit is configured to drive the switch (such as a switching MOS) at the low-side output terminal to control the conduction or disconnection of the low-side output terminal and the ground. Among them, the driving power supply can be used to drive the high-side output terminal and / or the low-side output terminal.
[0104] In a possible implementation, the driving circuit may include a driving circuit in an airbag system for driving an airbag igniter tube. The load may be an airbag igniter tube.
[0105] 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.
[0106] In a possible implementation, as Figure 3 shown, the first switch selection module 120 may include a plurality of switches. One end of each switch is connected to the input terminal of the comparison module 110, and the other end is connected to any one of the voltage signal at the high-side output terminal and the voltage signal at the low-side output terminal of each driving channel. Here, the switch may be implemented by a MOS transistor. The control module 140 may implement the selection of any one of the high-side output terminal and the low-side output terminal of any driving channel through the on / off of the MOS transistor.
[0107] Here, the control module 140 may control the first switch selection module 120 to select the high-side output terminal or the low-side output terminal of any driving channel to compare with the comparison reference voltage signal, so as to implement the detection of the high-side output terminal and the low-side output terminal in multiple driving channels.
[0108] In a possible implementation, similar to the first switch selection module 120, the comparison voltage selection module 130 may also include multiple 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 switches can be implemented by MOS transistors. The control module 140 can select any candidate reference voltage signal as the comparison reference voltage signal by turning on and off the MOS transistors.
[0109] In a possible implementation, the candidate reference voltage signal is obtained from at least one of the following: resistor voltage division; diode / Zener diode conduction voltage; bandgap reference; external reference voltage input.
[0110] In a possible implementation, the comparison module 110 can be used to compare the comparison voltage signal with at least one comparison reference voltage signal to obtain a comparison result.
[0111] Here, the candidate reference voltage signals corresponding to different detection items may not be completely the same or may be completely different.
[0112] By controlling the first switch selection module 120 and the comparison voltage selection module 130 through the control module 140, it is possible to compare the voltage signal at the high-side output end or the low-side output end of any driving channel with different candidate reference voltage signals. That is, it is possible to perform detections of different detection items at the high-side output end and / or the low-side output end.
[0113] In a possible implementation, the high-side output end and the low-side output end respectively have bias voltages. For example, the high-side output end and the low-side output end respectively have bias voltages obtained by resistor voltage division.
[0114] 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 at the high-side output end as the comparison voltage signal, and the comparison voltage selection module 130 can select a voltage signal slightly lower than a driving power supply voltage value (such as 4.3V) as the comparison reference voltage signal to implement a short-circuit test of the high-side output end with the driving power supply. For example, if the comparison voltage signal is higher than the comparison reference voltage signal in voltage value, then the control module 140 can determine that the high-side output end is short-circuited to the power supply. The first switch selection module 120 can select the voltage signal at the low-side output end as the comparison voltage signal, and the comparison voltage selection module 130 can select a voltage signal slightly lower than a driving power supply voltage value (such as 4.3V) as the comparison reference voltage signal to implement a short-circuit test of the low-side output end with the driving power supply. For example, if the comparison voltage signal is higher than the comparison reference voltage signal in voltage value, then the control module 140 can determine that the low-side output end is short-circuited to the power supply.
[0115] In this way, the first switch selection module 120 selects the voltage signal of the high-side output terminal or the voltage signal of the low-side output terminal in different drive channels, the comparison voltage selection module 130 selects different candidate reference voltage signals, and the comparison module 110 implements the comparison between different ports and different candidate reference voltage signals, thereby realizing different detection items with the same module. Compared with implementing different detection items with different detection modules, 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.
[0116] In some embodiments, as Figure 4 described, 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 sub-module 131 and / or a second comparison voltage selection sub-module 132;
[0117] Among them, the first comparison voltage selection sub-module 131 is configured to select one from the multiple candidate reference voltage signals and input it to the first comparator 111 as a lower limit comparison reference voltage signal;
[0118] The second comparison voltage selection sub-module 132 is configured to select one from the multiple candidate reference voltage signals and input it to the second comparator 112 as an upper limit comparison reference voltage signal;
[0119] The first comparator 111 is configured to compare the comparison voltage signal and the lower limit comparison reference voltage signal to obtain a first comparison result;
[0120] The second comparator 112 is configured to compare the comparison voltage signal and the upper limit comparison reference voltage signal to obtain a second comparison result;
[0121] The control module 140 is configured to determine the detection result based on the first comparison result and / or the second comparison result.
[0122] In a possible implementation manner, the comparison module 110 may include at least one of the first comparator 111 and the second comparator 112.
[0123] In a possible implementation manner, the first comparison voltage selection sub-module 131 and the second comparison voltage selection sub-module 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.
[0124] Exemplarily, as Figure 4As shown, IGHx / IGLx represents the x-th high-side output terminal or low-side output terminal. The first comparison voltage selection sub-module 131 selects the lower-limit candidate reference voltage signal from two candidate reference voltage signals of 0.5V and 0.9V. Among them, 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 sub-module 132 selects the upper-limit candidate reference voltage signal from two candidate reference voltage signals of 2.5V, 4.0V and 4.3V. Among them, 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.
[0125] In a possible implementation manner, the first comparison voltage selection sub-module 131 and the second comparison voltage selection sub-module 132 respectively select the corresponding lower-limit candidate reference voltage signal and the upper-limit comparison reference voltage signal from different combinations of candidate reference voltage signals.
[0126] By setting the first comparator 111 and the second comparator 112, it is possible to realize the comparison of the voltage signal with two comparison reference voltage signals at the same time, or to realize the comparison of the voltage signal with a single comparison reference voltage signal, improving the flexibility of voltage comparison, and thus being applicable to the detection requirements of different detection items.
[0127] In some embodiments, the first comparison voltage selection sub-module 131 is configured to input the first reference voltage signal to the first comparator 111 as the lower-limit comparison reference voltage signal;
[0128] The second comparison voltage selection sub-module 132 is configured to input the second reference voltage signal to the second comparator 112 as the 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;
[0129] The control module 140 is configured to perform at least one of the following:
[0130] When the first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, it is determined that the high-side output terminal or low-side output terminal corresponding to the comparison voltage signal is short-circuited to the power ground;
[0131] When the second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, it is determined that the high-side output terminal or low-side output terminal corresponding to the comparison voltage signal is short-circuited to the corresponding drive power supply;
[0132] Among them, the bias voltage value of the high-side output terminal 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 terminal is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.
[0133] Generally, the high-side output terminal and the low-side output terminal respectively have bias voltages. For example, the high-side output terminal and the low-side output terminal respectively have bias voltages obtained by resistor voltage division. In this embodiment and the following embodiments, unless otherwise specified, the example in which the high-side output terminal and the low-side output terminal respectively have bias voltages is used for illustration.
[0134] The high-side output terminal and the low-side output terminal respectively have bias voltages, and the bias voltages are lower than the voltage value of the driving power supply. If the voltage value of the voltage signal of the high-side output terminal or the voltage value of the voltage signal of the low-side output terminal 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 to the driving power supply. If the voltage value of the voltage signal of the high-side output terminal or the voltage value of the voltage signal of the low-side output terminal 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 to the power ground.
[0135] Exemplarily, the voltage value of the driving power supply is 5V, the first comparison voltage selection sub-module 131 selects 0.9V as the lower limit comparison reference voltage signal, and the second comparison voltage selection sub-module 132 selects 4V as the upper limit comparison reference voltage signal. Therefore, if the voltage value of the voltage signal of the high-side output terminal or the voltage value of the voltage signal of the low-side output terminal is greater than 4V, then it is determined that the high-side output terminal or the low-side output terminal is short-circuited to the driving power supply. If the voltage value of the voltage signal of the high-side output terminal or the voltage value of the voltage signal of the low-side output terminal is less than 0.9V, then it is determined that the high-side output terminal or the low-side output terminal is short-circuited to the power ground.
[0136] In some embodiments, as Figure 5 shown, the port detection circuit further includes a first current source;
[0137] 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 for extracting a first current from the low-side output terminal of the first driving channel to the power ground;
[0138] The first comparison voltage selection sub-module 131 is used for inputting a third reference voltage signal into the first comparator 111 as a lower limit comparison reference voltage signal;
[0139] The first switch selection module 120 is used for selecting the voltage signal of the low-side output terminal of the second driving channel among the N driving channels and inputting it into the first comparator 111 as a comparison voltage signal; wherein, the first driving channel is different from the second driving channel;
[0140] The control module 140 is configured to perform at least one of the following:
[0141] When the first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, it is determined that there is cross - coupling between the first drive channel and the second drive channel;
[0142] When the first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, it is determined that there is no cross - coupling between the first drive channel and the second drive channel;
[0143] Among the N drive channels, the bias voltage value of the high - side output terminal is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low - side output terminal is greater than the voltage value of the third reference voltage signal.
[0144] Here, each drive channel among the N drive channels can be sequentially polled as the first drive channel to determine whether there is cross - coupling between the first drive channel and the second drive channel, so as to realize the determination of cross - coupling between each drive channel.
[0145] In a possible implementation, the first current is less than the normal operating current of the load.
[0146] Exemplarily, as Figure 5 shown, VST50 represents the drive power supply. The drive circuit has 3 drive channels, which are respectively connected to load 1, load 2, and load 3. Figure 5 In [the figure], the first drive channel is used to drive load 1, and the two second drive channels are respectively used to drive load 2 and load 2. The low - side output terminal of the first drive channel is connected to a first current source, and a first current (such as 100 mA) is output through the first current source to pull down the low - side output terminal of the first drive channel to the power ground. The control module 140 controls the first switch selection module 120 to sequentially select the voltage signal of the low - side output terminal of one of the second drive channels and input it to the first comparator 111 for comparison with a third reference signal (such as a voltage value of 0.9 V) less than the bias voltage. If the voltage value of the voltage signal of the low - side output terminal of any second drive channel is lower than the third reference signal, then it can be determined that there is cross - coupling between this second drive channel and 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 5In the timing diagram, since the voltage value of the voltage signal at the low-side output terminal (IGL1) of the first drive channel is pulled down by the first current, the voltage value of the voltage signal at the low-side output terminal (IGL2) of one of the two second drive channels is pulled down. Therefore, it can be determined that there is cross-coupling between the drive channel corresponding to the low-side output terminal (IGL2) and the drive channel corresponding to the low-side output terminal (IGL1).
[0147] In some embodiments, as Figure 7 shown, the port detection circuit further includes a second current source, wherein
[0148] the second current source is connected between the low-side output terminal and the power ground, and is configured to draw a second current from the low-side output terminal to the power ground based on the control of the control module 140 during a first time period, and not draw current after the end of the first time period;
[0149] the first comparison voltage selection sub-module 131 is configured to input a fourth reference voltage signal into the first comparator 111 as a lower limit comparison reference voltage signal;
[0150] the first switch selection module 120 is configured to select the voltage signal of the low-side output terminal and input it into the first comparator 111 as a comparison voltage signal;
[0151] the control module irtue of the second current can be determined based on the pull-down duration required to pull down the low-side output terminal IGL
[0152] In a possible implementation, the voltage value of the fourth reference voltage signal is less than the voltage value of the bias voltage at the low-side output terminal.
[0153] In a possible implementation, the second current is less than the normal operating current of the load.
[0154] As Figure 7 described, here, the first time period can be determined based on the pull-down duration required for the second current to pull down the low-side output terminal IGL1 to the power ground. The duration of the first time period is greater than the pull-down duration.
[0155] After the second current source pulls down the low-side output terminal IGL1 to the power supply ground, the output of the second current can be stopped. The parasitic capacitance is charged by the pull-up resistor in the bias resistor until the voltage of the parasitic capacitance reaches a voltage value greater than the fourth reference voltage signal (such as the voltage value of the low-side output terminal bias voltage). During the charging process of the parasitic capacitance, the charging current can be determined based on the voltage difference between the driving power supply (VST50) voltage value and the parasitic capacitance voltage value and the pull-up resistor. Therefore, the charging duration can be determined based on the charging current and the voltage value of the fourth reference voltage signal. Furthermore, the capacitance value of the parasitic capacitance can be determined.
[0156] The control module 140 can control the first switch selection module 120 to select the low-side output terminals of different driving channels, and further can determine the capacitance values of the parasitic capacitances of the low-side output terminals of each driving channel. Among them, sel_lv represents the selection signal of the control module for selecting each second driving channel. Detl_lv represents the first comparison result.
[0157] In some embodiments, the port detection circuit further includes a third current source.
[0158] The third current source is connected between the low-side output terminal of the third driving channel in the N driving channels and the power supply ground, and is used to draw a third current from the low-side output terminal to the power supply ground based on the control of the control module 140.
[0159] The first comparison voltage selection sub-module 131 is used to input the fifth reference voltage signal into the first comparator 111 as the 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 terminal of the third driving channel.
[0160] The first switch selection module 120 is used to input the voltage signal of the high-side output terminal of the third driving channel into the first comparator 111 as the comparison voltage signal.
[0161] The control module 140 is used for at least one of the following:
[0162] 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, it is determined that the third driving channel is normal.
[0163] 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.
[0164] Here, when the low-side output terminal is pulled down, the voltage change of the high-side output terminal can be used to determine the loop connectivity of the driving circuit. Such as whether the load is connected in the driving circuit.
[0165] Since the high-side output terminal has a resistive voltage-divider biasing circuit, if the load is connected to the drive circuit and the low-side output terminal is pulled low, the resistance of the high-side output terminal to the ground becomes smaller, resulting in a decrease in the voltage value of the high-side output terminal as well.
[0166] Therefore, a fifth reference voltage signal smaller than the biasing voltage value of the high-side output terminal can be set to compare with the voltage signal of the high-side output terminal.
[0167] A third current source can be set at the low-side output terminal of each drive channel. The control module 140 can control the first switch selection module 120 to select the voltage signal of the high-side output terminal of different drive channels to compare with the fifth reference voltage signal, and then the connection status of each drive channel loop can be determined.
[0168] In some embodiments, the control module 140 is configured to turn on the low-side drive circuit of the fourth drive channel among the N drive channels in the second time period, and / or turn on the high-side drive circuit of the fourth drive channel in the third time period, where the second time period and the third time period do not overlap;
[0169] The first comparison voltage selection sub-module 131 is configured to input the sixth reference voltage signal into the first comparator 111 as the lower limit comparison reference voltage signal; and / or the second comparison voltage selection sub-module 132 is configured to input the seventh reference voltage signal into the second comparator 112 as the upper limit comparison reference voltage signal; where the voltage value of the sixth reference voltage signal is less than the voltage value of the seventh reference voltage signal;
[0170] The first switch selection module 120 is configured to input the voltage signal of the low-side output terminal into the first comparator 111 as the comparison voltage signal in the second time period; and / or input the voltage signal of the high-side output terminal into the second comparator 112 as the comparison voltage signal in the third time period;
[0171] The control module 140 is configured to perform at least one of the following:
[0172] When 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, it is determined that the low-side output terminal is normal; otherwise, it is determined that the low-side output terminal is abnormal;
[0173] When 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, it is determined that the high-side output terminal is normal; otherwise, it is determined that the high-side output terminal is abnormal.
[0174] Specifically, for a single drive channel, the low-side drive circuit and the high-side drive circuit can be turned on respectively in a second time period and a third time period without overlapping parts. The first comparator 111 compares the voltage signal at the low-side output terminal with the sixth reference voltage signal in the second time period, and the second comparator 112 compares the relationship between the voltage signal at the low-side output terminal and the seventh reference voltage signal in the third time period.
[0175] In a possible implementation, the low-side drive circuit at least includes a switching transistor (such as an N-type MOS transistor) for conducting or disconnecting the low-side output terminal from the power ground. The high-side drive circuit at least includes a switching transistor (such as an N-type MOS transistor) for conducting or disconnecting the high-side output terminal from the drive power supply.
[0176] 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 switching transistor is conducting. Therefore, the sixth reference voltage signal can be set to a relatively small voltage value (such as 0.5V). If the voltage value of the voltage signal at the low-side output terminal is less than the voltage value of the sixth reference voltage signal, it indicates that the low-side drive circuit is normally turned on 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 not being fully turned on.
[0177] 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 switching transistor is conducting. Therefore, the seventh reference voltage signal can be set to a voltage value slightly smaller than the drive power supply voltage value (for example, when the drive power supply voltage is 5V, the seventh reference voltage signal is 4.3V). If the voltage value of the voltage signal at the high-side output terminal is greater than the voltage value of the seventh reference voltage signal, it indicates that the high-side drive circuit is normally turned on and the high-side output terminal is considered normal. Otherwise, the high-side output terminal is considered abnormal, such as the high-side drive circuit not being fully turned on.
[0178] In some embodiments, as [[ID=ed]] Figure 8 shown, the port detection circuit further includes an analog-to-digital conversion module 150; wherein,
[0179] The first switch selection module 120 is configured to select one voltage signal from at least one predetermined detection point corresponding to each of the N drive channels and input it to the analog-to-digital conversion module 150 as the voltage signal to be detected;
[0180] The analog-to-digital conversion module 150 is configured to determine the voltage value of the voltage signal to be detected;
[0181] The control module 140 is configured 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.
[0182] 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 the control module 140 can process.
[0183] In a possible implementation, the first switch selection module 120 may include multiple 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 at the predetermined detection points of each drive channel. Here, the switch can be implemented by a MOS transistor. The control module 140 can select any one of the items at the predetermined detection points of any drive channel by turning on and off the MOS transistor.
[0184] The analog-to-digital conversion module 150 can perform analog-to-digital conversion on the voltage signal selected by the first switch selection module 120 to obtain the voltage value at the predetermined detection point. The controller can determine the detection result of the drive channel based on the voltage value.
[0185] In a possible implementation, when there is no contradiction, the predetermined detection point may include any point in the drive channel. Such as the high-side output terminal, the low-side output terminal, etc.
[0186] 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 a separate module for each detection item, thereby reducing the number of detection modules, reducing the chip area occupied by the detection modules, reducing the design complexity, and reducing the cost.
[0187] In some embodiments, the predetermined detection point includes a power supply voltage sampling point of the drive power supply of the high-side drive circuit and / or the low-side drive circuit in each drive channel;
[0188] The analog-to-digital conversion module 150 is used to determine the voltage value of the drive power supply.
[0189] Here, the first switch selection module 120 can sequentially input the drive power supply voltage signals of each drive channel into the analog-to-digital conversion module 150 under the control of the control module 140. The analog-to-digital conversion module 150 determines the voltage value, and then the control module 140 determines whether the voltage value of the drive power supply voltage signal meets the predetermined voltage requirement. Thus, the detection of the drive power supply is realized.
[0190] In some embodiments, as Figure 9 described, the port detection circuit further includes a fourth current source and a sample-and-hold module 160; where;
[0191] The fourth current source is used to draw a fourth current from the drive power supply of the drive channel selected by the first switch selection module 120 during the fourth time period;
[0192] 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;
[0193] The analog-to-digital conversion module 150 is used to determine the voltage value of the driving power supply by performing analog-to-digital conversion on the voltage signal to be detected that has been sampled and held.
[0194] Figure 1 In the driving circuit shown, when the switching MOS in the high-side driving circuit is disconnected or fails, the voltage of the pin where the switching MOS is connected to the driving power supply is floating. Here, the driving power supply can be discharged first with a fourth current (such as 52 mA) to remove the interference of the pin. Then, the driving power supply voltage signal is detected through the analog-to-digital conversion module 150, so as to measure the actual voltage value of the driving power supply.
[0195] Such as Figure 10 As shown, voltage sampling can be performed during the discharging process (when the fourth circuit acts on the driving power supply). Since the fourth time period is short, the sampling and holding module 160 can be used to sample and hold the voltage signal to be detected that needs to be sampled by the analog-to-digital conversion module 150, and then perform analog-to-digital conversion.
[0196] In a possible implementation, the sampling and holding module 160 can 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.
[0197] In some embodiments, such as Figure 11 As shown, the port detection circuit further includes a second switch selection module 170, a fifth current source, and a reference resistor; where;
[0198] The second switch selection module 170 is configured to selectively 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; where, 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 supply ground;
[0199] The predetermined detection points include: the high-side output terminal of the driving channel, the low-side output terminal of the driving channel, and the first end of the reference resistor;
[0200] The control module 140 is configured to determine the resistance value of the load based on the voltage value at the first end of the reference resistor, the voltage value at the high-side output terminal of the driving channel, the voltage value at the low-side output terminal of the driving channel, and the resistance value of the reference resistor.
[0201] Such as Figure 11As 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 across the reference resistor, i.e., the voltage value at 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 obtain the voltage signal at the first end of the reference resistor, the voltage signal at the high-side output terminal, and the voltage signal at the low-side output terminal to respectively obtain the voltage value at the first end of the reference resistor, the voltage value at the high-side output terminal, and the voltage value at the low-side output terminal, and then use Expression (1) to determine the load resistance value. Thus, it can be determined whether the load resistance value is within the predetermined resistance range to determine whether the load is normal.
[0202] [(VIGH-VIGL) / VSQREF]*RSQREF (1)
[0203] Wherein, VIGH represents the voltage value at the high-side output terminal, VIGL represents the voltage value at the low-side output terminal, VSQREF represents the voltage value at the first end of the reference resistor, and RSQREF represents the resistance value of the reference resistor.
[0204] The embodiment of the present application also provides an integrated circuit chip, including the port detection circuit described in any of the above embodiments. The implementation manner of the port detection circuit is as described in any of the above embodiments and will not be repeated here.
[0205] 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.
[0206] In a possible implementation manner, the airbag system further includes an airbag.
[0207] The present application also provides a vehicle system, including a vehicle body and the airbag system described in any of the above embodiments.
[0208] 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 port detection method as described above is implemented.
[0209] 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 effects are similar, and will not be repeated here in this embodiment.
[0210] The above-mentioned computer-readable storage medium can 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 can be any available medium accessible by a general-purpose or special-purpose computer.
[0211] An exemplary readable storage medium is coupled to the processor, enabling the processor to read information from 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 (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in an electronic device or a master control device.
[0212] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including those of the above method embodiments; and the foregoing storage medium includes various media that can store program codes, such as ROM, RAM, magnetic disk, or optical disk.
[0213] The embodiments or implementation manners in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other.
[0214] In the description of this specification, the descriptions referring to "one implementation manner", "some implementation manners", "illustrative implementation manners", "examples", "specific examples", or "some examples", etc. mean that the specific features, structures, materials, or characteristics described in connection with the implementation manner or example are included in at least one implementation manner or example of this application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same implementation manner or example. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more implementation manners or examples.
[0215] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and 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, which includes N driving channels. Each driving channel includes: 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 to both 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. Among them, the comparison voltage selection module is configured to select, based on the control of the control module, a comparison reference voltage signal input to the comparison module from multiple candidate reference voltage signals; the first switch selection module is configured to select, based on the control of the control module, one of the voltage signals of the high-side output terminal and the voltage signals of the low-side output terminal corresponding to each of the N driving channels and input it to the comparison module as a comparison voltage signal; the comparison module is configured to compare the comparison reference voltage signal and the comparison voltage signal to obtain a comparison result; the control module is configured to determine the detection result of the driving channel associated with the comparison result based on the comparison result of the comparison module; the comparison module includes a first comparator and / or a second comparator; the comparison voltage selection module includes a first comparison voltage selection sub-module and / or a second comparison voltage selection sub-module; wherein, the first comparison voltage selection sub-module is configured to select one of the multiple candidate reference voltage signals and input it to the first comparator as a lower limit comparison reference voltage signal; the second comparison voltage selection sub-module is configured to select one of the multiple candidate reference voltage signals and input it to the second comparator as an upper limit comparison reference voltage signal; the first comparator is configured to compare the comparison voltage signal and the lower limit comparison reference voltage signal to obtain a first comparison result; the second comparator is configured to compare the comparison voltage signal and the upper limit comparison reference voltage signal to obtain a second comparison result; the control module is configured to determine the detection result based on the first comparison result and / or the second comparison result; the control module is configured 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, where the second time period and the third time period do not overlap; the first comparison voltage selection sub-module is configured to input a sixth reference voltage signal to the first comparator as a lower limit comparison reference voltage signal; and / or the second comparison voltage selection sub-module is configured to input a seventh reference voltage signal to 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 configured to input the voltage signal of the low-side output terminal to the first comparator as a comparison voltage signal in the second time period; and / or input the voltage signal of the high-side output terminal to the second comparator as a comparison voltage signal in the third time period; The control module is configured to perform at least one of the following: When 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, determine that the low-side output terminal is normal; otherwise, determine that the low-side output terminal is abnormal. When 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, determine that the high-side output terminal is normal; otherwise, determine that the high-side output terminal is abnormal.
2. The port detection circuit according to claim 1, wherein The first comparison voltage selection sub-module is configured to input a first reference voltage signal to the first comparator as a lower limit comparison reference voltage signal. The second comparison voltage selection sub-module is configured to input a second reference voltage signal to 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 configured to perform at least one of the following: When the first comparison result indicates that the comparison voltage signal is less than the first reference voltage signal, determine 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. When the second comparison result indicates that the comparison voltage signal is greater than the second reference voltage signal, determine that the high-side output terminal or the low-side output terminal corresponding to the comparison voltage signal is short-circuited to the corresponding drive power supply. Wherein, the bias voltage value of the high-side output terminal 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 terminal is greater than the voltage value of the first reference voltage signal and less than the voltage value of the second reference voltage signal.
3. The port detection circuit according to claim 1, wherein 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 drive channel in the N drive channels and the power ground, and is configured to draw a first current from the low-side output terminal of the first drive channel to the power ground. The first comparison voltage selection sub-module is configured to input a third reference voltage signal to the first comparator as a lower limit comparison reference voltage signal. The first switch selection module is configured to select the voltage signal of the low-side output terminal of the second drive channel in the N drive channels and input it to the first comparator as a comparison voltage signal; wherein, the first drive channel is different from the second drive channel. The control module is configured to perform at least one of the following: When the first comparison result indicates that the comparison voltage signal is less than the third reference voltage signal, determine that there is cross-coupling between the first drive channel and the second drive channel. When the first comparison result indicates that the comparison voltage signal is greater than or equal to the third reference voltage signal, determine that there is no cross-coupling between the first drive channel and the second drive channel. Wherein, among the N drive channels, the bias voltage value of the high-side output terminal is greater than the voltage value of the third reference voltage signal, and the bias voltage value of the low-side output terminal is greater than the voltage value of the third reference voltage signal.
4. The port detection circuit according to claim 1, wherein The port detection circuit further includes a second current source, where 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 based on the control of the control module during a first time period, and not draw current after the end moment of the first time period; the first comparison voltage selection sub-module is used to input a 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 and input it into the first comparator as a comparison voltage signal; the control module is used to determine the boost duration between the end moment and the moment 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 corresponding drive channel of the low-side output terminal based on the boost duration.
5. The port detection circuit according to claim 1, wherein 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 drive channel in the N drive channels and the power ground, and is used to draw 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 sub-module is used to input a fifth reference voltage signal into the first comparator as a lower limit comparison reference voltage signal; where the voltage value of the fifth reference voltage signal is less than the bias voltage value of the high-side output terminal of the third drive channel; the first switch selection module is used to input the voltage signal of the high-side output terminal of the third drive 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, determine that the third drive 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, determine that the third drive channel is abnormal.
6. The port detection circuit according to any one of claims 1 to 5, characterized in that The port detection circuit further includes an analog-to-digital conversion module; where the first switch selection module is used to select one of the voltage signals at at least one predetermined detection point corresponding to each of the N drive 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 drive channel associated with the voltage signal to be detected based on the voltage value determined by the analog-to-digital conversion module.
7. The port detection circuit according to claim 6, wherein The predetermined detection point includes a power supply voltage sampling point of the drive power supply of the high-side drive circuit and / or the low-side drive circuit in each drive channel; the analog-to-digital conversion module is used to determine the voltage value of the drive power supply.
8. The port detection circuit according to claim 7, wherein The port detection circuit further includes a fourth current source and a sample-and-hold module; wherein; the fourth current source is used to draw a fourth current from the drive power supply of the drive channel selected by the first switch selection module during a fourth time period; the sample-and-hold module 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 is configured to determine the voltage value of the driving power supply by performing sample-and-hold on the voltage signal to be detected.
9. The port detection circuit according to claim 6, wherein 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 configured to selectively 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 points include: the high-side output terminal of the driving channel, the low-side output terminal of the driving channel, and the first end of the reference resistor; The control module is configured to determine the resistance value of the load based on the voltage value at the first end of the reference resistor, the voltage value at the high-side output terminal of the driving channel, the voltage value at the low-side output terminal of the driving channel, and the resistance value of the reference resistor.
10. An integrated circuit chip, characterized in that, The integrated circuit chip includes a driving circuit and the port detection circuit according to any one of claims 1 to 9.
11. An electrical device, characterized in that, The electrical device includes: the port detection circuit according to any one of claims 1 to 9; or the integrated circuit chip according to claim 10.
Citation Information
Patent Citations
Chip port state detection circuit, chip and communication terminal
CN112485654A
LED array driver with external pin short circuit detection
CN117135792A