A protection circuit suitable for CAN bus transceiver chip

By designing a protection circuit in the CAN bus transceiver chip to detect and control the current and voltage of the CANL and CANH ports, the problem of traditional chips being damaged by heat due to short circuit or high voltage is solved, and effective protection of the chip is achieved.

CN118399325BActive Publication Date: 2024-09-24SHANGHAI ZIYING MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410804115.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-24
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Traditional CAN transceiver chips cannot effectively prevent high-voltage and large-current problems caused by CAN interface short circuits in automotive applications, resulting in serious chip heating and possible damage.

Method used

A protection circuit is designed, including connecting the first and second sampling resistors to the CANL and CANH ports respectively, detecting the current and voltage through the overcurrent comparison module and the overvoltage comparison module, and using the protection control logic module to detect short circuit or overvoltage. When the current is turned off, it prevents current from flowing in or out of the chip.

Benefits of technology

It effectively avoids the problem of chip damage due to high voltage or large current heating, and protects the safety of the chip by detecting and controlling current.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118399325B
    Figure CN118399325B
Patent Text Reader

Abstract

The present invention provides a protection circuit suitable for a CAN bus transceiver chip, comprising: a first sampling resistor and a second sampling resistor; a CANL port overcurrent comparison module, used for sampling the current on the first sampling resistor of the CANL port, comparing it with a first overcurrent protection threshold, and outputting a first signal; and comparing it with a minimum overcurrent protection current, and outputting a second signal; a CANL port overvoltage comparison module, used for detecting the voltage of the CANL port, and comparing the detected voltage with the maximum allowable voltage of the CANL port, and outputting a third signal; a CANH port overcurrent comparison module, used for sampling the current on the second sampling resistor of the CANH port, and comparing it with a second overcurrent protection threshold, and outputting a fourth signal; a protection control logic module, used for inputting a first signal, a second signal, a third signal, a fourth signal and an enable signal; outputting a control signal to shut off the current flowing into the chip from the CANL port; and shut off the current flowing out of the chip from the CANH port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a protection circuit suitable for a CAN bus transceiver chip. Background Art

[0002] In industrial electronics and automotive electronics, CAN bus communication is widely used in bus interconnection communication because of its fast speed and strong anti-interference ability. CAN bus communication is generally divided into protocol control and CAN physical layer. Protocol control is divided into host and slave. In automotive applications, the host and slave nodes are far apart, so dedicated CAN physical layer chips are required on both the host and slave sides for signal drive conversion, such as Figure 1 As shown in the figure: the master transmits data to the CAN PHY1 chip through the local TX / RX interface. The CAN PHY1 chip converts the single-ended signal into a common-mode interface signal and transmits it over long distances through the CANH / CANL bus. After the CAN PHY2 chip on the slave side receives the CANH / CANL signal, it converts it into a local single-ended signal TX / RX and transmits it to the slave module to complete the data transmission.

[0003] In automotive electronic applications, the transmission process of the two communication buses CANH and CANL will encounter great electromagnetic interference, and some abnormal conditions will cause CANH or CANL to be forced to short-circuit to the ground or power supply, which will cause a large change in the voltage of CANH and CANL, and even exceed the normal working range. Among them, the short circuit of CANH and CANL buses to the ground or power supply is the most harmful to the chip, because it may cause high voltage and high current to be generated at the input and output ends of the CAN PHY chip, causing serious heating and irreversible damage.

[0004] In order to avoid the risk of burning the CAN bus chip when the interface is short-circuited, the CAN PHY chip usually uses a current source mirror in explicit mode to limit the short-circuit current. The CAN PHY chip explicit mode driving solution is as follows: Figure 2 As shown. Figure 3 In the figure, the reference current source IB, through the mirror image of MOS tube N2 and MOS tube N1, makes Idom=β×IB in the dominant state, where β is the size ratio of MOS tube N2 to MOS tube N1. Similarly, MOS tube N3 mirrors MOS tube N1 to MOS tube P1, and MOS tube P2 mirrors MOS tube P1 current. At the same time, in order to ensure the consistency of CANH and CANL driving capabilities, I P2 =I N2 =β×IB. By setting a suitable reference current source IB and mirror ratio β, Idom can be limited within a certain range.

[0005] However, this solution has two disadvantages in dealing with abnormal protection of automotive CAN transceiver chips:

[0006] 1. In dominant mode, the pull-down current of the CAN transceiver chip is Idom=I N2 =β×IB, its common mode voltage working range of normal communication is 0~5V, usually between 40mA~100mA, but when CANH / CANL is short-circuited to GND or vehicle battery voltage, or when doing CAN compatibility test, the input voltage of CANL will be as high as 40V, at this time, the power consumption of dominant mode is P=Idom×V CANL =0.1×40=4(W). Such a large amount of power consumed from inside the chip exceeds the heat dissipation capacity of the chip itself.

