Driver circuit and LIN transceiver

By designing the driver circuit in the LIN transceiver and using the switching circuit and op amp control circuit to manage the slope of the LIN bus voltage signal, the electromagnetic radiation problem of the LIN transceiver during state switching is solved and communication stability is improved.

CN118337558BActive Publication Date: 2024-08-23TINYCHIP MICROELECTRONICS (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410773733.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-08-23
Estimated Expiration
2044-06-17

Smart Images

  • Figure CN118337558B
    Figure CN118337558B
Patent Text Reader

Abstract

The present application relates to the field of electronic technology, and in particular to a driving circuit and a LIN transceiver. The driving circuit includes: a switch circuit, a voltage sampling circuit, an operational amplifier control circuit, and a ramp signal generating circuit; the sampling end of the voltage sampling circuit is connected to the LIN bus, and the voltage sampling circuit is used to collect a first voltage signal on the LIN bus; the ramp signal generating circuit generates a ramp signal with a preset slope according to a state control signal; the operational amplifier control circuit generates a first control signal according to the voltage magnitude relationship between the first voltage signal and the ramp signal; the first control signal is used to control the on or off of the switch circuit, thereby pulling down or raising the first voltage signal on the LIN bus, so that the first voltage signal on the LIN bus and the ramp signal maintain the same rising slope and falling slope, thereby avoiding the first voltage signal on the LIN bus from changing too fast, thereby generating a large electromagnetic interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a driving circuit and a LIN transceiver. Background Art

[0002] LIN (Local Interconnect Network) is a low-cost serial communication network used to achieve distributed electronic system control in automobiles. The goal of LIN is to provide auxiliary functions for existing automobile networks (such as CAN bus), so LIN bus is an auxiliary bus network, which is used in occasions that do not require the broadband and multi-function of CAN (Controller Area Network) bus, such as communication between automotive ambient lights. Using LIN bus can greatly save costs.

[0003] In the related art, the LIN bus is arranged almost all over the car, and the length of the LIN bus is relatively long. During operation, when the LIN transceiver switches between the dominant state and the recessive state, the change amplitude of the voltage signal on the LIN bus is close to the power jump, and the voltage signal on the LIN bus changes too quickly, which will generate large electromagnetic radiation, thereby interfering with other transmission signals and affecting the stability and accuracy of communication. Summary of the invention

[0004] The present application provides a driving circuit and a LIN transceiver to solve the technical problem in the related art that a LIN transceiver generates relatively large electromagnetic radiation when switching between a dominant state and a recessive state.

[0005] In a first aspect, the present application provides a driving circuit for use in a LIN transceiver, the LIN transceiver being connected to a LIN bus, the driving circuit comprising: a switching circuit, a voltage sampling circuit, an operational amplifier control circuit, and a ramp signal generating circuit;

[0006] The sampling end of the voltage sampling circuit is connected to the LIN bus, and the voltage sampling circuit is used to collect a first voltage signal on the LIN bus; the first voltage signal is used to represent the voltage value on the LIN bus or the voltage division of the voltage value on the LIN bus;

[0007] The input end of the ramp signal generating circuit is used to receive a state control signal, wherein the state control signal is used to indicate a dominant state and a recessive state of the LIN transceiver; the ramp signal generating circuit is used to generate a ramp signal with a preset slope according to the state control signal;

[0008] The switch circuit comprises a first end, a second end and a control end, the first end of the switch circuit is used to connect to the LIN bus, and the second end of the switch circuit is grounded; the output end of the operational amplifier control circuit is connected to the control end of the switch circuit;

[0009] The operational amplifier control circuit is used to generate a first control signal according to the voltage magnitude relationship between the first voltage signal and the ramp signal; the first control signal is used to control the on or off of the switch circuit, thereby pulling down or raising the first voltage signal on the LIN bus.

[0010] In a possible design, an interference detection circuit, a pull-up control circuit, and a pull-down control circuit are also included;

[0011] The interference detection circuit is used to detect whether the difference between the first voltage signal and the ramp signal exceeds a first preset value during the rising phase of the first voltage signal, or to detect whether the difference between the first voltage signal and the ramp signal exceeds a second preset value during the falling phase of the first voltage signal; if so, generate a first detection signal;

[0012] The pull-up control circuit is used to generate a pull-up control signal according to the state control signal and the first detection signal, and the pull-up control signal is used to control the conduction of the switch circuit, so as to pull down the first voltage signal on the LIN bus;

[0013] The pull-down control circuit is used to generate a pull-down control signal according to the state control signal and the first detection signal, and the pull-down control signal is used to control the switching circuit to be turned off, thereby pulling up the first voltage signal on the LIN bus.

[0014] In one possible design, the ramp signal includes a rising ramp signal and a falling ramp signal having a preset slope;

[0015] The ramp signal generating circuit is used to generate the rising ramp signal when the state control signal switches from the dominant state to the recessive state, and to generate the falling ramp signal when the state control signal switches from the recessive state to the dominant state.

[0016] In a possible design, the ramp signal generating circuit includes a first comparator, a first transistor, a first switch tube, a second switch tube, a first current source, a second current source and a first capacitor;

[0017] The first electrode of the first transistor is used to connect to the power supply, the second electrode of the first transistor is connected to the first electrode of the first switch tube; the second electrode of the first switch tube is connected to the first end of the first current source, the second end of the first current source is connected to the first end of the second current source, the second end of the second current source is connected to the first electrode of the second switch tube, and the second electrode of the second switch tube is grounded; the second end of the first current source is the output end of the ramp signal generating circuit;

[0018] The control electrode of the first switch tube is used to receive a first switch signal, and the first switch signal is used to control the conduction or shutdown of the first switch tube; the control electrode of the second switch tube is used to receive a second switch signal, and the second switch signal is used to control the conduction or shutdown of the second switch tube;

[0019] The non-phase input terminal of the comparator is used to receive the first voltage signal, and the inverting input terminal of the comparator is connected to the second electrode of the first transistor;

[0020] A first end of the first capacitor is connected to a second end of the first current source, and a second end of the first capacitor is grounded.

[0021] In a possible design, the interference detection circuit includes a third current source, a third switch tube, a fourth switch tube, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a first resistor and a second resistor;

[0022] The input end of the third current source is used to receive the supply voltage, the output end of the third current source is connected to the first end of the first resistor, the second end of the first resistor is connected to the first electrode of the second transistor, and the second electrode of the second transistor is connected to the first electrode of the third transistor;

[0023] The output end of the third current source is also connected to the first end of the second resistor, the second end of the second resistor is connected to the first electrode of the fourth transistor, the second electrode of the fourth transistor is connected to the first electrode of the fifth transistor, and the second electrode of the fifth transistor is connected to the second electrode of the third transistor;

[0024] The control electrode of the second transistor is connected to the output end of the voltage sampling circuit for receiving the first voltage signal; the control electrode of the fourth transistor is connected to the output end of the ramp signal generating circuit for receiving the ramp signal; the control electrode of the third transistor is connected to the control electrode of the fifth transistor; the first electrode and the control electrode of the third transistor are short-circuited;

[0025] The second electrode of the fourth transistor is the output end of the interference detection circuit, and is used to output the first detection signal.

[0026] In one possible design, the switch circuit includes a sixth transistor, a first diode, a third resistor and a second capacitor;

[0027] The anode of the first diode is the first end of the switch circuit; the cathode of the first diode is connected to the first electrode of the sixth transistor, the second electrode of the sixth transistor is the second end of the switch circuit; the control electrode of the sixth transistor is the control end of the switch circuit;

[0028] The first end of the second capacitor is connected to the cathode of the first diode, the second end of the second capacitor is connected to the first end of the third resistor, and the second end of the third resistor is connected to the control electrode of the sixth transistor.

[0029] In one possible design, the voltage sampling circuit includes a fourth resistor and a fifth resistor;

[0030] The first end of the fourth resistor is the sampling end of the voltage sampling circuit, the second end of the fourth resistor is connected to the first end of the fifth resistor, and the second end of the fifth resistor is grounded;

[0031] The second end of the fourth resistor is the output end of the voltage sampling circuit, and is used to output the first voltage signal; the first voltage signal is used to represent the voltage division of the voltage value on the LIN bus.

[0032] In one possible design, the pull-up control circuit includes a first AND gate circuit and a seventh crystal;

[0033] The input end of the first AND gate circuit is used to receive the inverted signal of the state control signal and the first detection signal; the output end of the first AND gate circuit is connected to the control electrode of the seventh crystal, the first electrode of the seventh crystal is used to connect to the power supply, and the second electrode of the seventh crystal is connected to the control electrode of the sixth transistor;

[0034] The first AND gate circuit is used to perform AND gate processing on the inverted signal of the state control signal and the first detection signal to obtain a first logic signal; the first logic signal is used to control the conduction of the seventh crystal, so that the second pole of the seventh crystal outputs the pull-up control signal;

[0035] The pull-down control circuit includes a second AND gate circuit and an eighth crystal;

[0036] The input end of the second AND gate circuit is used to receive the state control signal and the first detection signal; the output end of the second AND gate circuit is connected to the control electrode of the eighth crystal, the first electrode of the eighth crystal is connected to the control electrode of the sixth transistor, and the second electrode of the eighth crystal is grounded;

[0037] The second AND gate circuit is used to perform AND gate processing on the state control signal and the first detection signal to obtain a second logic signal; the second logic signal is used to control the conduction of the eighth crystal, so that the first pole of the eighth crystal outputs the pull-down control signal.

[0038] In a possible design, it further includes a second diode, a sixth resistor and a third capacitor;

[0039] The anode of the second diode is connected to the power supply, the cathode of the second diode is connected to the first end of the sixth resistor, the second end of the sixth resistor is connected to the first end of the third capacitor, and the second end of the third capacitor is grounded;

[0040] The second end of the sixth resistor is connected to the LIN bus.

[0041] In a second aspect, the present application provides a LIN transceiver, which includes the driving circuit as described above.

[0042] According to the driving circuit provided in the first aspect above, the driving circuit includes: a switching circuit, a voltage sampling circuit, an operational amplifier control circuit and a ramp signal generating circuit; the sampling end of the voltage sampling circuit is connected to the LIN bus, and the voltage sampling circuit is used to collect a first voltage signal on the LIN bus; the first voltage signal is used to characterize the voltage value on the LIN bus or the voltage division of the voltage value on the LIN bus; the input end of the ramp signal generating circuit is used to receive a state control signal, and the ramp signal generating circuit generates a ramp signal with a preset slope according to the state control signal; the first end of the switching circuit is used to connect to the LIN bus, and the second end of the switching circuit is grounded; the output end of the operational amplifier control circuit is connected to the control end of the switching circuit; the operational amplifier control circuit generates a first control signal according to the voltage magnitude relationship between the first voltage signal and the ramp signal; the first control signal is used to control the conduction or shutdown of the switching circuit, thereby pulling down or raising the first voltage signal on the LIN bus, so that the first voltage signal on the LIN bus and the ramp signal maintain the same rising slope and falling slope, thereby avoiding the first voltage signal on the LIN bus from changing too fast, thereby generating large electromagnetic radiation to interfere with other transmission signals.

[0043] The beneficial effects provided in the above-mentioned second aspect and various possible designs of the above-mentioned second aspect can refer to the beneficial effects brought about by the above-mentioned first aspect and various possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A wiring diagram of a LIN bus in a related art in an application scenario;

[0045] Figure 2 A schematic diagram of the structure of a driving circuit provided in an embodiment of the present application;

[0046] Figure 3 A schematic diagram of a voltage change curve on a LIN bus provided in an embodiment of the present application;

[0047] Figure 4 A schematic diagram of the structure of a ramp signal generating circuit provided in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of the interference detection circuit structure provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a voltage waveform when LIN receives interference provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can mean: a alone, b alone, c alone, a and b in combination, a and c in combination, b and c in combination, or a, b, and c in combination, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0051] The directions or positional relationships indicated by terms such as "center", "longitudinal", "lateral", "up", "down", "left", "right", "front", and "back" are based on the directions or positional relationships shown in the accompanying drawings and are only for the convenience of describing the present application and simplifying the description. They do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present application.

