A LIN control circuit with adjustable slope and control method
By designing a LIN control circuit with adjustable slope, using components such as adjustable current source and Miller capacitors, the slope control of the LIN bus signal is achieved, which solves the electromagnetic radiation problem caused by signal state switching in the prior art, and weakens EMI. Improved signal quality and system stability.
Patent Information
- Application Number
- CN202411178290.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The existing LIN transceivers cause strong electromagnetic radiation due to rapid voltage changes during signal state switching, interfering with other electronic devices in the car and violating electromagnetic compatibility requirements, and being unable to change the signal slope in real time.
A LIN control circuit with adjustable slope is designed, including slope control circuit, pull-up circuit and load, and the programmable through the storage medium, ramp generation module, delay module, high-voltage op amp, NMOS tube and diode components. Slope control, adjust the signal slope using an adjustable current source and Miller capacitor, forming a negative feedback loop to control the slope of the LIN bus signal.
It effectively reduces EMI, improves signal quality and system stability, adapts to slope requirements under different operating conditions, and improves application flexibility.
Smart Images

Figure CN118689808B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a control circuit and a control method, in particular to a LIN control circuit with adjustable slope and a control method, belonging to the technical field of semiconductor integrated circuits. Background Art
[0002] LIN (Local Interconnect Network) bus is a low-cost serial communication network used inside cars. Compared with CAN bus, LIN is simpler to implement in hardware and software, with lower cost, and is suitable for low-end networks used in vehicles. Due to its low cost and flexibility, LIN bus is widely used in door control, seat adjustment, lighting control and other fields in modern automotive electronic architecture, and is an effective means to achieve distributed control in the car.
[0003] When the LIN bus switches from recessive to dominant or vice versa, the rapid change in voltage will generate spike current, which will lead to strong electromagnetic radiation. This may not only interfere with the normal operation of other electronic equipment in the car, but also violate the requirements of electromagnetic compatibility. By controlling the slope and smoothing the edge change rate of the signal, these instantaneous current spikes can be significantly reduced, reducing EMI. However, most LIN transceivers on the market are designed based on the open-loop principle or use a fixed slope, and cannot change the LIN bus signal slope in real time. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a LIN control circuit and a control method with adjustable slope, so as to realize the slope control of the LIN bus signal.
[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0006] A LIN control circuit with adjustable slope comprises a slope control circuit, a pull-up circuit and a load, wherein the output end of the slope control circuit is connected to the output end of the pull-up circuit and the input end of the load, the slope control circuit comprises a storage medium, a slope generating module, a delay module, a high-voltage operational amplifier, an NMOS tube N1, an NMOS tube N2 and a diode D1, the first output end of the storage medium generates a slope control signal ctrl1 and is connected to the first input end of the slope generating module, the second output end of the storage medium generates a slope control signal ctrl2 and is connected to the second input end of the slope generating module, the third input end of the slope generating module is connected to a LIN bus state control signal TX, and the slope The first output end of the slope generating module generates a ramp signal SLOPE and is connected to the inverting input end of the high-voltage operational amplifier. The second output end of the slope generating module generates a delay signal TXN and is connected to the input end of the delay module. The output end of the delay module is connected to the gate of the NMOS tube N1. The drain of the NMOS tube N1 is connected to the cathode of the diode D1. The anode of the diode D1 is connected to the non-inverting input end of the high-voltage operational amplifier and is connected to the LIN bus signal LININ as the output end of the slope control circuit. The source of the NMOS tube N1 is connected to the drain of the NMOS tube N2. The source of the NMOS tube N2 is grounded. The gate of the NMOS tube N2 is connected to the output end of the high-voltage operational amplifier.
[0007] Furthermore, the slope generating module comprises an adjustable current source I1, an adjustable current source I2, a PMOS tube P2, an NMOS tube N5, an NMOS tube N3, a Miller capacitor C1 and a resistor R3, the control end of the adjustable current source I1 serves as a first input end of the slope generating module and is connected to a slope control signal ctrl1, the control end of the adjustable current source I2 serves as a second input end of the slope generating module and is connected to a slope control signal ctrl2, one end of the adjustable current source I1 is connected to a power supply VDD, the other end of the adjustable current source I1 is connected to a source of the PMOS tube P2, the gate of the PMOS tube P2 is connected to a gate of the NMOS tube N5 and serves as a slope generating module. The third input terminal of the ramp generating module inputs the LIN bus state control signal TX, the source of the NMOS tube N5 is connected to one end of the adjustable current source I2, the other end of the adjustable current source I2 is grounded, the drain of the PMOS tube P2 is connected to the drain of the NMOS tube N5, one end of the Miller capacitor C1 and the gate of the NMOS tube N3 and serves as the second output terminal of the ramp generating module to output the delay signal TXN, the other end of the Miller capacitor C1 is connected to one end of the resistor R3 and the drain of the NMOS tube N3 and serves as the first output terminal of the ramp generating module to output the ramp signal SLOPE, the other end of the resistor R3 is connected to the power supply VBAT, and the source of the NMOS tube N3 is grounded.
[0008] Furthermore, the adjustable current source I1 is a P-tube current mirror, and the current of the adjustable current source I1 is linearly related to the ramp control signal ctrl1; the adjustable current source I2 is an N-tube current mirror, and the current of the adjustable current source I2 is linearly related to the ramp control signal ctrl2.
[0009] Furthermore, the delay module includes a PMOS tube P1, an NMOS tube N4 and an inverter INV1, the gate of the PMOS tube P1 is connected to the gate of the NMOS tube N4 and serves as the input end of the delay module, the drain of the PMOS tube P1 is connected to the drain of the NMOS tube N4 and the input end of the inverter INV1, the source of the PMOS tube P1 is connected to the power supply VDD, the source of the NMOS tube N4 is grounded, and the output end of the inverter INV1 outputs a pulse signal TXD.
[0010] Furthermore, the storage medium stores a coding value, and the ramp control signal ctrl1 and the ramp control signal ctrl2 are changed by changing the coding value.
[0011] Furthermore, the pull-up circuit includes a resistor R1 and a diode D2, one end of the resistor R1 is connected to the power supply VBAT, the other end of the resistor R1 is connected to the anode of the diode D2, and the cathode of the diode D2 serves as the output end of the pull-up circuit.
[0012] Furthermore, the load includes a load resistor RBUS and a load capacitor CBUS, one end of the load resistor RBUS is connected to the power supply VBAT, the other end of the load resistor RBUS is connected to one end of the load capacitor CBUS and serves as an input end of the load, and the other end of the load capacitor CBUS is grounded.
[0013] Furthermore, the high-voltage operational amplifier, the NMOS transistor N1, the NMOS transistor N2 and the diode D1 form a negative feedback loop with driving capability.
[0014] A control method for a LIN control circuit with adjustable slope comprises the following steps:
[0015] When the LIN bus status control signal TX changes from high level to low level, the PMOS tube P2 is turned on, and the adjustable current source I1 charges the Miller capacitor C1 through the PMOS tube P2;
[0016] During the time t0-t1, the adjustable current source I1 charges the gate of the NMOS tube N3 through the PMOS tube P2, and the voltage of the delay signal TXN gradually rises. When the delay signal TXN rises to the threshold voltage of the NMOS tube N4, the NMOS tube N4 starts to pull down to make the drain of the NMOS tube low level, and after passing through the inverter INV1, the pulse signal TXD is pulled up to the power supply VDD, the high-voltage NMOS tube N1 is turned on, and the negative feedback loop drive circuit starts to work;
[0017] During the time period t1-t2, the delay signal TXN continues to rise. When the delay signal TXN rises to the threshold voltage of the NMOS tube N3, the NMOS tube N3 is turned on and continues to rise to the Miller platform voltage.
[0018] During the time t2-t3, due to the existence of Miller capacitor C1, the gate-source voltage of NMOS tube N3 remains unchanged, that is, the delay signal TXN remains unchanged, and the drain voltage of NMOS tube N3 begins to decrease, that is, the voltage of ramp signal SLOPE begins to decrease, and the voltage decrease slope of ramp signal SLOPE is determined by I1 / C1;
[0019] The voltage of the LIN bus signal LININ follows the voltage change of the ramp signal SLOPE through a negative feedback loop, and the voltage slope of the LIN bus signal LININ is equal to the voltage slope of the ramp signal SLOPE;
[0020] During the time t3-t4, the delay signal TXN continues to rise to VDD;
[0021] When the LIN bus state control signal TX changes from low level to high level, the NMOS tube N5 is turned on, and the adjustable current source I2 discharges the Miller capacitor C1 through the NMOS tube N5;
[0022] During the time period t5-t6, the delay signal TXN drops from the power supply VDD to the Miller platform voltage;
[0023] During the time period t6-t7, the delay signal TXN remains unchanged, and the voltage of the ramp signal SLOPE gradually increases. The voltage of the ramp signal SLOPE and the voltage rising slope of the LIN bus signal LININ are determined by I2 / C1.
[0024] When TX=1, the LIN bus signal LININ is high level, which is a recessive state; when TX=0, the LIN bus signal LININ is low level, which is a dominant state;
[0025] The slope formula of the ramp signal SLOPE and the LIN bus signal LININ, rising slope:
[0026]
[0027] Downward slope:
[0028] .
[0029] Compared with the prior art, the present invention has the following advantages and effects: the present invention provides a LIN control circuit and a control method with adjustable slope, which realizes the slope control of the LIN bus signal at the hardware level, thereby achieving the purpose of reducing EMI, improving signal quality and system stability; by using programmable slope control to adapt to the slope requirements under different working conditions, the application flexibility is higher. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic diagram of a LIN control circuit with adjustable slope according to the present invention.
[0031] Figure 2 It is a circuit diagram of the ramp generation module and the delay module of the present invention.
[0032] Figure 3 The present invention is a schematic diagram of a voltage waveform of a LIN control circuit with adjustable slope.
[0033] Figure 4 The invention discloses a flow chart of a LIN control method with adjustable slope. DETAILED DESCRIPTION
[0034] In order to elaborate on the technical scheme adopted by the present invention to achieve the predetermined technical purpose, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only partial embodiments of the present invention, rather than all embodiments, and the technical means or technical features in the embodiments of the present invention can be replaced without paying creative work. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0035] like Figure 1As shown, a LIN control circuit with adjustable slope of the present invention comprises a slope control circuit, a pull-up circuit and a load, wherein the output end of the slope control circuit is connected to the output end of the pull-up circuit and the input end of the load, the slope control circuit comprises a storage medium, a slope generating module, a delay module, a high-voltage operational amplifier, an NMOS tube N1, an NMOS tube N2 and a diode D1, the first output end of the storage medium generates a slope control signal ctrl1 and is connected to the first input end of the slope generating module, the second output end of the storage medium generates a slope control signal ctrl2 and is connected to the second input end of the slope generating module, and the third input end of the slope generating module is connected to the LIN bus state control signal T X, the first output end of the slope generating module generates a slope signal SLOPE and is connected to the reverse input end of the high-voltage operational amplifier, the second output end of the slope generating module generates a delay signal TXN and is connected to the input end of the delay module, the output end of the delay module is connected to the gate of the NMOS tube N1, the drain of the NMOS tube N1 is connected to the cathode of the diode D1, the anode of the diode D1 is connected to the non-inverting input end of the high-voltage operational amplifier and is connected to the LIN bus signal LININ as the output end of the slope control circuit, the source of the NMOS tube N1 is connected to the drain of the NMOS tube N2, the source of the NMOS tube N2 is grounded, and the gate of the NMOS tube N2 is connected to the output end of the high-voltage operational amplifier.
[0036] like Figure 2 As shown, the slope generating module includes an adjustable current source I1, an adjustable current source I2, a PMOS tube P2, an NMOS tube N5, an NMOS tube N3, a Miller capacitor C1 and a resistor R3, the control end of the adjustable current source I1 serves as the first input end of the slope generating module and is connected to the slope control signal ctrl1, the control end of the adjustable current source I2 serves as the second input end of the slope generating module and is connected to the slope control signal ctrl2, one end of the adjustable current source I1 is connected to the power supply VDD, the other end of the adjustable current source I1 is connected to the source of the PMOS tube P2, the gate of the PMOS tube P2 is connected to the gate of the NMOS tube N5 and serves as the slope generating module. The third input terminal of the block inputs the LIN bus state control signal TX, the source of the NMOS tube N5 is connected to one end of the adjustable current source I2, the other end of the adjustable current source I2 is grounded, the drain of the PMOS tube P2 is connected to the drain of the NMOS tube N5, one end of the Miller capacitor C1 and the gate of the NMOS tube N3 and serves as the second output terminal of the slope generating module to output the delay signal TXN, the other end of the Miller capacitor C1 is connected to one end of the resistor R3 and the drain of the NMOS tube N3 and serves as the first output terminal of the slope generating module to output the ramp signal SLOPE, the other end of the resistor R3 is connected to the power supply VBAT, and the source of the NMOS tube N3 is grounded.
[0037] Among them, Miller capacitor C1 is connected across the gate terminal and drain terminal of NMOS tube N3, and is used as Miller capacitor. Resistor R3 provides pull-up and current path, and can also be replaced by current mirror.
[0038] The adjustable current source I1 is a P-tube current mirror, and the magnitude of the current of the adjustable current source I1 is linearly related to the ramp control signal ctrl1; the adjustable current source I2 is an N-tube current mirror, and the magnitude of the current of the adjustable current source I2 is linearly related to the ramp control signal ctrl2.
[0039] The delay module includes a PMOS tube P1, an NMOS tube N4 and an inverter INV1. The gate of the PMOS tube P1 is connected to the gate of the NMOS tube N4 and serves as the input of the delay module. The drain of the PMOS tube P1 is connected to the drain of the NMOS tube N4 and the input of the inverter INV1. The source of the PMOS tube P1 is connected to the power supply VDD, the source of the NMOS tube N4 is grounded, and the output of the inverter INV1 outputs a pulse signal TXD. The PMOS tube P1, the NMOS tube N4 and the inverter INV1 form a delay circuit to shape the delay signal TXN into a pulse signal TXD. The width-to-length ratio of the PMOS tube P1 is much smaller than that of the NNMOS tube N4.
[0040] The storage medium stores a coding value, and the ramp control signal ctrl1 and the ramp control signal ctrl2 are changed by changing the coding value.
[0041] The pull-up circuit includes a resistor R1 and a diode D2. One end of the resistor R1 is connected to the power supply VBAT, the other end of the resistor R1 is connected to the anode of the diode D2, and the cathode of the diode D2 serves as the output end of the pull-up circuit.
[0042] The load includes a load resistor RBUS and a load capacitor CBUS. One end of the load resistor RBUS is connected to a power supply VBAT. The other end of the load resistor RBUS is connected to one end of the load capacitor CBUS and serves as an input end of the load. The other end of the load capacitor CBUS is grounded.
[0043] The high-voltage operational amplifier, NMOS tube N1, NMOS tube N2 and diode D1 form a negative feedback loop with driving capability. NMOS tube N1 is a high-voltage NMOS tube, used as a switch tube, and keeps TXD high during slope modulation to keep it turned on and enable the slope modulation loop. According to the virtual short and virtual open characteristics of the operational amplifier, the slope of the LIN bus is consistent with the slope of the ramp signal.
[0044] Through the above design ideas, a slope control circuit based on LIN bus signals can be realized, which can not only effectively reduce the EMI problem caused by rapid voltage changes, but also improve the overall control accuracy and reliability of the system.
[0045] like Figure 4 As shown in the figure, its working principle is: the required LIN bus rising and falling slopes are determined according to the EMC standard and the current working conditions. Then, the transceiver receives the TX signal and generates a ramp control signal; the ramp signal is reflected to the LIN bus through a negative feedback loop, thereby controlling the LIN bus slope, and the LIN bus slope is consistent with the ramp signal slope. Use an oscilloscope to measure the LIN bus signal time slope to see if it meets the EMC standard and the LIN protocol standard. If it does, it means that the currently stored programming signals ctrl0 and ctrl1 meet the requirements and solidify the programming information. It can be solidified by software or hardware. If it does not meet the requirements, change the storage medium, modify the control signals ctr1 and ctrl2, and adjust the capacitor charging and discharging current to change the slope of the ramp signal, thereby changing the slope of the LIN bus. Measure again until the standard requirements are met.
[0046] The present invention can dynamically adjust the slope control parameters and adjust the bus slope through a feedback mechanism to adapt to different working environments and further optimize EMI performance and system stability.
[0047] A control method for a LIN control circuit with adjustable slope comprises the following steps:
[0048] When the LIN bus state control signal TX changes from a high level to a low level, the PMOS tube P2 is turned on, and the adjustable current source I1 charges the Miller capacitor C1 through the PMOS tube P2.
[0049] During the time t0-t1, the adjustable current source I1 charges the gate terminal of the NMOS tube N3 through the PMOS tube P2, and the voltage of the delay signal TXN gradually rises. When the delay signal TXN rises to the threshold voltage of the NMOS tube N4, the NMOS tube N4 starts to pull down to make the drain of the NMOS tube a low level, and after passing through the inverter INV1, the pulse signal TXD is pulled up to the power supply VDD, the high-voltage NMOS tube N1 is turned on, and the negative feedback loop drive circuit starts to work.
[0050] During the time period t1-t2, the delay signal TXN continues to rise. When the delay signal TXN rises to the threshold voltage of the NMOS tube N3, the NMOS tube N3 is turned on and continues to rise to the Miller platform voltage.
[0051] During the time period t2-t3, due to the existence of Miller capacitor C1, the gate-source voltage of NMOS tube N3 remains unchanged, that is, the delay signal TXN remains unchanged, and the drain voltage of NMOS tube N3 begins to decrease, that is, the voltage of ramp signal SLOPE begins to decrease, and the voltage decrease slope of ramp signal SLOPE is determined by I1 / C1.
[0052] The voltage of the LIN bus signal LININ follows the voltage change of the ramp signal SLOPE through a negative feedback loop, and the voltage slope of the LIN bus signal LININ is equal to the voltage slope of the ramp signal SLOPE.
[0053] During the time period t3-t4, the delay signal TXN continues to rise to VDD.
[0054] The time t4-t5 is the normal and stable operation time of the circuit.
[0055] When the LIN bus state control signal TX changes from a low level to a high level, the NMOS tube N5 is turned on, and the adjustable current source I2 discharges the Miller capacitor C1 through the NMOS tube N5.
[0056] During the time period t5-t6, the delay signal TXN drops from the power supply VDD to the Miller platform voltage.
[0057] During the time period t6-t7, the delay signal TXN remains unchanged, and the voltage of the ramp signal SLOPE gradually increases. The voltage of the ramp signal SLOPE and the voltage rising slope of the LIN bus signal LININ are determined by I2 / C1.
[0058] When TX=1, the LIN bus signal LININ is high, which is a recessive state; when TX=0, the LIN bus signal LININ is low, which is a dominant state.
[0059] The slope formula of the ramp signal SLOPE and the LIN bus signal LININ, rising slope:
[0060]
[0061] Downward slope:
[0062] .
[0063] The slope control process of the present invention is further explained below by using specific examples.
[0064] Determine the required LIN bus rise and fall slopes based on EMC standards and current operating conditions.
[0065] SR_rise=0.5V / us, SR_fall=0.5V / us; default values Ctr1=N1=10, I0=0.1uA, I1=N1*I0=1uA; Ctr2=N2=10, I0=0.1uA, I2=N2*I0=1uA; C1=1pF.
[0066] The transceiver receives the TX signal and generates a ramp control signal, which is then reflected on the LIN bus.
[0067] Use an oscilloscope to measure the slope of the LIN bus signal to see if it meets the EMC standard and the LIN protocol standard; measure SR_rise=1V / us, SR_fall=1V / us, which does not meet the requirements.
[0068] To change the storage medium, modify Ctrl1=5, Ctr2=5.
[0069] The transceiver receives the TX signal and generates a ramp control signal, which is then reflected on the LIN bus.
[0070] Use an oscilloscope to measure the slope of the LIN bus signal, and measure SR_rise=0.5V / us, SR_fall=0.5V / us, which meets the requirements.
[0071] Solidify the storage medium through hardware to fix Ctrl1=5, Ctr2=5; or store Ctrl1=5, Ctr2=5 through software calling.
[0072] The present invention starts with the analysis of the requirements for compliance with EMC standards, and goes through the process of signal reception, generation of ramp control signals, and adjusting the current by changing the programming value to control the bus slope. Finally, it verifies whether the bus signal slope meets the standard, and accordingly makes corresponding test results to update the storage medium. The bus slope can be flexibly adjusted according to different working conditions, and has stronger adaptability.
[0073] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement made to the above embodiments without departing from the content of the technical solution of the present invention, based on the technical essence of the present invention, within the spirit and principles of the present invention, still fall within the protection scope of the technical solution of the present invention.
Claims
1. A LIN control circuit with adjustable slope, characterized in that: The invention comprises a slope control circuit, a pull-up circuit and a load, wherein the output end of the slope control circuit is connected to the output end of the pull-up circuit and the input end of the load, the slope control circuit comprises a storage medium, a slope generating module, a delay module, a high-voltage operational amplifier, an NMOS tube N1, an NMOS tube N2 and a diode D1, the first output end of the storage medium generates a slope control signal ctrl1 and is connected to the first input end of the slope generating module, the second output end of the storage medium generates a slope control signal ctrl2 and is connected to the second input end of the slope generating module, the third input end of the slope generating module is connected to the LIN bus state control signal TX, the first output end of the slope generating module is connected to the LIN bus state control signal TX, and the second output end of the slope generating module is connected to the LIN bus state control signal TX. The output end generates a ramp signal SLOPE and is connected to the reverse input end of the high-voltage operational amplifier. The second output end of the ramp generating module generates a delay signal TXN and is connected to the input end of the delay module. The output end of the delay module is connected to the gate of the NMOS tube N1. The drain of the NMOS tube N1 is connected to the cathode of the diode D1. The anode of the diode D1 is connected to the non-inverting input end of the high-voltage operational amplifier and is connected to the LIN bus signal LININ as the output end of the slope control circuit. The source of the NMOS tube N1 is connected to the drain of the NMOS tube N2. The source of the NMOS tube N2 is grounded. The gate of the NMOS tube N2 is connected to the output end of the high-voltage operational amplifier. The slope generating module comprises an adjustable current source I1, an adjustable current source I2, a PMOS tube P2, an NMOS tube N5, an NMOS tube N3, a Miller capacitor C1 and a resistor R3, the control end of the adjustable current source I1 serves as a first input end of the slope generating module and is connected to a slope control signal ctrl1, the control end of the adjustable current source I2 serves as a second input end of the slope generating module and is connected to a slope control signal ctrl2, one end of the adjustable current source I1 is connected to a power supply VDD, the other end of the adjustable current source I1 is connected to a source of the PMOS tube P2, the gate of the PMOS tube P2 is connected to a gate of the NMOS tube N5 and serves as the slope generating module. The third input terminal of the block inputs the LIN bus state control signal TX, the source of the NMOS tube N5 is connected to one end of the adjustable current source I2, the other end of the adjustable current source I2 is grounded, the drain of the PMOS tube P2 is connected to the drain of the NMOS tube N5, one end of the Miller capacitor C1 and the gate of the NMOS tube N3 and serves as the second output terminal of the ramp generation module to output the delay signal TXN, the other end of the Miller capacitor C1 is connected to one end of the resistor R3 and the drain of the NMOS tube N3 and serves as the first output terminal of the ramp generation module to output the ramp signal SLOPE, the other end of the resistor R3 is connected to the power supply VBAT, and the source of the NMOS tube N3 is grounded; The delay module comprises a PMOS tube P1, an NMOS tube N4 and an inverter INV1, the gate of the PMOS tube P1 is connected to the gate of the NMOS tube N4 and serves as the input end of the delay module, the drain of the PMOS tube P1 is connected to the drain of the NMOS tube N4 and the input end of the inverter INV1, the source of the PMOS tube P1 is connected to the power supply VDD, the source of the NMOS tube N4 is grounded, and the output end of the inverter INV1 outputs a pulse signal TXD; the PMOS tube P1, the NMOS tube N4 and the inverter INV1 constitute a delay circuit, and the delay signal TXN is shaped into a pulse signal TXD, wherein the width-to-length ratio of the PMOS tube P1 is much smaller than the width-to-length ratio of the NMOS tube N4; The storage medium stores the coding value, and the slope control signal ctrl1 and the slope control signal ctrl2 are changed by changing the coding value; the high-voltage operational amplifier, the NMOS tube N1, the NMOS tube N2 and the diode D1 form a negative feedback loop with driving capability.
2. The LIN control circuit with adjustable slope according to claim 1, characterized in that: The adjustable current source I1 is a P-tube current mirror, and the current of the adjustable current source I1 is linearly related to the ramp control signal ctrl1; the adjustable current source I2 is an N-tube current mirror, and the current of the adjustable current source I2 is linearly related to the ramp control signal ctrl2.
3. The LIN control circuit with adjustable slope according to claim 1, characterized in that: The pull-up circuit includes a resistor R1 and a diode D2. One end of the resistor R1 is connected to a power supply VBAT, the other end of the resistor R1 is connected to an anode of the diode D2, and a cathode of the diode D2 serves as an output end of the pull-up circuit.
4. The LIN control circuit with adjustable slope according to claim 1, characterized in that: The load comprises a load resistor RBUS and a load capacitor CBUS, one end of the load resistor RBUS is connected to a power supply VBAT, the other end of the load resistor RBUS is connected to one end of the load capacitor CBUS and serves as an input end of the load, and the other end of the load capacitor CBUS is grounded.
5. The LIN control circuit with adjustable slope according to claim 1, characterized in that: The high-voltage operational amplifier, the NMOS transistor N1, the NMOS transistor N2 and the diode D1 form a negative feedback loop with driving capability.
6. A control method for a LIN control circuit with adjustable slope according to any one of claims 1 to 5, characterized in that The following steps are involved: When the LIN bus status control signal TX changes from high level to low level, the PMOS tube P2 is turned on, and the adjustable current source I1 charges the Miller capacitor C1 through the PMOS tube P2; During the time t0-t1, the adjustable current source I1 charges the gate of the NMOS tube N3 through the PMOS tube P2, and the voltage of the delay signal TXN gradually rises. When the delay signal TXN rises to the threshold voltage of the NMOS tube N4, the NMOS tube N4 starts to pull down to make the drain of the NMOS tube low level, and after passing through the inverter INV1, the pulse signal TXD is pulled up to the power supply VDD, the high-voltage NMOS tube N1 is turned on, and the negative feedback loop drive circuit starts to work; During the time period t1-t2, the delay signal TXN continues to rise. When the delay signal TXN rises to the threshold voltage of the NMOS tube N3, the NMOS tube N3 is turned on and continues to rise to the Miller platform voltage. During the time t2-t3, due to the existence of Miller capacitor C1, the gate-source voltage of NMOS tube N3 remains unchanged, that is, the delay signal TXN remains unchanged, and the drain voltage of NMOS tube N3 begins to decrease, that is, the voltage of ramp signal SLOPE begins to decrease, and the voltage decrease slope of ramp signal SLOPE is determined by I1 / C1; The voltage of the LIN bus signal LININ follows the voltage change of the ramp signal SLOPE through a negative feedback loop, and the voltage slope of the LIN bus signal LININ is equal to the voltage slope of the ramp signal SLOPE; During the time t3-t4, the delay signal TXN continues to rise to VDD; When the LIN bus state control signal TX changes from low level to high level, the NMOS tube N5 is turned on, and the adjustable current source I2 discharges the Miller capacitor C1 through the NMOS tube N5; During the time period t5-t6, the delay signal TXN drops from the power supply VDD to the Miller platform voltage; During the time period t6-t7, the delay signal TXN remains unchanged, and the voltage of the ramp signal SLOPE gradually increases. The voltage of the ramp signal SLOPE and the voltage rising slope of the LIN bus signal LININ are determined by I2 / C1. When TX=1, the LIN bus signal LININ is high level, which is a recessive state; when TX=0, the LIN bus signal LININ is low level, which is a dominant state; The slope formula of the ramp signal SLOPE and the LIN bus signal LININ, rising slope: ; Downward slope: 。
Citation Information
Patent Citations
Monotonic ramp signal generating device and method based on latch
CN104716934A
Image sensor
CN115914866A