[0007] 2. When the CANL port is short-circuited to a high voltage of about 40V, the VDS voltage of the MOS tube N2 will be modulated by the channel effect. N2 / IB>>β, which makes Idom rise further, aggravating the heating of the chip and further increasing the probability of its damage.

[0008] It can be seen that the short-circuit protection circuit of the traditional CAN transceiver chip cannot meet the system's demand for high reliability of the CAN transceiver chip in vehicle applications.

[0009] Therefore, how to solve the problem of short circuit to ground or power supply occurring in the CAN interface of the vehicle-mounted CAN bus chip during communication is a problem that needs to be solved at present. Summary of the invention

[0010] The purpose of the present invention is to provide a protection circuit suitable for a CAN bus transceiver chip, which can solve the problem that a CAN interface of a vehicle-mounted CAN bus chip is short-circuited to ground or to a power supply during communication, thereby causing a large short-circuit current to the chip, severe heat generation and burning.

[0011] In order to achieve the above object, the present invention provides a protection circuit suitable for a CAN bus transceiver chip, wherein the protection circuit is connected to a transmitting module of the CAN bus transceiver chip, and the protection circuit comprises:

[0012] The protection circuit is connected to the transmitting module of the CAN bus transceiver chip, and the protection circuit includes:

[0013] The first sampling resistor is connected to the CANL port line; the second sampling resistor is connected to the CANH port line;

[0014] A CANL port overcurrent comparison module, used to sample the current on the first sampling resistor of the CANL port, compare it with a first overcurrent protection threshold, and output a first signal; and compare it with the minimum overcurrent protection current, and output a second signal; the minimum overcurrent protection current is less than the first overcurrent protection threshold;

[0015] A CANL port overvoltage comparison module is used to detect the voltage of the CANL port, compare the detected voltage with the maximum allowable voltage of the CANL port, and output a third signal;

[0016] A CANH port overcurrent comparison module is used to sample the current on the second sampling resistor of the CANH port and compare it with the second overcurrent protection threshold; and output a fourth signal;

[0017] A protection control logic module is used to input the first signal, the second signal, the third signal, the fourth signal and an enable signal; when the voltage of the CANL port is greater than the maximum allowable voltage of the CANL port, and the current on the first sampling resistor is greater than the minimum overcurrent protection current, or the current on the first sampling resistor is greater than the first overcurrent protection threshold, output a control signal to shut off the current flowing into the chip from the CANL port; and when the current on the second sampling resistor is greater than the second overcurrent protection threshold, output a control signal to shut off the current flowing out of the chip from the CANH port.

[0018] In an optional solution, the protection control logic module includes: a first AND gate, a second AND gate, a three-input AND gate, a three-input OR gate and a fourth NMOS tube;

[0019] One input terminal of the first AND gate is used to input the first signal, and the other output terminal is used to input an enable signal;

[0020] One input terminal of the second AND gate is used to input the fourth signal, and the other output terminal is used to input an enable signal;

[0021] The three input terminals of the three-input AND gate are respectively used to input the second signal, the third signal and the enable signal;

[0022] The three input ends of the three-input OR gate are respectively connected to the outputs of the first AND gate, the second AND gate, and the three-input AND gate; the output end is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, and the drain is connected to the transmitting module.

[0023] In an optional solution, the CANL port overcurrent comparison module includes: a first resistor, a second resistor, a third resistor, a third PMOS tube, a fourth PMOS tube, a fifth PMOS tube, a fifth NMOS tube, a sixth NMOS tube, a first comparator and a second comparator;

[0024] One end of the first resistor is connected to one end of the current output of the first sampling resistor, and the other end of the first resistor is connected to the source of the third PMOS tube; the gate of the third PMOS tube is connected to the gate and drain of the fourth PMOS tube and the drain of the fifth NMOS tube; the drain of the third PMOS tube is connected to the drain of the sixth NMOS tube and the gate of the fifth PMOS tube; the source of the fourth PMOS tube is connected to one end of the second resistor and the source of the fifth PMOS tube, and the other end of the second resistor is connected to one end of the current input of the first sampling resistor; the sources of the fifth NMOS tube and the sixth NMOS tube are both grounded; the gate of the sixth NMOS tube is connected to the current mirror bias; the drain of the fifth PMOS tube is grounded through the third resistor;

[0025] The positive input ends of the first comparator and the second comparator are both connected to the drain of the fifth PMOS tube; the reverse input end of the first comparator is used to input a first comparison threshold, and the reverse input end of the first comparator is used to input a second comparison threshold; the first comparison threshold is greater than the second comparison threshold; the output end of the first comparator is used to output the first signal, and the output end of the second comparator is used to output the second signal.

