A bus transceiver protection circuit
By adding a slope detection module to the CAN transceiver circuit to detect the slope of the CAN signal edge, the problem of overheating protection of the CAN bus chip in the existing technology is solved, effective monitoring and protection of the temperature is achieved, and the efficient operation of the transmission link is ensured. .
Patent Information
- Application Number
- CN202411026319.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-30
AI Technical Summary
The existing technology lacks a technical solution for temperature protection of CAN bus chips, which causes the working performance and lifespan of the chip to be affected when it overheats, affecting the efficiency of the transmission link.
A bus transceiver protection circuit is designed. By adding a slope detection module to the CAN transceiver circuit, the slope of the CAN signal edge is detected to determine whether it is over-temperature. This module includes a DC bias circuit and a mirror current circuit composed of a constant current source and an NMOS/PMOS tube. It judges the temperature by detecting the slope of the signal to achieve temperature protection.
It effectively solves the overheat protection problem of CAN communication, ensures the normal working performance and lifespan of the CAN bus chip in high temperature environments, and improves the efficiency of the transmission link.
Smart Images

Figure CN118573510B
Abstract
Description
Technical Field
[0001] The present invention and the technical field of CAN bus protection circuits specifically relate to a bus transceiver protection circuit. Background Art
[0002] Controller Area Network (CAN) is a serial communication protocol bus for real-time applications. It can use twisted pair cables to transmit signals and is one of the most widely used fieldbuses in the world. The CAN protocol is used for communication between various components in the car to replace expensive and bulky distribution harnesses. The robustness of the protocol extends its use to other automation and industrial applications. The characteristics of the CAN protocol include complete serial data communication, real-time support, transmission speeds up to 1Mb / s, and 11-bit addressing and error detection capabilities.
[0003] CAN bus is a type of field bus, and its working environment is generally very harsh. CAN bus uses differential signals as the carrier for signal transmission. This transmission method can effectively suppress common mode interference, improve signal quality, reduce the impact of electromagnetic interference on the signal, and increase the distance of signal transmission. When the CAN bus chip is working, the temperature indirectly reflects the working status of the CAN bus chip. If the chip working temperature is too high, it will be detrimental to the chip's working performance and life, and affect the working efficiency of the transmission link.
[0004] The slope of the CAN bus output signal is affected by factors such as temperature. When the temperature rises, the driving ability increases and the output waveform slope increases. Therefore, by detecting the output waveform slope, the temperature inside the CAN bus chip can be determined. The existing technology lacks a technical solution for CAN bus chip temperature protection. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a bus transceiver protection circuit to solve the overheat protection problem of CAN communication in the prior art.
[0006] To solve the above technical problems, an embodiment of the present invention provides the following technical solutions: a bus transceiver protection circuit, comprising a CAN bus chip circuit, the CAN bus chip circuit comprising a driving circuit, a P-type MOS tube, an N-type MOS tube, and an operational amplifier, the driving circuit input end is a data sending pin, the driving circuit output end is connected to the gates of the P-type MOS tube and the N-type MOS tube, the P-type MOS tube source is connected to the power supply end, the P-type MOS tube drain is connected to the anode of a first diode, the cathode of the first diode is connected to the in-phase end of the operational amplifier, the N-type MOS tube drain is connected to the cathode of a second diode, the anode of the second diode is connected to the inverting end of the operational amplifier, the N-type MOS tube source is grounded, the in-phase end and the inverting end of the operational amplifier are respectively a high potential CAN voltage input and output end and a low potential CAN voltage input and output end, the operational amplifier output end is a data receiving pin, the high potential CAN voltage input and output end and the low potential CAN voltage input and output end are respectively connected to the input end of a slope detection module, and the output end of the slope detection module is connected to the driving circuit.
[0007] Further, the slope detection module includes a DC bias circuit composed of a constant current source IB1 and NMOS tubes NM1, NM2, and NM3, and a mirror current circuit composed of PMOS tubes PM1, PM2, PM3, PM4, PM5 and NMOS tubes NM4, NM5, NM41, NM42, NM43, NM51, NM52, and NM53;
[0008] The input end of the constant current source IB1 is connected to the power supply VDD, the output end of the constant current source IB1 is connected to the drain of the NMOS tube NM1, the NMOS tubes NM1, NM2, and NM3 are connected in series in sequence, the output end of the constant current source IB1 is also connected to one end of the resistor R1, and the other end of the resistor R1 is connected to the gate of the NMOS tube NM5;
[0009] The drains of the PMOS tubes PM2, PM3, and PM4 are simultaneously connected to the power supply VDD, the source of the PMOS tube PM2 is connected to the drain of PM1, the source of PM1 is connected to the drain of the NMOS tube NM4, the NMOS tubes NM4, NM41, and NM51 are sequentially connected in series, the source of the PMOS tube PM3 is connected to the drain of the NMOS tube NM5, the NMOS tubes NM5, NM42, and NM52 are sequentially connected in series, the source of the PMOS tube PM4 is connected to the drain of PM5, the source of PM5 is connected to the drain of the NMOS tube NM43, and the NMOS tubes NM43 and NM53 are connected in series;
[0010] The gate of the PMOS tube PM1 is connected to the gate of the PMOS tube PM5, the gate of the PMOS tube PM3 is connected to the gate of the PMOS tube PM4, the gate of the NMOS tube NM1 is connected to the gate of NM4, the gates of the NMOS tubes NM41, NM42 and NM43 are connected, and the gates of the NMOS tubes NM51, NM52 and NM53 are connected;
[0011] The drain of the PMOS tube PM5 is connected to a first inverter, the output end of the first inverter is connected to a second inverter, and the second inverter outputs a signal along the slope signal.
[0012] Furthermore, the gate of the NMOS tube NM1 is grounded via a DC-isolating capacitor C1, and the gate of the NMOS tube NM5 is connected to a signal input terminal via a DC-isolating capacitor C2.
[0013] Further, the gates and drains of the NMOS tubes NM1, NM2 and NM3 are connected, the source of the NMOS tube NM1 is connected to the drain of NM2, the source of the NMOS tube NM2 is connected to the drain of NM3, and the source of the NMOS tube NM3 is grounded;
[0014] The source of the NMOS tube NM4 is connected to the drain of NM41, the source of the NMOS tube NM41 is connected to the drain of NM51, and the source of the NMOS tube NM51 is grounded;
[0015] The source of the NMOS tube NM5 is connected to the drain of NM42, the source of the NMOS tube NM42 is connected to the drain of NM52, and the source of the NMOS tube NM52 is grounded;
[0016] The source of the NMOS tube NM43 is connected to the drain of NM53, and the source of the NMOS tube NM53 is grounded.
[0017] Furthermore, the gates of the PMOS tubes PM1, PM2 and PM3 are connected to the sources.
[0018] The beneficial effects of the above technical solution of the present invention are as follows:
[0019] The present invention adds a slope detection module capable of detecting the edge of a CAN signal to the existing CAN transceiver circuit to detect the slope of the signal edge and judge whether it is over-temperature, thereby effectively solving the overheat protection problem of the prior art CAN communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 This is a system diagram of CAN communication;
[0021] Figure 2 This is the waveform of CAN bus communication at 25 degrees Celsius;
[0022] Figure 3 The waveform diagram of CAN bus communication at 125 degrees Celsius;
[0023] Figure 4 This is the internal structure diagram of the CAN transceiver;
[0024] Figure 5 The general schematic diagram of the CAN bus transceiver and the slope detection of the present invention;
[0025] Figure 6 This is a schematic diagram of the slope detection module circuit of the present invention;
[0026] Figure 7 It is a working timing diagram of the slope detection module circuit of the present invention. DETAILED DESCRIPTION
[0027] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0028] like Figure 1 The figure shows a system diagram of CAN communication. There are many nodes on a CAN communication bus, and each node communicates in a time-sharing manner.
[0029] like Figure 2 The figure below shows the waveform of CAN bus communication. CANH and CANL transmit data signals together. The figure below shows the output waveform at 25 degrees Celsius. It can be seen that the rising and falling edges of the waveform are relatively slow.
[0030] like Figure 3 The figure below shows the waveform of CAN bus communication. CANH and CANL transmit data signals together. The figure below shows the output waveform at 125 degrees Celsius. It can be seen that the rising and falling edges of the waveform are relatively steep.
[0031] like Figure 4As shown in the figure, it is the internal structure of the CAN transceiver, including the drive circuit (the block diagram marked Driver in the figure), P-type MOS tube PM0, N-type MOS tube NM0, operational amplifier COMP1, the input end of the drive circuit is the data transmission pin TX, the output end of the drive circuit is connected to the gate of the P-type MOS tube and the N-type MOS tube, the source of the P-type MOS tube is connected to the power supply end, the drain of the P-type MOS tube is connected to the positive electrode of the first diode, the negative electrode of the first diode is connected to the in-phase end of the operational amplifier, the drain of the N-type MOS tube is connected to the negative electrode of the second diode, the positive electrode of the second diode is connected to the inverting end of the operational amplifier, the source of the N-type MOS tube is grounded, the in-phase end and the inverting end of the operational amplifier are respectively the high potential CAN voltage input and output end CANH and the low potential CAN voltage input and output end CANL, and the output end of the operational amplifier is the data receiving pin RX. The generation of CANH and CANL is realized by driving the power tube through the TX signal, and the slope of its output signal is affected by factors such as temperature. When the temperature rises, the Vth of PM0 and NM0 decreases, and the driving ability is enhanced, so the slope of the output waveform increases.
[0032] From the above analysis, it can be seen that by detecting the output waveform slope, the temperature inside the CAN bus chip can be determined. Figure 5 As shown, the present invention Figure 4 The CAN transceiver circuit shown in the figure adds a slope detection module that can detect the slope of the CAN signal edge to detect the slope of the signal edge and determine whether it is overheated. Figure 4 The high potential CAN voltage input and output terminal CANH and the low potential CAN voltage input and output terminal CANL are respectively connected to the input terminal of the slope detection module, and the output terminal of the slope detection module is connected to the driving circuit.
[0033] like Figure 6 As shown, it is a circuit schematic diagram of the slope detection module added above, including a DC bias circuit composed of a constant current source IB1 and NMOS tubes NM1, NM2, and NM3, and a mirror current circuit composed of PMOS tubes PM1, PM2, PM3, PM4, PM5 and NMOS tubes NM4, NM5, NM41, NM42, NM43, NM51, NM52, and NM53;
[0034] The input end of the constant current source IB1 is connected to the power supply VDD, the output end of the constant current source IB1 is connected to the drain of the NMOS tube NM1, the NMOS tubes NM1, NM2, and NM3 are connected in series in sequence, the output end of the constant current source IB1 is also connected to one end of the resistor R1, and the other end of the resistor R1 is connected to the gate of the NMOS tube NM5;
[0035] The drains of PMOS tubes PM2, PM3, and PM4 are simultaneously connected to the power supply VDD, the source of PMOS tube PM2 is connected to the drain of PM1, the source of PM1 is connected to the drain of NMOS tube NM4, NMOS tubes NM4, NM41, and NM51 are connected in series in sequence, the source of PMOS tube PM3 is connected to the drain of NMOS tube NM5, NMOS tubes NM5, NM42, and NM52 are connected in series in sequence, the source of PMOS tube PM4 is connected to the drain of PM5, the source of PM5 is connected to the drain of NMOS tube NM43, and NMOS tubes NM43 and NM53 are connected in series;
[0036] The gate of the PMOS tube PM1 is connected to the gate of the PMOS tube PM5, the gate of the PMOS tube PM3 is connected to the gate of the PMOS tube PM4, the gate of the NMOS tube NM1 is connected to the gate of the NMOS tube NM4, the gates of the NMOS tubes NM41, NM42 and NM43 are connected, and the gates of the NMOS tubes NM51, NM52 and NM53 are connected;
[0037] The drain of the PMOS tube PM5 is connected to the first inverter INV1, the output end of the first inverter INV1 is connected to the second inverter INV2, and the second inverter INV2 outputs a signal edge slope signal.
[0038] like Figure 6 As shown, the gate of the NMOS tube NM1 is grounded through the DC-isolating capacitor C1, and the gate of the NMOS tube NM5 is connected to the signal input terminal IN through the DC-isolating capacitor C2.
[0039] The gates and drains of the NMOS tubes NM1, NM2 and NM3 are connected, the source of the NMOS tube NM1 is connected to the drain of the NM2, the source of the NMOS tube NM2 is connected to the drain of the NM3, and the source of the NMOS tube NM3 is grounded;
[0040] The source of NMOS tube NM4 is connected to the drain of NM41, the source of NMOS tube NM41 is connected to the drain of NM51, and the source of NMOS tube NM51 is grounded;
[0041] The source of NMOS tube NM5 is connected to the drain of NM42, the source of NMOS tube NM42 is connected to the drain of NM52, and the source of NMOS tube NM52 is grounded;
[0042] The source of the NMOS tube NM43 is connected to the drain of the NM53, and the source of the NMOS tube NM53 is grounded.
[0043] The working principle of the present invention is:
[0044] C1 and C2 are DC blocking capacitors, which can be used to eliminate the influence of common mode interference.
[0045] IB1 flows through three NMOS tubes, generating a DC voltage connected to the gate of NM4, and connected to the gate of NM5 through resistor R1, in order to generate a suitable DC operating point to ensure that NM4 / 5 can be turned on normally.
[0046] PM2~5, NM41~43 / 51~53 are all mirror current tubes.
[0047] When the slope of the rising edge of the signal injected at the input terminal IN meets the trigger condition, it will be coupled to the gate of the NM5 tube through the C2 capacitor. As the VGS voltage of the NM5 tube increases, the current IP2 increases, and is compared with the current IP1 through the current mirror. The comparison signal B is generated after the output is amplified, and then the out pulse signal is output after shaping through the 2-stage inverter. When the slope of the signal injected at the input terminal IN is different, the voltage coupled to the gate of the NM5 tube through the C2 capacitor is different (because the larger the slope, the faster the charging rate), so the comparison signal B generated after the final output amplification is also different, and the out pulse signal output after shaping through the 2-stage inverter is also different, that is, the out pulse signal indirectly reflects the slope of the input signal.
[0048] like Figure 7 As shown in the figure, it is the working timing diagram of the slope detection circuit. When the slope of the rising edge of the signal injected at the input terminal IN meets the trigger condition, it will be coupled to the gate of the NM5 tube through the C2 capacitor, and a comparison signal B will be generated after current amplification, and then the out pulse signal will be output after shaping through the 2-stage inverter.
[0049] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A bus transceiver protection circuit, comprising a CAN bus chip circuit, the CAN bus chip circuit comprising a drive circuit, a P-type MOS tube, an N-type MOS tube, and an operational amplifier, the drive circuit input end is a data sending pin, the drive circuit output end is connected to the P-type MOS tube and the N-type MOS tube gate, the P-type MOS tube source is connected to the power supply end, the P-type MOS tube drain is connected to the anode of a first diode, the cathode of the first diode is connected to the in-phase end of the operational amplifier, the N-type MOS tube drain is connected to the cathode of a second diode, the anode of the second diode is connected to the inverting end of the operational amplifier, the N-type MOS tube source is grounded, the in-phase end and the inverting end of the operational amplifier are respectively a high potential CAN voltage input and output end and a low potential CAN voltage input and output end, and the output end of the operational amplifier is a data receiving pin, characterized in that: The high potential CAN voltage input and output terminal and the low potential CAN voltage input and output terminal are respectively connected to the slope detection module.
2. The bus transceiver protection circuit according to claim 1, characterized in that: The slope detection module includes a DC bias circuit composed of a constant current source IB1 and NMOS tubes NM1, NM2, and NM3, and a mirror current circuit composed of PMOS tubes PM1, PM2, PM3, PM4, PM5 and NMOS tubes NM4, NM5, NM41, NM42, NM43, NM51, NM52, and NM53.
3. The bus transceiver protection circuit according to claim 2, characterized in that: The input end of the constant current source IB1 is connected to the power supply VDD, the output end of the constant current source IB1 is connected to the drain of the NMOS tube NM1, the NMOS tubes NM1, NM2, and NM3 are connected in series in sequence, the output end of the constant current source IB1 is also connected to one end of the resistor R1, and the other end of the resistor R1 is connected to the gate of the NMOS tube NM5.
4. The bus transceiver protection circuit according to claim 2, characterized in that: The drains of the PMOS tubes PM2, PM3, and PM4 are simultaneously connected to the power supply VDD, the source of the PMOS tube PM2 is connected to the drain of PM1, the source of PM1 is connected to the drain of the NMOS tube NM4, the NMOS tubes NM4, NM41, and NM51 are connected in series in sequence, the source of the PMOS tube PM3 is connected to the drain of the NMOS tube NM5, the NMOS tubes NM5, NM42, and NM52 are connected in series in sequence, the source of the PMOS tube PM4 is connected to the drain of PM5, the source of PM5 is connected to the drain of the NMOS tube NM43, and the NMOS tubes NM43 and NM53 are connected in series.
5. The bus transceiver protection circuit according to claim 4, characterized in that: The gate of the PMOS tube PM1 is connected to the gate of the PMOS tube PM5, the gate of the PMOS tube PM3 is connected to the gate of the PMOS tube PM4, the gate of the NMOS tube NM1 is connected to the gate of NM4, the gates of the NMOS tubes NM41, NM42 and NM43 are connected, and the gates of the NMOS tubes NM51, NM52 and NM53 are connected.
6. The bus transceiver protection circuit according to claim 4, characterized in that: The drain of the PMOS tube PM5 is connected to a first inverter, the output end of the first inverter is connected to a second inverter, and the second inverter outputs a signal along the slope signal.
7. The bus transceiver protection circuit according to claim 2, characterized in that: The gate of the NMOS transistor NM1 is grounded via a DC blocking capacitor C1, and the gate of the NMOS transistor NM5 is connected to a signal input terminal via a DC blocking capacitor C2.
8. The bus transceiver protection circuit according to claim 2, characterized in that: The gates and drains of the NMOS tubes NM1, NM2 and NM3 are connected, the source of the NMOS tube NM1 is connected to the drain of NM2, the source of the NMOS tube NM2 is connected to the drain of NM3, and the source of the NMOS tube NM3 is grounded; The source of the NMOS tube NM4 is connected to the drain of NM41, the source of the NMOS tube NM41 is connected to the drain of NM51, and the source of the NMOS tube NM51 is grounded; The source of the NMOS tube NM5 is connected to the drain of NM42, the source of the NMOS tube NM42 is connected to the drain of NM52, and the source of the NMOS tube NM52 is grounded; The source of the NMOS tube NM43 is connected to the drain of NM53, and the source of the NMOS tube NM53 is grounded.
9. The bus transceiver protection circuit according to claim 2, characterized in that: The gates of the PMOS tubes PM1, PM2 and PM3 are connected to the sources.
10. The bus transceiver protection circuit according to claim 1, characterized in that: The output end of the slope detection module is connected to the driving circuit.