[0052] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0053] The transistor in the present application is a three-terminal transistor, and its three terminals are a control electrode, a first electrode, and a second electrode. The transistor can be a bipolar transistor or a field effect transistor, etc. For example, when the transistor is a bipolar transistor, its control electrode refers to the base of the bipolar transistor, the first electrode can be the collector or emitter of the bipolar transistor, and the corresponding second electrode can be the emitter or collector of the bipolar transistor; when the transistor is a field effect transistor, its control electrode refers to the gate of the field effect transistor, the first electrode can be the drain or source of the field effect transistor, and the corresponding second electrode can be the source or drain of the field effect transistor.

[0054] In order to minimize the complexity of the circuits in automotive electronic equipment, the control signals of the drive electronic settings are usually transmitted through the bus. In addition to the control host, the driver device units of each slave are interconnected to form a bus control system, such as the brake device of the car air conditioner, the window lifting device, the vehicle atmosphere light, etc. LIN (Local Interconnect Network) is a low-cost serial communication network used to realize the distributed electronic system control in the car.

[0055] Figure 1 For a wiring diagram of the LIN bus in an application scenario in the related art, see Figure 1 As shown, a single or multiple hosts are connected to multiple slaves through a LIN bus. Since the LIN bus is spread throughout the entire vehicle and has a long total length, during operation, when the LIN transceiver switches between the dominant state and the recessive state, the voltage signal on the LIN bus changes too quickly, which will generate large electromagnetic radiation, thereby interfering with other transmission signals and affecting the stability and accuracy of communication.