[0026] In an optional solution, the CANH port overcurrent comparison module includes: a fourth resistor, a fifth resistor, a sixth resistor, a sixth PMOS tube, a seventh PMOS tube, an eighth PMOS tube, an eighth NMOS tube, a ninth NMOS tube, and a third comparator;

[0027] One end of the fifth resistor is connected to one end of the current input of the second sampling resistor, and the other end of the fifth resistor is connected to the source of the sixth PMOS tube; the gate of the sixth PMOS tube is connected to the gate and drain of the seventh PMOS tube and the drain of the ninth NMOS tube; the drain of the sixth PMOS tube is connected to the drain of the eighth NMOS tube and the gate of the eighth PMOS tube; the source of the seventh PMOS tube is connected to one end of the fourth resistor and the source of the eighth PMOS tube; the other end of the fourth resistor is connected to one end of the current output of the second sampling resistor; the sources of the eighth NMOS tube and the ninth NMOS tube are both grounded; the gate of the eighth NMOS tube is connected to the current mirror bias; the drain of the eighth PMOS tube is grounded through the sixth resistor;

[0028] The positive input terminal of the third comparator is connected to the drain of the eighth PMOS tube; the negative input terminal is used to input the third comparison threshold, and the output terminal is used to output the fourth signal.

[0029] In an optional solution, the CANL port overvoltage comparison module includes: a seventh resistor, an eighth resistor and a fourth comparator;

[0030] One end of the seventh resistor is connected to one end of the current input of the first sampling resistor, the other end of the seventh resistor is connected to one end of the eighth resistor, and the other end of the eighth resistor is grounded;

[0031] The positive input terminal of the fourth comparator is connected to the common connection of the seventh resistor and the eighth resistor; the negative input terminal is used to input a preset voltage, and the output terminal outputs the third signal.

[0032] In an optional solution, the transmitting module includes: a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube, a third NMOS tube and a tenth NMOS tube;

[0033] The drain and gate of the first PMOS tube are short-circuited and connected to the gate of the second PMOS tube and the drain of the third NMOS tube; the source of the first PMOS tube is connected to the source of the second PMOS tube and to the power supply voltage, and the drain of the second PMOS tube is connected to one end of the current input of the second sampling resistor; the gate of the third NMOS tube is connected to the gate and drain of the first NMOS tube, the source of the tenth NMOS tube, the gate of the second NMOS tube, and the drain of the fourth NMOS tube, and the source of the third NMOS tube is grounded; the source of the second NMOS tube is grounded, and the drain is connected to one end of the current output of the first sampling resistor; the source of the first NMOS tube is grounded; the drain of the tenth NMOS tube is connected to the output of the first current source; the gate of the tenth NMOS tube is used to input an enable signal.

[0034] In an optional solution, the gate of the tenth NMOS tube is connected to a buffer, and the enable signal is input to the gate of the tenth NMOS tube through the buffer.

[0035] In an optional solution, the current mirror bias includes: a seventh NMOS tube and a second current source, the gate and drain of the seventh NMOS tube are short-circuited and connected to the output of the second current source; the source of the seventh NMOS tube is grounded, and the gate serves as the output of the current mirror bias.

[0036] In an optional solution, the first overcurrent protection threshold and the second overcurrent protection threshold are the same.

[0037] The beneficial effects of the present invention are:

[0038] The present invention detects the dominant mode. When the current of the CANL port is greater than the first overcurrent protection threshold, or the voltage of the CANL port exceeds the maximum allowable voltage, and the current of the CANL port is greater than the minimum overcurrent protection current, the protection control logic module shuts off the current flowing into the chip from the CANL port, and shuts off the current flowing out of the chip from the CANH port when the current of the CANH port is greater than the second overcurrent protection threshold, so as to avoid damage to the chip due to heating caused by high voltage or large current. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and other objects, features and advantages of the present invention will become more apparent through a more detailed description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, in which like reference numerals generally represent like components.

[0040] Figure 1 It is a schematic diagram of CAN bus communication in automotive electronic applications in the prior art.

[0041] Figure 2 It is the overall structure of the explicit mode of the CAN bus chip in the prior art.

[0042] Figure 3 It is a schematic diagram of the explicit mode transmitting module of the CAN bus chip in the prior art.

[0043] Figure 4 The schematic diagram of the CAN bus transceiver chip port protection circuit in one embodiment of the present invention.

[0044] Figure 5 The schematic diagram of the CAN bus transceiver chip port current detection circuit in one embodiment of the present invention.

[0045] Figure 6 The schematic diagram of the CAN bus transceiver chip port overvoltage detection circuit in one embodiment of the present invention.

[0046] Figure 7 The schematic diagram of the current detection circuit of the CANH port of the CAN bus transceiver chip in one embodiment of the present invention. DETAILED DESCRIPTION

[0047] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. According to the following description and drawings, the advantages and features of the present invention will become clearer. However, it should be noted that the concept of the technical solution of the present invention can be implemented in a variety of different forms and is not limited to the specific embodiments described herein. The drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0048] It should be understood that when an element or layer is referred to as being "on, adjacent to, connected to or coupled to other elements or layers, it may be directly on, adjacent to, connected to or coupled to other elements or layers, or there may be intervening elements or layers. In contrast, when an element is referred to as being "directly on, directly adjacent to, directly connected to or directly coupled to other elements or layers, there may be no intervening elements or layers. It should be understood that, although the terms first, second, third, etc. may be used to describe various elements, components, regions, layers and / or parts, these elements, components, regions, layers and / or parts should not be limited by these terms. These terms are only used to distinguish one element, component, region, layer or part from another element, component, region, layer or part. Therefore, without departing from the teachings of the present invention, the first element, component, region, layer or part discussed below may be represented as a second element, component, region, layer or part.

[0049] Spatially relative terms such as "under," "below," "below," "under," "above," "above," etc., may be used herein for ease of description to describe the relationship of an element or feature shown in the figures to other elements or features. It should be understood that in addition to the orientations shown in the figures, the spatially relative terms are intended to include different orientations of the device in use and operation. For example, if the device in the accompanying drawings is flipped, then the elements or features described as "under other elements" or "under" or "under" will be oriented as "on" the other elements or features. Therefore, the exemplary terms "under" and "under" may include both upper and lower orientations. The device may be oriented otherwise (rotated 90 degrees or other orientations) and the spatial descriptors used herein are interpreted accordingly.

[0050] The purpose of the terms used herein is only to describe specific embodiments and is not intended to be limiting of the present invention. When used herein, the singular forms "one", "an" and "said / the" are also intended to include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "consisting of" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.

[0051] Example 1

[0052] Reference Figures 4 to 7 This embodiment provides a protection circuit suitable for a CAN bus transceiver chip, the protection circuit is connected to a transmitting module of the CAN bus transceiver chip, and the protection circuit includes:

[0053] The first sampling resistor RCS1 is connected to the CANL port line; the second sampling resistor RCS2 is connected to the CANH port line;

[0054] The CANL port overcurrent comparison module CS_COMP1 is used to sample the current on the first sampling resistor RCS1 of the CANL port and compare it with the first overcurrent protection threshold I oc1 and outputting a first signal dom_oc1_st1; and comparing with the minimum overcurrent protection current I oc2 In comparison, a second signal dom_oc1_st2 is output; the minimum overcurrent protection current I oc2 Less than the first overcurrent protection threshold I oc1 ;

[0055] The CANL port overvoltage comparison module CANL_OV_COMP is used to detect the voltage Vcanl_mid of the CANL port, and compare the detected voltage Vcanl_mid with the maximum allowable voltage Vcanl_ov of the CANL port, and output a third signal dom_ov_st;

[0056] A CANH port overcurrent comparison module CS_COMP2 is used to sample the current on the second sampling resistor RCS2 of the CANH port and compare it with the second overcurrent protection threshold; and output a fourth signal dom_och_st;

[0057] a protection control logic module, configured to input the first signal, the second signal, the third signal, the fourth signal and an enable signal EN_DOM; when the voltage Vcanl_mid of the CANL port is greater than the maximum allowable voltage Vcanl_ov of the CANL port, and the current on the first sampling resistor RCS1 is greater than the minimum overcurrent protection current I oc2 , or the current on the first sampling resistor RCS1 is greater than the first overcurrent protection threshold I oc1 When the current on the second sampling resistor RCS1 is greater than the second overcurrent protection threshold, a control signal is output to shut off the current flowing out of the chip from the CANH port.

[0058] Specifically, in this embodiment, the CANL port overcurrent comparison module CS_COMP1 includes: a first resistor R SNS1 , the second resistor R SNS2 , the third resistor R SNS3, a third PMOS transistor MP3, a fourth PMOS transistor MP4, a fifth PMOS transistor MP5, a fifth NMOS transistor MN5, a sixth NMOS transistor MN6, a first comparator OC_COMP1 and a second comparator OC_COMP2; the first resistor R SNS1 One end of the first sampling resistor RCS1 is connected to one end of the current output of the first sampling resistor RCS1. SNS1 The other end of the third PMOS tube MP3 is connected to the source of the third PMOS tube MP3; the gate of the third PMOS tube MP3 is connected to the gate and drain of the fourth PMOS tube MP4 and the drain of the fifth NMOS tube MN5; the drain of the third PMOS tube MP3 is connected to the drain of the sixth NMOS tube MN6 and the gate of the fifth PMOS tube MP5; the source of the fourth PMOS tube MP4 is connected to the second resistor R SNS2 and the source of the fifth PMOS tube MP5, the second resistor R SNS2 The other end of is connected to one end of the current input of the first sampling resistor RCS1; the source electrodes of the fifth NMOS tube MN5 and the sixth NMOS tube MN6 are both grounded; the gate electrode of the sixth NMOS tube MN6 is connected to the current mirror bias; the drain electrode of the fifth PMOS tube MP5 is connected to the third resistor R SNS3 grounded; the positive input terminals of the first comparator OC_COMP1 and the second comparator OC_COMP2 are both connected to the drain of the fifth PMOS tube MP5; the inverting input terminal of the first comparator OC_COMP1 is used to input the first comparison threshold value vref_oc1, and the inverting input terminal of the second comparator OC_COMP2 is used to input the second comparison threshold value vref_oc2; the first comparison threshold value vref_oc1 is greater than the second comparison threshold value vref_oc2; the output terminal of the first comparator OC_COMP1 is used to output the first signal dom_oc1_st1, and the output terminal of the second comparator OC_COMP2 is used to output the second signal dom_oc1_st2.