[0056] In order to overcome the defects in the above-mentioned related technologies, the present application provides a driving circuit, which includes: a switch circuit, a voltage sampling circuit, an operational amplifier control circuit and a ramp signal generating circuit; the voltage sampling circuit collects the first voltage signal on the LIN bus, the ramp signal generating circuit generates a ramp signal with a preset slope according to the state control signal, and the operational amplifier control circuit generates a first control signal according to the voltage magnitude relationship between the first voltage signal and the ramp signal to control the on or off of the switch circuit, thereby pulling down or raising the first voltage signal on the LIN bus, so that the first voltage signal and the ramp signal on the LIN bus maintain the same rising slope and falling slope, avoiding the first voltage signal on the LIN bus from changing too fast, thereby generating large electromagnetic radiation. In other words, the voltage sampling circuit and the operational amplifier control circuit are equivalent to forming a feedback control loop to control the first voltage signal on the LIN bus to rise or fall according to the preset slope, thereby avoiding the first voltage signal on the LIN bus from changing too fast, and the output voltage waveform has a steep slope and contains more high-frequency signals, thereby generating large electromagnetic radiation.

[0057] The present application provides a driving circuit. Figure 2 For a schematic diagram of the driving circuit structure provided in the embodiment of the present application, please refer to Figure 2 As shown, the driving circuit includes: a switch circuit 20, a voltage sampling circuit 21, an operational amplifier control circuit 22 and a ramp signal generating circuit 23.