[0059] In this embodiment, the CANH port overcurrent comparison module CS_COMP2 includes: a fourth resistor R SNS4 , the fifth resistor R SNS5 , the sixth resistor R SNS6 , a sixth PMOS tube MP6, a seventh PMOS tube MP7, an eighth PMOS tube MP8, an eighth NMOS tube MN8, a ninth NMOS tube MN9, a third comparator OC_COMP3; the fifth resistor R SNS5 One end of the fifth resistor R is connected to one end of the current input of the second sampling resistor RCS2. SNS5The other end of the sixth PMOS tube MP6 is connected to the source of the sixth PMOS tube MP6; the gate of the sixth PMOS tube MP6 is connected to the gate and drain of the seventh PMOS tube MP7 and the drain of the ninth NMOS tube MN9; the drain of the sixth PMOS tube MP6 is connected to the drain of the eighth NMOS tube MN8 and the gate of the eighth PMOS tube MP8; the source of the seventh PMOS tube MP7 is connected to the fourth resistor R SNS4 and the source of the eighth PMOS tube MP8; the fourth resistor R SNS4 The other end of is connected to one end of the current output of the second sampling resistor RCS2; the source electrodes of the eighth NMOS tube MN8 and the ninth NMOS tube MN9 are both grounded; the gate of the eighth NMOS tube MN8 is connected to the current mirror bias; the drain of the eighth PMOS tube MP8 is connected to the sixth resistor R SNS6 grounded; the positive input terminal of the third comparator OC_COMP3 is connected to the drain of the eighth PMOS tube MP8; the reverse input terminal is used to input the third comparison threshold (the third comparison threshold and the first comparison threshold vref_oc1 are the same in this embodiment), and the output terminal is used to output the fourth signal dom_och_st.

[0060] In this embodiment, the sixth NMOS tube MN6 and the eighth NMOS tube MN8 are connected to the same current mirror bias. The current mirror bias includes: a seventh NMOS tube MN7 and a second current source IB2, the gate and drain of the seventh NMOS tube MN7 are short-circuited and connected to the output of the second current source IB2; the source of the seventh NMOS tube MN7 is grounded, and the gate is connected to the gate of the sixth NMOS tube MN6 and the gate of the eighth NMOS tube MN8.

[0061] In this embodiment, the protection control logic module includes: a first AND gate AND1, a second AND gate AND2, a three-input AND gate AND3, a three-input OR gate OR1 and a fourth NMOS transistor MN4; one input end of the first AND gate AND1 is used to input the first signal dom_oc1_st1, and the other input end is used to input the enable signal EN_DOM; one input end of the second AND gate AND2 is used to input the fourth signal dom_och_st, and the other input end is used to input the enable signal EN_DOM; the three input ends of the three-input AND gate AND3 are respectively used to input the second signal dom_oc1_st2, the third signal dom_ov_st and the enable signal EN_DOM; the three input ends of the three-input OR gate OR1 are respectively connected to the outputs of the first AND gate AND1, the second AND gate AND2, and the three-input AND gate AND3; the output end is connected to the gate of the fourth NMOS transistor MN4, the source of the fourth NMOS transistor MN4 is grounded, and the drain is connected to the transmitting module.

[0062] In this embodiment, the transmitting module includes: a first PMOS tube MP1, a second PMOS tube MP2, a first NMOS tube MN1, a second NMOS tube MN2, a third NMOS tube MN3 and a tenth NMOS tube MN10; the drain and gate of the first PMOS tube MP1 are short-circuited and connected to the gate of the second PMOS tube MP2 and the drain of the third NMOS tube MN3; the source of the first PMOS tube MP1 is connected to the source of the second PMOS tube MP2 and to the power supply voltage, the drain of the second PMOS tube MP2 is connected to one end of the current input of the second sampling resistor RCS2; the third The gate of the NMOS tube MN3 is connected to the gate and drain of the first NMOS tube MN1, the source of the tenth NMOS tube MN10, the gate of the second NMOS tube MN2, and the drain of the fourth NMOS tube MN4, and the source of the third NMOS tube MN3 is grounded; the source of the second NMOS tube MN2 is grounded, and the drain is connected to one end of the current output of the first sampling resistor RCS1; the source of the first NMOS tube MN1 is grounded; the drain of the tenth NMOS tube MN10 is connected to the output of the first current source IB; the gate of the tenth NMOS tube MN10 is used to input the enable signal EN_DOM.

[0063] In this embodiment, the gate of the tenth NMOS tube is connected to a buffer, and the enable signal EN_DOM is input to the gate of the tenth NMOS tube through the buffer.

[0064] The CANL port overcurrent comparison module CS_COMP1 and the CANH port overcurrent comparison module CS_COMP2 are two current comparator modules, which are used to sample the current on the first sampling resistor RCS1 of the CANL port and the second sampling resistor RCS2 of the CANH port, and compare them with their respective first overcurrent protection threshold and second overcurrent protection threshold. In this embodiment, the values ​​of the two overcurrent protection thresholds are the same.

[0065] For the CANL port, in dominant mode, the enable signal EN_DOM = H. If the current I CS1 =Idom>I oc1 , then the first signal dom_oc1_st1 = H, the output signal PROT_SD of the three-input OR gate OR1 = H, the fourth NMOS tube MN4 starts to pull down, and the gate drive voltage vbn node (the connection point between the second NMOS tube MN2 and the fourth NMOS tube MN4) is pulled down to 0, so that the first NMOS tube MN1, the second NMOS tube MN2, and the third NMOS tube MN3 are turned off, thereby turning off the current flowing into the chip from the CANL port, achieving the purpose of overcurrent protection. In dominant mode, when the CANL port voltage is too high, even if the pull-down current Idom flowing into the chip from CANL does not exceed the first overcurrent protection threshold I oc1 , it is also possible that the chip may be damaged due to excessive power consumption, resulting in severe heat generation. Therefore, the CANL port overvoltage comparison module CANL_OV_COMP is added. The function of this module is to detect the voltage Vcanl_mid of the CANL port, and obtain the minimum overcurrent protection current I corresponding to the maximum voltage Vcanl_ov (for example, 40V) of the CANL port through the maximum power dissipation Pmax that the CAN transceiver chip can withstand. oc2 , when Vcanl_mid>Vcanl_ov, the third output signal dom_ov_st=H, and I CS1 >I oc2 When the protection control logic module is used, the fourth NMOS tube MN4 is turned on to pull down the vbn node and the second NMOS tube MN2 is turned off, thereby achieving the overvoltage protection function. Similarly, for the CANH port, in the dominant mode, EN_DOM=H, if the current I on the second sampling resistor RCS2 CS2 >I oc1If the over-current protection thresholds of the CANH port and the CANL port in this embodiment are the same, then dom_och_st = H, PROT_SD = H, and the fourth NMOS transistor MN4 is turned on to pull down, pulling down the vbn node to 0, thereby turning off the first NMOS transistor MN1, the second NMOS transistor MN2, and the third NMOS transistor MN3, thus turning off the current flowing out of the chip from the CANH port and achieving the purpose of over-current protection.

[0066] Figure 5 In it, the fifth NMOS transistor MN5 and the sixth NMOS transistor MN6 have the same size, and the current flowing through them is IB2. The fourth PMOS transistor MP4 and the third PMOS transistor MP3 have the same size to ensure the same gain. R SNS1 =R SNS2 , such that the sampling current I MP5 can vary linearly. When the CAN transceiver chip is in the dominant mode, I MN5 =I MN6 =IB2, Idom = I MN2 +I MN5 +I MN6 , where I MN5 , I MN6 and I MN2 respectively represent the current of the fifth NMOS transistor MN5, the current of the sixth NMOS transistor MN6, and the current of the second NMOS transistor MN2. Since IB2 << Idom, so I MN2 =Idom, that is, the pull-down current of the second NMOS transistor MN2 is Idom, then the current flowing through the fifth PMOS transistor MP5 is:

[0067] I MP5 =Idom × RCS1 / R SNS1

[0068] Then the voltage across the third resistor R SNS3 after Idom current sampling is:

[0069] Vsns_csl = R SNS3 ×I MP5 = Idom × R SNS3 × RCS1 / R SNS1