[0058] Among them, the sampling end of the voltage sampling circuit 21 is connected to the LIN bus, the output end of the voltage sampling circuit 21 is connected to the input end of the operational amplifier control circuit 22, and the voltage sampling circuit 21 is used to collect the first voltage signal FB on the LIN bus; the first voltage signal FB is used to represent the voltage value on the LIN bus or the voltage division of the voltage value on the LIN bus.

[0059] Among them, the input end of the ramp signal generating circuit 23 is connected to the controller, and the input end of the ramp signal generating circuit 23 is used to receive the state control signal TXD output by the controller, and the state control signal TXD is used to indicate the dominant state and recessive state of the LIN transceiver; for example, in this embodiment, when TXD=1, the LIN bus is in the recessive state, and the LIN bus relies on the sixth resistor R6 to pull to the voltage VBAT; when TXD=0, the LIN bus is in the dominant state, and the switch circuit 20 pulls down the voltage on the LIN bus to a low potential.

[0060] The ramp signal generating circuit 23 is used to generate a ramp signal with a preset slope according to the input state control signal TXD. The switch circuit 20 includes a first terminal, a second terminal and a control terminal. The first terminal of the switch circuit 20 is used to connect to the LIN bus, and the second terminal of the switch circuit 20 is grounded.

[0061] The output end of the ramp signal generating circuit 23 is connected to the input end of the operational amplifier control circuit 22, and the output end of the operational amplifier control circuit 22 is connected to the control end of the switch circuit 20; the operational amplifier control circuit 22 is used to generate a first control signal according to the voltage magnitude relationship between the first voltage signal FB and the ramp signal SLOPE; the first control signal is used to control the on or off of the switch circuit, thereby pulling down or raising the first voltage signal on the LIN bus.

[0062] The voltage sampling circuit 21 of this embodiment can be a voltage sampling circuit of a voltage divider type, see Figure 2 As shown, specifically, the voltage sampling circuit 21 of this embodiment includes a fourth resistor R4 and a fifth resistor R5, the first end of the fourth resistor R4 is the sampling end of the voltage sampling circuit 21, the second end of the fourth resistor R4 is connected to the first end of the fifth resistor R5, and the second end of the fifth resistor R5 is grounded. The second end of the fourth resistor R4 is the output end of the voltage sampling circuit, which is used to output a first voltage signal FB, and the first voltage signal FB is used to characterize the voltage division of the voltage value on the LIN bus. The voltage value of the first voltage signal FB is less than the voltage value on the LIN bus, but has the same change rule as the voltage value on the LIN bus, so the collection of the first voltage signal FB can represent the change trend of the voltage value on the LIN bus.

[0063] Figure 3 For a schematic diagram of a voltage change curve on the LIN bus provided in the embodiment of the present application, see Figure 3 As shown, according to the driving circuit provided by this embodiment, the voltage sampling circuit and the operational amplifier control circuit are equivalent to forming a feedback control loop. When the LIN bus switches between the dominant state and the recessive state, a first control signal is generated according to the voltage magnitude relationship between the first voltage signal FB and the ramp signal SLOPE. The first control signal is used to feedback the voltage value on the LIN bus. For example, when the first voltage signal FB is higher than the ramp signal SLOPE, the state of the first control signal is 1, and the control switch circuit 20 is turned on to lower the voltage value on the LIN bus; on the contrary, when the first voltage signal FB is lower than the ramp signal SLOPE, the state of the output first control signal is 0, and the control switch circuit 20 is turned off, and the LIN bus is pulled up to the voltage VBAT by the sixth resistor R6. In this way, the voltage value on the LIN bus can be feedback-controlled to rise or fall according to a preset slope, thereby avoiding the voltage value on the LIN bus from changing too fast, thereby generating a large electromagnetic radiation.

[0064] In some embodiments, see Figure 2As shown, the switch circuit 20 includes a sixth transistor Q6, a first diode D1, a third resistor R3, and a second capacitor C2. The anode of the first diode D1 is the first end of the switch circuit 20; the cathode of the first diode D1 is connected to the first electrode of the sixth transistor Q6, and the second electrode of the sixth transistor Q6 is the second end of the switch circuit 20; the control electrode of the sixth transistor Q6 is the control end of the switch circuit 20; the first end of the second capacitor C2 is connected to the cathode of the first diode D1, the second end of the second capacitor C2 is connected to the first end of the third resistor R3, and the second end of the third resistor R3 is connected to the control electrode of the sixth transistor Q6. Among them, the first diode D1 can prevent the power supply from backflowing current when the LIN bus voltage is higher than the power supply voltage VBAT.