[0070] Set the first over-current comparison threshold vref_oc1, and the corresponding Idom over-current threshold is I oc1 , the second over-current comparison threshold vref_oc2, and the corresponding Idom over-current threshold is I oc2 , where, Vref_oc1 > Vref_oc2, that is, I oc1 >I oc2. When Vsns_cs1 (the voltage across the third resistor R SNS3 )>Vref_oc1, it means Idom>I oc1 . At this time, dom_oc1_st1 = H. As described above, the first type of overcurrent protection condition (Idom exceeds the first overcurrent protection threshold I oc1 ) is triggered, and the output of the CAN transceiver is turned off. When Vref_oc2 < Vsns_cs1 < Vref_oc1, it means I oc1 >Idom>I oc2 . At this time, dom_ocl_st2 = H. If Vfb_ov > vref_ov, then dom_ov_st = H. As described above, the second type of overcurrent protection condition (Idom exceeds the minimum overcurrent protection current I oc2 , and when the voltage of the CANL port is too high) is triggered, and the output of the CAN transceiver is turned off.

[0071] In this embodiment, the CANL port overvoltage comparison module CANL_OV_COMP includes: a seventh resistor RFB1, an eighth resistor RFB2, and a fourth comparator OV_COMP; one end of the seventh resistor RFB1 is connected to one end of the current input of the first sampling resistor RCS1, the other end of the seventh resistor RFB1 is connected to one end of the eighth resistor RFB2, and the other end of the eighth resistor RFB2 is grounded; the positive input terminal of the fourth comparator OV_COMP is connected to the common connection of the seventh resistor RFB1 and the eighth resistor RFB2; the negative input terminal is used to input a preset voltage vref_ov, and the output terminal outputs the third signal dom_ov_st. Since the voltages to be compared are relatively large, the voltage comparator cannot directly connect the voltages to be compared to the input terminals of the comparator. Therefore, in this embodiment, a resistor voltage division circuit is used to convert the voltage Vcanl_mid of the CANL port to be compared and the maximum voltage Vcanl_ov of the CANL port into voltages Vfb_ov and vref_ov for comparison.

[0072] In this embodiment, by detecting in the dominant mode, when the current of the CANL port is greater than the first overcurrent protection threshold, or the voltage of the CANL port exceeds the maximum allowable voltage, and the current of the CANL port is greater than the minimum overcurrent protection current, the protection control logic module shuts off the current flowing into the chip from the CANL port, and when the current of the CANH port is greater than the second overcurrent protection threshold, shuts off the current flowing out of the chip from the CANH port, to avoid damage to the chip caused by overheating due to high voltage or large current.

[0073] The above description is only a description of the preferred embodiments of the present invention, and does not limit the scope of the present invention in any way. Any changes and modifications made by those of ordinary skill in the art of the present invention according to the above disclosure shall fall within the protection scope of the claims.

Claims

1. A protection circuit suitable for a CAN bus transceiver chip, characterized in that: The protection circuit is connected to the transmitting module of the CAN bus transceiver chip, and the protection circuit includes: The first sampling resistor is connected to the CANL port line; the second sampling resistor is connected to the CANH port line; A CANL port overcurrent comparison module, configured to sample the current on the first sampling resistor of the CANL port, compare it with a first overcurrent protection threshold, and output a first signal; and compare it with a minimum overcurrent protection current, and output a second signal; the minimum overcurrent protection current is less than the first overcurrent protection threshold; A CANL port overvoltage comparison module is used to detect the voltage of the CANL port, compare the detected voltage with the maximum allowable voltage of the CANL port, and output a third signal; A CANH port overcurrent comparison module, used for sampling the current on the second sampling resistor of the CANH port and comparing it with the second overcurrent protection threshold; outputting a fourth signal; A protection control logic module, configured to input the first signal, the second signal, the third signal, the fourth signal and an enable signal; when the voltage of the CANL port is greater than the maximum allowable voltage of the CANL port, and the current on the first sampling resistor is greater than the minimum overcurrent protection current, or the current on the first sampling resistor is greater than the first overcurrent protection threshold, output a control signal to shut off the current flowing into the chip from the CANL port; and when the current on the second sampling resistor is greater than the second overcurrent protection threshold, output a control signal to shut off the current flowing out of the chip from the CANH port; The protection control logic module includes: a first AND gate, a second AND gate, a three-input AND gate, a three-input OR gate and a fourth NMOS tube; One input terminal of the first AND gate is used to input the first signal, and the other input terminal is used to input an enable signal; One input terminal of the second AND gate is used to input the fourth signal, and the other input terminal is used to input an enable signal; The three input terminals of the three-input AND gate are respectively used to input the second signal, the third signal and the enable signal; The three input ends of the three-input OR gate are respectively connected to the outputs of the first AND gate, the second AND gate, and the three-input AND gate; the output end is connected to the gate of the fourth NMOS tube, the source of the fourth NMOS tube is grounded, and the drain is connected to the transmitting module.