[0065] See also Figure 2 As shown, the operational amplifier control circuit 22 of this embodiment includes a second comparator 221. The second comparator 221 can compare the voltage magnitude relationship between the first voltage signal FB and the ramp signal SLOPE. When the first voltage signal FB is higher than the ramp signal SLOPE, the state of the output first control signal is 1. When the first voltage signal FB is lower than the ramp signal SLOPE, the state of the output first control signal is 0.

[0066] See also Figure 3 As shown, the ramp signal includes a rising ramp signal and a falling ramp signal with a preset slope. The ramp signal generating circuit 23 is used to: generate a rising ramp signal when the state control signal TXD switches from a dominant state to a recessive state, and generate a falling ramp signal when the state control signal TXD switches from a recessive state to a dominant state.

[0067] Figure 4 For a schematic diagram of the structure of the ramp signal generating circuit provided in the embodiment of the present application, please refer to Figure 4 As shown, the ramp signal generating circuit 23 includes a first comparator 231 , a first transistor Q1 , a first switch tube S1 , a second switch tube S2 , a first current source I1 , a second current source I2 and a first capacitor C1 .

[0068] Among them, the first electrode of the first transistor Q1 is used to connect the power supply VBAT, and the second electrode of the first transistor Q1 is connected to the first electrode of the first switch tube S1; the second electrode of the first switch tube S1 is connected to the first end of the first current source I1, the second end of the first current source I1 is connected to the first end of the second current source I2, the second end of the second current source I2 is connected to the first electrode of the second switch tube S2, and the second electrode of the second switch tube S2 is grounded; the second end of the first current source I1 is the output end of the ramp signal generating circuit 23, which is used to output the ramp signal SLOPE; the control electrode of the first switch tube S1 is used to receive the first switch signal, the first switch signal, which is used to control the conduction or shutdown of the first switch tube S1; the control electrode of the second switch tube S2 is used to receive the second switch signal, the second switch signal, which is used to control the conduction or shutdown of the second switch tube S2. The positive input end of the comparator 231 is used to receive the first voltage signal FB, and the inverting input end of the comparator 231 is connected to the second electrode of the first transistor Q1; the first end of the first capacitor C1 is connected to the second end of the first current source I1, and the second end of the first capacitor C1 is grounded.

[0069] When working, the first current source I1 and the second current source I2 alternately charge and discharge the first capacitor C1 to output the ramp signal SLOPE. Among them, FB is the divided voltage of the power supply voltage VBAT, VEST is the voltage of the second electrode of the first transistor Q1, and after the operation of the comparator 231, VSET=FB=VBAT*(R5 / R4+R5). When working, when TXD changes from 0 to 1, a first switch signal is generated to control the first switch tube S1 to close, the second switch tube S2 to open, the first current source I1 charges the first capacitor C1, and the voltage of the ramp signal SLOPE is charged from 0V to VEST, and the time is t1=VSET∗C1 / I1=R*C1*(R5 / R4+R5), so t1 is only related to the resistor and capacitor, and has nothing to do with the voltage VBAT and the load of LIN. Among them, the resistance value of the first current source I1 and the resistance value of the second current source I2 are both R. Similarly, when TXD changes from 1 to 0, a second switch signal is generated to control the first switch tube S1 to be disconnected and the second switch tube S2 to be closed. The voltage of the ramp signal SLOPE is discharged from VSET to 0V, and the time taken is t2=VSET∗C1 / I2=R*C1*(R5 / R4+R5). t1=t2, that is, the rise and fall time of LIN are the same, which does not affect the duty cycle.

[0070] According to the switch circuit 20 provided in this embodiment, the third resistor R3 and the second capacitor C2 are the compensation resistor and the compensation of the loop respectively. The state of the first control signal is 1, and the sixth transistor Q6 is controlled to be turned on, and the ground terminal pulls down the voltage value on the LIN bus; on the contrary, when the state of the first control signal is 0, the sixth transistor Q6 is controlled to be turned off, and the LIN bus is pulled up to the voltage VBAT by the sixth resistor R6.

[0071] Under some working conditions, the voltage value on the LIN bus will be interfered by the external signal, resulting in rapid changes, that is, the change amplitude is too large, resulting in strong interference to the voltage value on the LIN bus, which will also affect the stability and accuracy of the LIN bus signal transmission.

[0072] In order to overcome the above technical defects, in some embodiments, the driving circuit further includes an interference detection circuit, a pull-up control circuit 24 and a pull-down control circuit 25. The interference detection circuit is used to detect whether the difference between the first voltage signal FB and the ramp signal exceeds the first preset value V1 during the rising phase of the first voltage signal FB, or detect whether the difference between the first voltage signal FB and the ramp signal SLOPE exceeds the second preset value V2 during the falling phase of the first voltage signal FB; if so, a first detection signal EMI is generated.

[0073] The pull-up control circuit 24 is used to generate a pull-up control signal according to the state control signal TXD and the first detection signal EMI, and the pull-up control signal is used to control the conduction of the switch circuit 20, thereby pulling down the first voltage signal FB on the LIN bus. The pull-down control circuit 25 is used to generate a pull-down control signal according to the state control signal TXD and the first detection signal EMI, and the pull-down control signal is used to control the shutdown of the switch circuit 20, thereby relying on the sixth resistor R6 to pull up the first voltage signal FB on the LIN bus.