2. The protection circuit for a CAN bus transceiver chip as claimed in claim 1, characterized in that: The CANL port overcurrent comparison module includes: A first resistor, a second resistor, a third resistor, a third PMOS transistor, a fourth PMOS transistor, a fifth PMOS transistor, a fifth NMOS transistor, a sixth NMOS transistor, a first comparator and a second comparator; One end of the first resistor is connected to one end of the current output of the first sampling resistor, and the other end of the first resistor is connected to the source of the third PMOS tube; the gate of the third PMOS tube is connected to the gate and drain of the fourth PMOS tube and the drain of the fifth NMOS tube; the drain of the third PMOS tube is connected to the drain of the sixth NMOS tube and the gate of the fifth PMOS tube; the source of the fourth PMOS tube is connected to one end of the second resistor and the source of the fifth PMOS tube, and the other end of the second resistor is connected to one end of the current input of the first sampling resistor; the sources of the fifth NMOS tube and the sixth NMOS tube are both grounded; the gate of the sixth NMOS tube is connected to the current mirror bias; the drain of the fifth PMOS tube is grounded through the third resistor; The positive input ends of the first comparator and the second comparator are both connected to the drain of the fifth PMOS tube; the reverse input end of the first comparator is used to input a first comparison threshold, and the reverse input end of the first comparator is used to input a second comparison threshold; the first comparison threshold is greater than the second comparison threshold; the output end of the first comparator is used to output the first signal, and the output end of the second comparator is used to output the second signal.

3. The protection circuit for a CAN bus transceiver chip as claimed in claim 1, characterized in that: The CANH port overcurrent comparison module includes: a fourth resistor, a fifth resistor, a sixth resistor, a sixth PMOS transistor, a seventh PMOS transistor, an eighth PMOS transistor, an eighth NMOS transistor, a ninth NMOS transistor, and a third comparator; One end of the fifth resistor is connected to one end of the current input of the second sampling resistor, and the other end of the fifth resistor is connected to the source of the sixth PMOS tube; the gate of the sixth PMOS tube is connected to the gate and drain of the seventh PMOS tube and the drain of the ninth NMOS tube; the drain of the sixth PMOS tube is connected to the drain of the eighth NMOS tube and the gate of the eighth PMOS tube; the source of the seventh PMOS tube is connected to one end of the fourth resistor and the source of the eighth PMOS tube; the other end of the fourth resistor is connected to one end of the current output of the second sampling resistor; the sources of the eighth NMOS tube and the ninth NMOS tube are both grounded; the gate of the eighth NMOS tube is connected to the current mirror bias; the drain of the eighth PMOS tube is grounded through the sixth resistor; The positive input terminal of the third comparator is connected to the drain of the eighth PMOS tube; the negative input terminal is used to input the third comparison threshold, and the output terminal is used to output the fourth signal.

4. The protection circuit for a CAN bus transceiver chip as claimed in claim 1, characterized in that: The CANL port overvoltage comparison module includes: a seventh resistor, an eighth resistor and a fourth comparator; One end of the seventh resistor is connected to one end of the current input of the first sampling resistor, the other end of the seventh resistor is connected to one end of the eighth resistor, and the other end of the eighth resistor is grounded; The positive input terminal of the fourth comparator is connected to the common connection of the seventh resistor and the eighth resistor; the negative input terminal is used to input a preset voltage, and the output terminal outputs the third signal.

5. The protection circuit for a CAN bus transceiver chip as claimed in claim 1, characterized in that: The transmitting module comprises: A first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube, a third NMOS tube and a tenth NMOS tube; The drain and gate of the first PMOS tube are short-circuited and connected to the gate of the second PMOS tube and the drain of the third NMOS tube; the source of the first PMOS tube is connected to the source of the second PMOS tube and to the power supply voltage, and the drain of the second PMOS tube is connected to one end of the current input of the second sampling resistor; the gate of the third NMOS tube is connected to the gate and drain of the first NMOS tube, the source of the tenth NMOS tube, the gate of the second NMOS tube, and the drain of the fourth NMOS tube, and the source of the third NMOS tube is grounded; the source of the second NMOS tube is grounded, and the drain is connected to one end of the current output of the first sampling resistor; the source of the first NMOS tube is grounded; the drain of the tenth NMOS tube is connected to the output of the first current source; the gate of the tenth NMOS tube is used to input an enable signal.

6. The protection circuit for a CAN bus transceiver chip as claimed in claim 5, characterized in that: The gate of the tenth NMOS tube is connected to a buffer, and the enable signal is input to the gate of the tenth NMOS tube through the buffer.

7. The protection circuit suitable for a CAN bus transceiver chip as claimed in claim 2 or 3, characterized in that: The current mirror bias includes: a seventh NMOS tube and a second current source, the gate and drain of the seventh NMOS tube are short-circuited and connected to the output of the second current source; the source of the seventh NMOS tube is grounded, and the gate serves as the output of the current mirror bias.

8. The protection circuit for a CAN bus transceiver chip as claimed in claim 1, characterized in that: The first over-current protection threshold and the second over-current protection threshold are the same.