[0074] Among them, in some embodiments, the first preset value and the second preset value can be set to the same preset value, that is, when the LIN bus switches between the dominant state and the recessive state, as long as the difference between the first voltage signal FB and the ramp signal SLOPE exceeds the same preset value, the voltage value on the LIN bus is forcibly pulled up or down through the pull-up control circuit 24 or the pull-down control circuit 25, thereby enhancing the anti-interference ability of the LIN bus, mainly enhancing the robustness of the LIN bus against electromagnetic interference.

[0075] Figure 5 For a schematic diagram of the interference detection circuit structure provided in the embodiment of the present application, please refer to Figure 5 As shown, the interference detection circuit includes a third current source I3, a third switch tube S3, a fourth switch tube S4, a second transistor Q2, a third transistor Q3, a fourth transistor Q4, a fifth transistor Q5, a first resistor R1 and a second resistor R2.

[0076] The input end of the third current source I3 is used to receive the power supply voltage VCC, the output end of the third current source I3 is connected to the first end of the first resistor R1, the second end of the first resistor R1 is connected to the first electrode of the second transistor Q2, and the second electrode of the second transistor Q2 is connected to the first electrode of the third transistor Q3. The output end of the third current source I3 is also connected to the first end of the second resistor R2, the second end of the second resistor R2 is connected to the first electrode of the fourth transistor Q4, the second electrode of the fourth transistor Q4 is connected to the first electrode of the fifth transistor Q5, and the second electrode of the fifth transistor Q5 is connected to the second electrode of the third transistor Q3;

[0077] The control electrode of the second transistor Q2 is connected to the output end of the voltage sampling circuit 21, and is used to receive the first voltage signal FB; the control electrode of the fourth transistor Q4 is connected to the output end of the ramp signal generating circuit 23, and is used to receive the ramp signal SLOPE; the control electrode of the third transistor Q3 is connected to the control electrode of the fifth transistor Q5; the first electrode and the control electrode of the third transistor Q3 are short-circuited. The second electrode of the fourth transistor Q4 is the output end of the interference detection circuit, and is used to output the first detection signal EMI.

[0078] In some embodiments, the interference detection circuit further includes a first inverter 501 and a second inverter 502 , and the first inverter 501 and the second inverter 502 are used to filter the output first detection signal EMI.

[0079] Please refer to Figure 2 As shown, the pull-up control circuit 24 includes a first AND gate circuit 241 and a seventh transistor Q7; the input end of the first AND gate circuit 241 is used to receive the inverted signal of the state control signal and the first detection signal EMI, It is the inverted signal of the state control signal TXD, that is, when TXD is 1, When TXD is 0, The output terminal of the first AND gate circuit 241 is connected to the control electrode of the seventh transistor Q7, the first electrode of the seventh transistor Q7 is used to connect the power supply VDD, and the second electrode of the seventh transistor Q7 is connected to the control electrode of the sixth transistor Q6. The first AND gate circuit 241 is used to invert the state control signal The first detection signal EMI is processed by an AND gate to obtain a first logic signal; the first logic signal is used to control the seventh crystal Q7 to be turned on, so that the second pole of the seventh crystal Q7 outputs a pull-up control signal.

[0080] Among them, the pull-down control circuit 25 includes a second AND gate circuit 251 and an eighth crystal Q8; the input end of the second AND gate circuit 251 is used to receive the state control signal TXD and the first detection signal EMI; the output end of the second AND gate circuit 251 is connected to the control electrode of the eighth crystal Q8, the first electrode of the eighth crystal Q8 is connected to the control electrode of the sixth transistor Q6, and the second electrode of the eighth crystal Q8 is grounded; the second AND gate circuit 251 is used to perform AND gate processing on the state control signal TXD and the first detection signal EMI to obtain a second logic signal; the second logic signal is used to control the conduction of the eighth crystal Q8, so that the first electrode of the eighth crystal Q8 outputs a pull-down control signal.

[0081] Assuming that the current value of the third current source I3 is 2IC, the resistance values ​​of the first resistor R1 and the second resistor R2 are both RC, when the state control signal TXD is 1, the third switch tube S3 is closed, and the fourth switch tube S4 is disconnected, and when the interference detection circuit detects that FB>(SLOPE+Ic*Rc), the output first detection signal EMI is 1, and V1=Ic*Rc. When TXD=0, the third switch tube S3 is disconnected, and the fourth switch tube S4 is closed, and when it is detected that FB>(SLOPE-Ic*Rc), the output first detection signal EMI is 1, and V2=Ic*Rc.

[0082] Figure 6 For a schematic diagram of the voltage waveform when LIN receives interference provided in the embodiment of the present application, please refer to Figure 6 As shown in the figure, when the LIN bus is interfered by external electromagnetic signals, the first voltage signal FB also generates a proportional change in amplitude. After the state control signal TXD changes from 0 to 1, during the period of time when the voltage on the LIN bus rises and changes, if the first voltage signal FB exceeds the SLOPE voltage plus the set first preset value V1, the output first detection signal EMI is 1. is 0, then after the operation of the second AND gate circuit 251, the output second logic signal is 1, then the eighth transistor Q8 is turned on, the control electrode of the sixth transistor Q6 is pulled to the ground, the sixth transistor Q6 is in a high impedance state, the voltage on the LIN bus is pulled to VBAT by R6, and the LIN bus voltage is no longer interfered by external signals. When the state control signal TXD changes from 1 to 0, the time for the voltage on the LIN to drop, if the voltage of the first voltage signal FB is less than the SLOPE voltage minus the second preset value V2, the output first detection signal EMI is 1. After the operation of the first AND gate circuit 241, the output first logic signal is 1, then the seventh transistor Q7 is turned on, the control electrode of the sixth transistor Q6 is pulled to the power supply voltage VDD, the sixth transistor Q6 is directly turned on with low resistance, the voltage on the LIN bus is forcibly pulled down to the ground, and the LIN bus voltage is no longer interfered by external signals.

[0083] It can be seen that when the LIN bus is interfered by a strong electromagnetic signal, the amplitude of the electromagnetic interference can be detected through the interference detection circuit. When the interference exceeds the set value, the control electrode of the sixth transistor Q6 is pulled up or down. At this time, the slope of the voltage change on the LIN bus is no longer controlled, thereby enhancing the robustness of the electromagnetic interference of the LIN bus.

[0084] In some embodiments, see Figure 2 As shown, the driving circuit also includes a second diode D2, a sixth resistor R6 and a third capacitor C3; the positive electrode of the second diode D2 is connected to the power supply VBAT, the negative electrode of the second diode D2 is connected to the first end of the sixth resistor R6, the second end of the sixth resistor R6 is connected to the first end of the third capacitor C3, and the second end of the third capacitor C3 is grounded; the second end of the sixth resistor R6 is connected to the LIN bus.

[0085] In some embodiments, the switching circuit 20, the voltage sampling circuit 21, the operational amplifier control circuit 22, the ramp signal generating circuit 23, the interference detection circuit, the pull-up control circuit 24 and the pull-down control circuit 25 can all be integrated on one chip, and the second diode D2, the sixth resistor R6 and the third capacitor C3 are external devices of the chip.

[0086] Based on the driving circuit provided in the above embodiment, this embodiment further provides a LIN transceiver, which includes the driving circuit described above. The working principle and technical effects of the LIN transceiver can be referred to the above driving circuit, which will not be described here.

[0087] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A driving circuit for use in a LIN transceiver, wherein the LIN transceiver is connected to a LIN bus, It is characterized in that The driving circuit comprises: a switch circuit, a voltage sampling circuit, an operational amplifier control circuit and a ramp signal generating circuit; The sampling end of the voltage sampling circuit is connected to the LIN bus, and the voltage sampling circuit is used to collect a first voltage signal on the LIN bus; the first voltage signal is used to represent the voltage value on the LIN bus or the voltage division of the voltage value on the LIN bus; The input end of the ramp signal generating circuit is used to receive a state control signal, wherein the state control signal is used to indicate a dominant state and a recessive state of the LIN transceiver; the ramp signal generating circuit is used to generate a ramp signal with a preset slope according to the state control signal; The switch circuit comprises a first end, a second end and a control end, the first end of the switch circuit is used to connect to the LIN bus, and the second end of the switch circuit is grounded; the output end of the operational amplifier control circuit is connected to the control end of the switch circuit; The operational amplifier control circuit is used to generate a first control signal according to the voltage magnitude relationship between the first voltage signal and the ramp signal; the first control signal is used to control the on or off of the switch circuit, thereby pulling down or raising the first voltage signal on the LIN bus; The driving circuit also includes an interference detection circuit, a pull-up control circuit and a pull-down control circuit; The interference detection circuit is used to detect whether the difference between the first voltage signal and the ramp signal exceeds a first preset value during the rising phase of the first voltage signal, or to detect whether the difference between the first voltage signal and the ramp signal exceeds a second preset value during the falling phase of the first voltage signal; if so, generate a first detection signal; The pull-up control circuit is used to generate a pull-up control signal according to the state control signal and the first detection signal, and the pull-up control signal is used to control the conduction of the switch circuit, so as to pull down the first voltage signal on the LIN bus; The pull-down control circuit is used to generate a pull-down control signal according to the state control signal and the first detection signal, and the pull-down control signal is used to control the switching circuit to be turned off, thereby pulling up the first voltage signal on the LIN bus.

2. The driving circuit according to claim 1, It is characterized in that The ramp signal includes a rising ramp signal and a falling ramp signal with a preset slope; The ramp signal generating circuit is used to generate the rising ramp signal when the state control signal switches from the dominant state to the recessive state, and to generate the falling ramp signal when the state control signal switches from the recessive state to the dominant state.

3. The driving circuit according to claim 2, It is characterized in that The ramp signal generating circuit includes a first comparator, a first transistor, a first switch tube, a second switch tube, a first current source, a second current source and a first capacitor; The first electrode of the first transistor is used to connect to the power supply, the second electrode of the first transistor is connected to the first electrode of the first switch tube; the second electrode of the first switch tube is connected to the first end of the first current source, the second end of the first current source is connected to the first end of the second current source, the second end of the second current source is connected to the first electrode of the second switch tube, and the second electrode of the second switch tube is grounded; the second end of the first current source is the output end of the ramp signal generating circuit; The control electrode of the first switch tube is used to receive a first switch signal, and the first switch signal is used to control the conduction or shutdown of the first switch tube; the control electrode of the second switch tube is used to receive a second switch signal, and the second switch signal is used to control the conduction or shutdown of the second switch tube; The non-phase input terminal of the comparator is used to receive the first voltage signal, and the inverting input terminal of the comparator is connected to the second electrode of the first transistor; A first end of the first capacitor is connected to a second end of the first current source, and a second end of the first capacitor is grounded.

4. The driving circuit according to claim 1, It is characterized in that The interference detection circuit includes a third current source, a third switch tube, a fourth switch tube, a second transistor, a third transistor, a fourth transistor, a fifth transistor, a first resistor and a second resistor; The input end of the third current source is used to receive the supply voltage, the output end of the third current source is connected to the first end of the first resistor, the second end of the first resistor is connected to the first electrode of the second transistor, and the second electrode of the second transistor is connected to the first electrode of the third transistor; The output end of the third current source is also connected to the first end of the second resistor, the second end of the second resistor is connected to the first electrode of the fourth transistor, the second electrode of the fourth transistor is connected to the first electrode of the fifth transistor, and the second electrode of the fifth transistor is connected to the second electrode of the third transistor; The control electrode of the second transistor is connected to the output end of the voltage sampling circuit for receiving the first voltage signal; the control electrode of the fourth transistor is connected to the output end of the ramp signal generating circuit for receiving the ramp signal; the control electrode of the third transistor is connected to the control electrode of the fifth transistor; the first electrode and the control electrode of the third transistor are short-circuited; The second electrode of the fourth transistor is the output end of the interference detection circuit, and is used to output the first detection signal.

5. The driving circuit according to claim 1, It is characterized in that The switch circuit includes a sixth transistor, a first diode, a third resistor and a second capacitor; The anode of the first diode is the first end of the switch circuit; the cathode of the first diode is connected to the first electrode of the sixth transistor, the second electrode of the sixth transistor is the second end of the switch circuit; the control electrode of the sixth transistor is the control end of the switch circuit; The first end of the second capacitor is connected to the cathode of the first diode, the second end of the second capacitor is connected to the first end of the third resistor, and the second end of the third resistor is connected to the control electrode of the sixth transistor.

6. The driving circuit according to claim 1, It is characterized in that The voltage sampling circuit includes a fourth resistor and a fifth resistor; The first end of the fourth resistor is the sampling end of the voltage sampling circuit, the second end of the fourth resistor is connected to the first end of the fifth resistor, and the second end of the fifth resistor is grounded; The second end of the fourth resistor is the output end of the voltage sampling circuit, and is used to output the first voltage signal; The first voltage signal is used to represent the voltage division of the voltage value on the LIN bus.

7. The driving circuit according to claim 5, It is characterized in that The pull-up control circuit includes a first AND gate circuit and a seventh crystal; The input end of the first AND gate circuit is used to receive the inverted signal of the state control signal and the first detection signal; the output end of the first AND gate circuit is connected to the control electrode of the seventh crystal, the first electrode of the seventh crystal is used to connect to the power supply, and the second electrode of the seventh crystal is connected to the control electrode of the sixth transistor; The first AND gate circuit is used to perform AND gate processing on the inverted signal of the state control signal and the first detection signal to obtain a first logic signal; the first logic signal is used to control the conduction of the seventh crystal, so that the second pole of the seventh crystal outputs a pull-up control signal; The pull-down control circuit includes a second AND gate circuit and an eighth crystal; The input end of the second AND gate circuit is used to receive the state control signal and the first detection signal; the output end of the second AND gate circuit is connected to the control electrode of the eighth crystal, the first electrode of the eighth crystal is connected to the control electrode of the sixth transistor, and the second electrode of the eighth crystal is grounded; The second AND gate circuit is used to perform AND gate processing on the state control signal and the first detection signal to obtain a second logic signal; the second logic signal is used to control the conduction of the eighth crystal, so that the first pole of the eighth crystal outputs a pull-down control signal.

8. The driving circuit according to claim 1, It is characterized in that Also includes a second diode, a sixth resistor and a third capacitor; The anode of the second diode is connected to the power supply, the cathode of the second diode is connected to the first end of the sixth resistor, the second end of the sixth resistor is connected to the first end of the third capacitor, and the second end of the third capacitor is grounded; The second end of the sixth resistor is connected to the LIN bus.

9. A LIN transceiver, It is characterized in that The invention comprises a driving circuit as claimed in any one of claims 1 to 8.