CN117872903A - A slope control circuit and control method based on LIN bus signal control - Google Patents
A slope control circuit and control method based on LIN bus signal control Download PDFInfo
- Publication number
- CN117872903A CN117872903A CN202410067400.8A CN202410067400A CN117872903A CN 117872903 A CN117872903 A CN 117872903A CN 202410067400 A CN202410067400 A CN 202410067400A CN 117872903 A CN117872903 A CN 117872903A
- Authority
- CN
- China
- Prior art keywords
- voltage
- circuit
- lin
- control circuit
- switch
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24215—Scada supervisory control and data acquisition
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Electronic Switches (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
Description
技术领域Technical Field
本发明属于LIN总线信号控制技术领域,具体涉及一种基于LIN总线信号控制的斜率控制电路及其控制方法。The invention belongs to the technical field of LIN bus signal control, and in particular relates to a slope control circuit based on LIN bus signal control and a control method thereof.
背景技术Background technique
LIN(Local Interconnect Network局部连接网络)总线是基于UART/SCI(Universal Asynchronous Receiver-Transmitter/SerialCommunication Interface通用异步收发器/串行通信接口)的低成本的串行通讯协议。相对于CAN总线而言,LIN总线协议较为简单,对单片机的要求也并不高,基本的窗口就可以实现。作为CAN总线的辅助总线,LIN总线广泛应用于车门、车窗、车灯及中控锁等车身控制领域。LIN (Local Interconnect Network) bus is a low-cost serial communication protocol based on UART/SCI (Universal Asynchronous Receiver-Transmitter/Serial Communication Interface). Compared with CAN bus, LIN bus protocol is relatively simple, and the requirements for single-chip microcomputer are not high, and basic windows can be implemented. As an auxiliary bus of CAN bus, LIN bus is widely used in the field of body control such as doors, windows, lights and central locking.
通常LIN芯片会挂载在LIN总线上,用于监测LIN总线信号变化。LIN芯片的LIN引脚端口会从LIN总线上抽电流,以产生LIN总线电压的变化。Usually, a LIN chip is mounted on the LIN bus to monitor changes in LIN bus signals. The LIN pin port of the LIN chip draws current from the LIN bus to generate changes in the LIN bus voltage.
目前市场上大多数LIN总线的电压控制电路,是基于开环控制的原理设计的,这本质上是一种预估控制,并不能基于LIN芯片外部的LIN信号变化,做出对NMOS管栅极电压准确的响应,从而会出现LIN总线的电压上升沿和下降沿的速率不稳定。Currently, most LIN bus voltage control circuits on the market are designed based on the principle of open-loop control, which is essentially an estimated control and cannot accurately respond to the NMOS tube gate voltage based on the changes in the LIN signal outside the LIN chip, resulting in unstable rates of the voltage rise and fall of the LIN bus.
发明内容Summary of the invention
本发明的目的在于提供一种基于LIN总线信号控制的斜率控制电路及方法,能基于LIN芯片外部的LIN信号变化作出准确的响应,并且能使LIN总线电压上升沿和下降沿的速率保持恒定。The object of the present invention is to provide a slope control circuit and method based on LIN bus signal control, which can accurately respond to changes in LIN signals outside the LIN chip and keep the rates of the rising and falling edges of the LIN bus voltage constant.
为实现上述目的,本发明一种基于LIN总线信号控制的斜率控制电路包括电压采集电路、反馈控制电路、负载电路,负载电路通过LIN引脚与电压采集电路的输入端相连,电压采集电路用来采集LIN总线电压下降或者LIN总线电压上升时的电压;电压采集电路的输出端与反馈控制电路的输入端相连,反馈控制电路的输出端与LIN引脚相连;反馈控制电路用来控制LIN总线电压下降或上升时保持恒定速率。To achieve the above-mentioned purpose, the present invention provides a slope control circuit based on LIN bus signal control, comprising a voltage acquisition circuit, a feedback control circuit, and a load circuit. The load circuit is connected to the input end of the voltage acquisition circuit through a LIN pin. The voltage acquisition circuit is used to acquire the voltage when the LIN bus voltage drops or rises. The output end of the voltage acquisition circuit is connected to the input end of the feedback control circuit, and the output end of the feedback control circuit is connected to the LIN pin. The feedback control circuit is used to control the LIN bus voltage to maintain a constant rate when it drops or rises.
作为本发明进一步的方案:所述LIN总线电压下降时,所述电压采集电路包括采样保持电路S/HI、采样保持电路S/HII、电压跟随器VFI、电压跟随器VFII;电压跟随器VFI的正输入端与采样保持电路S/HI的一端相连,采样保持电路S/HI的另一端与LIN引脚相连;采样保持电路S/HI与采样保持电路S/HII并联,采样保持电路S/HII的输出端与电压跟随器VFII的正输入端相连;电压跟随器VFI的输出端与开关S1的一端相连;电压跟随器VFII的输出端与开关S2的一端相连;开关S1的另一端分别与电压采集电容C1的上极板、开关S4的一端相连;电压采集电容C1的下极板分别与开关S3的一端、开关S2的另一端相连,开关S3的另一端接地;开关S4的另一端与反馈控制电路中的运算放大器OPAI的正输入端相连;As a further solution of the present invention: when the LIN bus voltage drops, the voltage acquisition circuit includes a sampling and holding circuit S/HI, a sampling and holding circuit S/HII, a voltage follower VFI, and a voltage follower VFII; the positive input end of the voltage follower VFI is connected to one end of the sampling and holding circuit S/HI, and the other end of the sampling and holding circuit S/HI is connected to the LIN pin; the sampling and holding circuit S/HI is connected in parallel with the sampling and holding circuit S/HII, and the output end of the sampling and holding circuit S/HII is connected to the positive input end of the voltage follower VFII; the output end of the voltage follower VFI is connected to one end of the switch S1 ; the output end of the voltage follower VFII is connected to one end of the switch S2 ; the other end of the switch S1 is respectively connected to the upper plate of the voltage acquisition capacitor C1 and one end of the switch S4 ; the lower plate of the voltage acquisition capacitor C1 is respectively connected to one end of the switch S3 and the other end of the switch S2 , and the other end of the switch S3 is grounded; the other end of the switch S4 is connected to the positive input end of the operational amplifier OPAI in the feedback control circuit;
所述反馈控制电路包括运算放大器OPAI,运算放大器OPAI的负输入端接参考电压Ref_voltageI,运算放大器OPAI的输出端与可变电流源I1相连,可变电流源I1的输出端分别与电容C2的上极板、微电流源I2的输出端相连,电容C2的下极板接地,微电流源I2的输出端通过电阻R1分别与电容C3的上极板,NMOS管MI的栅极相连,电容C3的下极板接地,NMOS管MI的源极接地。The feedback control circuit includes an operational amplifier OPAI, a negative input terminal of the operational amplifier OPAI is connected to a reference voltage Ref_voltageI, an output terminal of the operational amplifier OPAI is connected to a variable current source I1 , an output terminal of the variable current source I1 is respectively connected to an upper plate of a capacitor C2 and an output terminal of a micro-current source I2 , a lower plate of the capacitor C2 is grounded, an output terminal of the micro-current source I2 is respectively connected to an upper plate of a capacitor C3 and a gate of an NMOS tube MI through a resistor R1 , a lower plate of the capacitor C3 is grounded, and a source of the NMOS tube MI is grounded.
作为本发明进一步的方案:所述NMOS管MI的栅极电压为GND,LIN总线电压为最高。As a further solution of the present invention: the gate voltage of the NMOS tube MI is GND, and the LIN bus voltage is the highest.
作为本发明进一步的方案:可变电流源I1、微电流源I2是一路很小的电流源,保证电容C3上电压一直在上升。As a further solution of the present invention: the variable current source I 1 and the micro current source I 2 are very small current sources, which ensure that the voltage on the capacitor C 3 is constantly rising.
作为本发明进一步的方案:所述LIN总线电压上升时,所述电压采集电路包括采样保持电路S/HIII、采样保持电路S/HIV、电压跟随器VFIII、电压跟随器VFIV;电压跟随器VFIII的正输入端与采样保持电路S/HIII的一端相连,采样保持电路S/HIII的另一端与LIN引脚相连;采样保持电路S/HIII与采样保持电路S/HIV并联,采样保持电路S/HIV的输出端与电压跟随器VFIV的正输入端相连;电压跟随器VFIII的输出端与开关S5的一端相连;电压跟随器VFIV的输出端与开关S6的一端相连;开关S5的另一端分别与电压采集电容C4的上极板、开关S7的一端相连;电压采集电容C4的下极板分别与开关S8的一端、开关S6的另一端相连,开关S8的另一端接地;开关S7的另一端与反馈控制电路中的运算放大器OPAII的正输入端相连;As a further solution of the present invention: when the LIN bus voltage rises, the voltage acquisition circuit includes a sampling and holding circuit S/HIII, a sampling and holding circuit S/HIV, a voltage follower VFIII, and a voltage follower VFIV; the positive input end of the voltage follower VFIII is connected to one end of the sampling and holding circuit S/HIII, and the other end of the sampling and holding circuit S/HIII is connected to the LIN pin; the sampling and holding circuit S/HIII is connected in parallel with the sampling and holding circuit S/HIV, and the output end of the sampling and holding circuit S/HIV is connected to the positive input end of the voltage follower VFIV; the output end of the voltage follower VFIII is connected to one end of the switch S5 ; the output end of the voltage follower VFIV is connected to one end of the switch S6 ; the other end of the switch S5 is respectively connected to the upper plate of the voltage acquisition capacitor C4 and one end of the switch S7 ; the lower plate of the voltage acquisition capacitor C4 is respectively connected to one end of the switch S8 and the other end of the switch S6 , and the other end of the switch S8 is grounded; the other end of the switch S7 is connected to the positive input end of the operational amplifier OPAII in the feedback control circuit;
反馈控制电路包括运算放大器OPAII,运算放大器OPAII的输出端与可变电流源I3相连,可变电流源I3与微电流源I4、电容C5并联后串联电阻R2,电阻R2的另一端一路通过电容C6接地,一路与NMOS管MII的栅极相连,NMOS管MII的源极接地,NMOS管MII的漏极连接于LIN引脚与电压采集电路之间;电容C5的下极板接地。The feedback control circuit includes an operational amplifier OPAII, the output end of the operational amplifier OPAII is connected to a variable current source I3 , the variable current source I3 is connected in parallel with a micro-current source I4 and a capacitor C5 , and then connected in series with a resistor R2 , the other end of the resistor R2 is connected to the ground through a capacitor C6 , and is connected to the gate of the NMOS tube MII, the source of the NMOS tube MII is grounded, and the drain of the NMOS tube MII is connected between the LIN pin and the voltage collection circuit; the lower plate of the capacitor C5 is grounded.
作为本发明进一步的方案:所述NMOS管MII的栅极电压为VDD,LIN总线电压为最低。As a further solution of the present invention: the gate voltage of the NMOS tube MII is VDD, and the LIN bus voltage is the lowest.
作为本发明进一步的方案:可变电流源I3、微电流源I4是一路很小的电流源,保证电容C6上电压一直被下拉。As a further solution of the present invention: the variable current source I 3 and the micro current source I 4 are very small current sources, which ensure that the voltage on the capacitor C 6 is always pulled down.
作为本发明进一步的方案:所述负载电路包括负载电阻Rload,负载电阻Rload与负载电容Cload串联后接地,LIN引脚连接于负载电阻Rload与负载电容Cload之间。As a further solution of the present invention: the load circuit comprises a load resistor R load , the load resistor R load and the load capacitor C load are connected in series and then grounded, and the LIN pin is connected between the load resistor R load and the load capacitor C load .
一种基于LIN总线信号控制的斜率控制方法,包括以下步骤:A slope control method based on LIN bus signal control comprises the following steps:
Step1:电压采集电路通过不同开关的闭合与关闭控制电压采集电容分别采集上极板、下极板上的电压,从而得到LIN总线电压的电压差;Step 1: The voltage collection circuit controls the voltage collection capacitor by closing and closing different switches to collect the voltage on the upper plate and the lower plate respectively, thereby obtaining the voltage difference of the LIN bus voltage;
Step2:反馈控制电路将所述电压差与参考电压进行比较,根据比较结果,来控制NMOS管的下拉电流能力;Step 2: The feedback control circuit compares the voltage difference with the reference voltage, and controls the pull-down current capability of the NMOS tube according to the comparison result;
Step3:多次重复Step1、Step2,节拍由片内时钟确定,采集次数依据LIN芯片内时钟频率,若时钟频率高,则可以实现较多次的采集。Step 3: Repeat Step 1 and Step 2 multiple times. The beat is determined by the internal clock of the chip. The number of acquisitions depends on the clock frequency of the LIN chip. If the clock frequency is high, more acquisitions can be achieved.
与现有技术相比,本发明的有益效果如下:本发明通过采样保持电路S/H,并配合电压采集电容,可以取出LIN总线上电压在采集周期内电压的变化,能基于LIN芯片外部的LIN信号变化作出准确的响应,若采集周期较短,可以近似认为对LIN总线电压进行了微分操作;使用了闭环反馈控制电路能使LIN总线电压上升沿和下降沿的速率保持恒定;另外本发明的电路简单,成本低。Compared with the prior art, the present invention has the following beneficial effects: the present invention can obtain the voltage change on the LIN bus within the acquisition period through the sampling and holding circuit S/H and in conjunction with the voltage acquisition capacitor, and can make an accurate response based on the LIN signal change outside the LIN chip. If the acquisition period is short, it can be approximately considered that the LIN bus voltage is differentially operated; the use of a closed-loop feedback control circuit can keep the rates of the rising and falling edges of the LIN bus voltage constant; in addition, the circuit of the present invention is simple and low in cost.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明的一种基于LIN总线信号控制的斜率控制电路框图。FIG. 1 is a block diagram of a slope control circuit based on LIN bus signal control according to the present invention.
图2是本发明的LIN总线电压下降时的电路图。FIG. 2 is a circuit diagram of the present invention when the LIN bus voltage drops.
图3是本发明的LIN总线电压上升时的电路图。FIG3 is a circuit diagram of the present invention when the LIN bus voltage rises.
图4是本发明的基于LIN总线信号控制的斜率控制方法的流程图。FIG. 4 is a flow chart of a slope control method based on LIN bus signal control according to the present invention.
图中:1、电压采集电路,2、负载电路,3、反馈控制电路。In the figure: 1. Voltage acquisition circuit, 2. Load circuit, 3. Feedback control circuit.
具体实施方式Detailed ways
下面结合附图对本发明作进一步说明。The present invention will be further described below in conjunction with the accompanying drawings.
如图1所示,一种基于LIN总线信号控制的斜率控制电路包括电压采集电路1、反馈控制电路2、负载电路3,负载电路2通过LIN引脚与电压采集电路1相连,电压采集电路1用来采集LIN总线下降或者LIN总线电压上升时的电压;电压采集电路1的输出端与反馈控制电路2的输入端相连,反馈控制电路2的输出端与LIN引脚相连;反馈控制电路2用来控制LIN总线电压下降或者上升时保持恒定速率。As shown in FIG1 , a slope control circuit based on LIN bus signal control includes a voltage acquisition circuit 1, a feedback control circuit 2, and a load circuit 3. The load circuit 2 is connected to the voltage acquisition circuit 1 through a LIN pin. The voltage acquisition circuit 1 is used to acquire the voltage when the LIN bus voltage drops or rises. The output end of the voltage acquisition circuit 1 is connected to the input end of the feedback control circuit 2, and the output end of the feedback control circuit 2 is connected to the LIN pin. The feedback control circuit 2 is used to control the LIN bus voltage to maintain a constant rate when it drops or rises.
如图2所示,LIN总线电压下降时的电路图,默认前提条件是上一次LIN总线电压拉到最高,NMOS管MI的栅极电压相对应的被拉到最低,即GND。在此基础上若LIN总线电压下降,则需要逐渐拉高NMOS管MI栅极电压。As shown in Figure 2, the circuit diagram when the LIN bus voltage drops, the default premise is that the last time the LIN bus voltage was pulled to the highest, the gate voltage of the NMOS tube MI was correspondingly pulled to the lowest, that is, GND. On this basis, if the LIN bus voltage drops, the gate voltage of the NMOS tube MI needs to be gradually increased.
电压采集电路1包括采样保持电路S/HI、采样保持电路S/HII、电压跟随器VFI、电压跟随器VFII;电压跟随器VFI的正输入端与采样保持电路S/HI的一端相连,采样保持电路S/HI的另一端与LIN引脚相连;采样保持电路S/HI与采样保持电路S/HII并联,采样保持电路S/HII的输出端与电压跟随器VFII的正输入端相连;电压跟随器VFI的输出端与开关S1的一端相连;电压跟随器VFII的输出端与开关S2的一端相连;开关S1的另一端分别与电压采集电容C1的上极板、开关S4的一端相连;电压采集电容C1的下极板分别与开关S3的一端、开关S2的另一端相连,开关S3的另一端接地;开关S4的另一端与反馈控制电路中的运算放大器OPAI的正输入端相连;The voltage acquisition circuit 1 includes a sampling and holding circuit S/HI, a sampling and holding circuit S/HII, a voltage follower VFI, and a voltage follower VFII; the positive input end of the voltage follower VFI is connected to one end of the sampling and holding circuit S/HI, and the other end of the sampling and holding circuit S/HI is connected to the LIN pin; the sampling and holding circuit S/HI is connected in parallel with the sampling and holding circuit S/HII, and the output end of the sampling and holding circuit S/HII is connected to the positive input end of the voltage follower VFII; the output end of the voltage follower VFI is connected to one end of the switch S1 ; the output end of the voltage follower VFII is connected to one end of the switch S2 ; the other end of the switch S1 is respectively connected to the upper plate of the voltage acquisition capacitor C1 and one end of the switch S4 ; the lower plate of the voltage acquisition capacitor C1 is respectively connected to one end of the switch S3 and the other end of the switch S2 , and the other end of the switch S3 is grounded; the other end of the switch S4 is connected to the positive input end of the operational amplifier OPAI in the feedback control circuit;
反馈控制电路3包括运算放大器OPAI,运算放大器OPAI的负输入端接参考电压Ref_voltageI,运算放大器OPAI的输出端与可变电流源I1相连,可变电流源I1的输出端分别与电容C2的上极板、微电流源I2的输出端相连,电容C2的下极板接地,微电流源I2的输出端通过电阻R1分别与电容C3的上极板,NMOS管MI的栅极相连,电容C3的下极板接地,NMOS管MI的源极接地。The feedback control circuit 3 includes an operational amplifier OPAI, a negative input terminal of the operational amplifier OPAI is connected to a reference voltage Ref_voltageI, an output terminal of the operational amplifier OPAI is connected to a variable current source I1 , an output terminal of the variable current source I1 is respectively connected to an upper plate of a capacitor C2 and an output terminal of a micro-current source I2 , a lower plate of the capacitor C2 is grounded, an output terminal of the micro-current source I2 is respectively connected to an upper plate of a capacitor C3 and a gate of an NMOS tube MI through a resistor R1 , a lower plate of the capacitor C3 is grounded, and a source of the NMOS tube MI is grounded.
LIN总线电压下降时的控制方法,包括以下步骤:The control method when the LIN bus voltage drops includes the following steps:
数字逻辑控制开关S1、开关S2、开关S3、开关S4的关闭与开启。The digital logic controls the closing and opening of the switch S 1 , the switch S 2 , the switch S 3 , and the switch S 4 .
Step1:开关S1、S3闭合,开关S2、S4断开,电压采集电容C1的上极板采集LIN总线电压U1;Step 1: Switches S 1 and S 3 are closed, switches S 2 and S 4 are opened, and the upper plate of the voltage collection capacitor C 1 collects the LIN bus voltage U 1 ;
Step2:开关S1、S2闭合,开关S3、S4断开,电压采集电容C1的下极板采集LIN总线电压U2;Step 2: Switches S 1 and S 2 are closed, switches S 3 and S 4 are opened, and the lower plate of the voltage collection capacitor C 1 collects the LIN bus voltage U 2 ;
Step3:开关S1、S2断开、S3、S4闭合。电压采集电容C1上极板即为两次采集的LIN总线电压差ΔU1,其中ΔU1=U1-U2,该电压差ΔU1被读入。Step 3: Switches S 1 and S 2 are opened, and switches S 3 and S 4 are closed. The upper plate of the voltage acquisition capacitor C 1 is the LIN bus voltage difference ΔU 1 acquired twice, where ΔU 1 =U 1 -U 2 , and the voltage difference ΔU 1 is read in.
Step4:电压差ΔU1与参考电压Ref_voltageI进行比较,若高于参考电压Ref_voltageI,则可变电流源I1的充电电流减少;若低于参考电压Ref_voltageI,则可变电流源I1的电流加大,进而控制NMOS管MI下拉管的下拉电流能力。Step 4: The voltage difference ΔU1 is compared with the reference voltage Ref_voltageI. If it is higher than the reference voltage Ref_voltageI, the charging current of the variable current source I1 is reduced; if it is lower than the reference voltage Ref_voltageI, the current of the variable current source I1 is increased, thereby controlling the pull-down current capability of the NMOS tube MI pull-down tube.
通过这样的反馈控制,实现LIN总线下降电压的恒定速率。Through such feedback control, a constant rate of voltage drop of the LIN bus is achieved.
在LIN总线电压下降过程中,会多次重复这个过程,节拍由片内时钟给定,采集次数依据LIN芯片内时钟频率,若时钟频率高,则可以实现较多次的采集。During the process of LIN bus voltage dropping, this process will be repeated many times. The beat is given by the internal clock of the chip, and the number of acquisitions depends on the clock frequency of the LIN chip. If the clock frequency is high, more acquisitions can be achieved.
图2中的可变电流源I1、微电流源I2是一路很小的电流源,保证电容C3上电压一直在上升。The variable current source I 1 and the micro current source I 2 in FIG. 2 are very small current sources, which ensure that the voltage on the capacitor C 3 keeps rising.
如图3所示,LIN总线电压上升时的电路图,默认条件是NMOS管MII栅极电压是VDD,VDD是片内最高电压,LIN总线电压为最低。As shown in FIG3 , the circuit diagram when the LIN bus voltage rises, the default condition is that the gate voltage of the NMOS tube MII is VDD, VDD is the highest voltage in the chip, and the LIN bus voltage is the lowest.
电压采集电路1包括采样保持电路S/HIII、采样保持电路S/HIV、电压跟随器VFIII、电压跟随器VFIV;电压跟随器VFIII的正输入端与采样保持电路S/HIII的一端相连,采样保持电路S/HIII的另一端与LIN引脚相连;采样保持电路S/HIII与采样保持电路S/HIV并联,采样保持电路S/HIV的输出端与电压跟随器VFIV的正输入端相连;电压跟随器VFIII的输出端与开关S5的一端相连;电压跟随器VFIV的输出端与开关S6的一端相连;开关S5的另一端分别与电压采集电容C4的上极板、开关S7的一端相连;电压采集电容C4的下极板分别与开关S8的一端、开关S6的另一端相连,开关S8的另一端接地;开关S7的另一端与反馈控制电路3中的运算放大器OPAII的正输入端相连;The voltage acquisition circuit 1 includes a sampling and holding circuit S/HIII, a sampling and holding circuit S/HIV, a voltage follower VFIII, and a voltage follower VFIV; the positive input end of the voltage follower VFIII is connected to one end of the sampling and holding circuit S/HIII, and the other end of the sampling and holding circuit S/HIII is connected to the LIN pin; the sampling and holding circuit S/HIII is connected in parallel with the sampling and holding circuit S/HIV, and the output end of the sampling and holding circuit S/HIV is connected to the positive input end of the voltage follower VFIV; the output end of the voltage follower VFIII is connected to one end of the switch S5 ; the output end of the voltage follower VFIV is connected to one end of the switch S6 ; the other end of the switch S5 is respectively connected to the upper plate of the voltage acquisition capacitor C4 and one end of the switch S7 ; the lower plate of the voltage acquisition capacitor C4 is respectively connected to one end of the switch S8 and the other end of the switch S6 , and the other end of the switch S8 is grounded; the other end of the switch S7 is connected to the positive input end of the operational amplifier OPAII in the feedback control circuit 3;
反馈控制电路3包括运算放大器OPAII,运算放大器OPAII的输出端与可变电流源I3相连,可变电流源I3与微电流源I4、电容C5并联后串联电阻R2,电阻R2的另一端一路通过电容C6接地,一路与NMOS管MII的栅极相连,NMOS管MII的源极接地,NMOS管MII的漏极连接于LIN引脚与电压采集电路之间;电容C5的下极板接地;The feedback control circuit 3 includes an operational amplifier OPAII, the output end of the operational amplifier OPAII is connected to a variable current source I3 , the variable current source I3 is connected in parallel with a micro current source I4 and a capacitor C5 , and then connected in series with a resistor R2 , the other end of the resistor R2 is connected to the ground through a capacitor C6 , and the other end is connected to the gate of the NMOS tube MII, the source of the NMOS tube MII is grounded, and the drain of the NMOS tube MII is connected between the LIN pin and the voltage collection circuit; the lower plate of the capacitor C5 is grounded;
负载电路2位于LIN芯片外部,如图2或图3所示,负载电路包括负载电阻Rload,负载电阻Rload与负载电容Cload串联后接地,LIN引脚连接于负载电阻Rload与负载电容Cload之间。The load circuit 2 is located outside the LIN chip, as shown in FIG. 2 or FIG. 3 , and includes a load resistor R load , which is connected in series with a load capacitor C load and then grounded. The LIN pin is connected between the load resistor R load and the load capacitor C load .
LIN总线电压上升时,默认条件是NMOS管MII的栅极到VDD,VDD是片内最高电压,其控制方法,包括以下步骤:When the LIN bus voltage rises, the default condition is that the gate of the NMOS tube MII is to VDD, and VDD is the highest voltage in the chip. The control method includes the following steps:
数字逻辑控制开关S5、S6、S7、S8的关闭与开启。Digital logic controls the closing and opening of switches S 5 , S 6 , S 7 , and S 8 .
Step1:开关S6闭合,开关S5、S7、S8断开,电压采集电容C4的下极板采集LIN总线电压u1;Step 1: Switch S 6 is closed, switches S 5 , S 7 , and S 8 are opened, and the lower plate of the voltage collection capacitor C 4 collects the LIN bus voltage u 1 ;
Step2:开关S5、S6闭合,开关S7、S8断开,电压采集电容C4的上极板采集LIN总线电压u2;Step 2: Switches S 5 and S 6 are closed, switches S 7 and S 8 are opened, and the upper plate of the voltage collection capacitor C 4 collects the LIN bus voltage u 2 ;
Step3:开关S7、S8闭合,开关S5、S6断开,电压采集电容C4上极板即为两次采集的LIN线电压差Δu1,即Δu1=u1-u2,该电压差Δu1被读入,电压差Δu1与参考电压Ref_voltageII进行比较,若超过参考电压,则可变电流源的下拉电流减少;若低于参考电压,则可变电流源I3的电流加大,进而控制NMOS管MII下拉管的下拉电流能力。Step 3: Switches S 7 and S 8 are closed, switches S 5 and S 6 are opened, and the upper plate of the voltage collection capacitor C 4 is the LIN line voltage difference Δu 1 collected twice, that is, Δu 1 =u 1 -u 2 . The voltage difference Δu 1 is read in and compared with the reference voltage Ref_voltageII. If it exceeds the reference voltage, the pull-down current of the variable current source is reduced; if it is lower than the reference voltage, the current of the variable current source I 3 is increased, thereby controlling the pull-down current capability of the NMOS tube MII pull-down tube.
通过这样的反馈控制,实现LIN总线线电压上升沿的恒定速率。Through such feedback control, a constant rate of rise of the LIN bus line voltage is achieved.
在LIN总线电压上升过程中,会多次重复这个过程,节拍由片内时钟给定,采集次数依据LIN芯片内时钟频率,若时钟频率高,则可以实现较多次的采集。During the rising process of LIN bus voltage, this process will be repeated many times. The beat is given by the internal clock of the chip. The number of acquisitions depends on the clock frequency of the LIN chip. If the clock frequency is high, more acquisitions can be achieved.
可变电流源I3、微电流源I4是一路很小的电流源,保证电容C6上电压一直被下拉。The variable current source I 3 and the micro current source I 4 are very small current sources, which ensure that the voltage on the capacitor C 6 is always pulled down.
本发明通过采样保持电路S/H,并配合电压采集电容,可以取出LIN总线上电压在采集周期内电压的变化,能基于LIN芯片外部的LIN信号变化作出准确的响应,若采集周期较短,可以近似认为对LIN总线电压进行了微分操作;使用了闭环反馈控制电路能使LIN总线电压上升沿和下降沿的速率保持恒定;另外本发明的电路简单,成本低。The present invention uses a sampling and holding circuit S/H and cooperates with a voltage acquisition capacitor to obtain the voltage change on the LIN bus within a collection period, and can make an accurate response based on the LIN signal change outside the LIN chip. If the collection period is short, it can be approximately considered that a differential operation is performed on the LIN bus voltage; a closed-loop feedback control circuit is used to keep the rates of the rising and falling edges of the LIN bus voltage constant; in addition, the circuit of the present invention is simple and low in cost.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410067400.8A CN117872903B (en) | 2024-01-17 | 2024-01-17 | A slope control circuit and control method based on LIN bus signal control |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410067400.8A CN117872903B (en) | 2024-01-17 | 2024-01-17 | A slope control circuit and control method based on LIN bus signal control |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117872903A true CN117872903A (en) | 2024-04-12 |
| CN117872903B CN117872903B (en) | 2024-07-12 |
Family
ID=90586288
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410067400.8A Active CN117872903B (en) | 2024-01-17 | 2024-01-17 | A slope control circuit and control method based on LIN bus signal control |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117872903B (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118400221A (en) * | 2024-05-30 | 2024-07-26 | 中国矿业大学 | A low-latency LIN bus control circuit and control method |
| CN119781331A (en) * | 2024-12-11 | 2025-04-08 | 上海贝岭股份有限公司 | Control circuit for LIN signal slope |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6028451A (en) * | 1997-12-31 | 2000-02-22 | Intel Corporation | Method and apparatus for topology dependent slew rate control |
| CN101512995A (en) * | 2006-08-30 | 2009-08-19 | Nxp股份有限公司 | Circuit arrangement, local interconnect network (lin) comprising such circuit arrangement as well as method for processing input signals of the lin |
| US20100166085A1 (en) * | 2006-05-24 | 2010-07-01 | Citibank N.A. | Lin network, integrated circuit and method therefor |
| CN202486528U (en) * | 2011-12-30 | 2012-10-10 | 意法半导体研发(上海)有限公司 | Driver circuit |
| CN110224951A (en) * | 2018-03-01 | 2019-09-10 | 英飞凌科技股份有限公司 | Circuit bus driver |
| CN113474998A (en) * | 2018-12-28 | 2021-10-01 | 索菲克斯公司 | Driver for a shared bus, in particular a LIN bus |
| CN113839844A (en) * | 2020-06-24 | 2021-12-24 | 赛普拉斯半导体公司 | Local Interconnect Network (LIN) driver circuit |
| CN116032684A (en) * | 2022-12-22 | 2023-04-28 | 上海川土微电子有限公司 | LIN bus driving circuit and device |
| CN116028400A (en) * | 2022-12-30 | 2023-04-28 | 思瑞浦微电子科技(苏州)股份有限公司 | Signal output control circuit and LIN transceiver |
-
2024
- 2024-01-17 CN CN202410067400.8A patent/CN117872903B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6028451A (en) * | 1997-12-31 | 2000-02-22 | Intel Corporation | Method and apparatus for topology dependent slew rate control |
| US20100166085A1 (en) * | 2006-05-24 | 2010-07-01 | Citibank N.A. | Lin network, integrated circuit and method therefor |
| CN101512995A (en) * | 2006-08-30 | 2009-08-19 | Nxp股份有限公司 | Circuit arrangement, local interconnect network (lin) comprising such circuit arrangement as well as method for processing input signals of the lin |
| CN202486528U (en) * | 2011-12-30 | 2012-10-10 | 意法半导体研发(上海)有限公司 | Driver circuit |
| CN110224951A (en) * | 2018-03-01 | 2019-09-10 | 英飞凌科技股份有限公司 | Circuit bus driver |
| CN113474998A (en) * | 2018-12-28 | 2021-10-01 | 索菲克斯公司 | Driver for a shared bus, in particular a LIN bus |
| CN113839844A (en) * | 2020-06-24 | 2021-12-24 | 赛普拉斯半导体公司 | Local Interconnect Network (LIN) driver circuit |
| CN116032684A (en) * | 2022-12-22 | 2023-04-28 | 上海川土微电子有限公司 | LIN bus driving circuit and device |
| CN116028400A (en) * | 2022-12-30 | 2023-04-28 | 思瑞浦微电子科技(苏州)股份有限公司 | Signal output control circuit and LIN transceiver |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118400221A (en) * | 2024-05-30 | 2024-07-26 | 中国矿业大学 | A low-latency LIN bus control circuit and control method |
| CN119781331A (en) * | 2024-12-11 | 2025-04-08 | 上海贝岭股份有限公司 | Control circuit for LIN signal slope |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117872903B (en) | 2024-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN117872903B (en) | A slope control circuit and control method based on LIN bus signal control | |
| CN206331020U (en) | The controllable undervoltage detection means of anti-interference delay | |
| CN104375551B (en) | Band gap voltage generative circuit | |
| CN102196621A (en) | LED dimming circuit | |
| CN116505901A (en) | Full differential operational amplifier circuit with common mode feedback | |
| CN109282856A (en) | A single-chip sensor that simultaneously detects temperature/voltage/current signals | |
| CN109818621B (en) | Voltage-to-digital converter and resistance sensor readout circuit | |
| CN108874006A (en) | Reference voltage drive circuit | |
| WO2017121682A1 (en) | Band-pass filter | |
| CN101109775A (en) | Programmable voltage monitoring circuit | |
| CN101330284A (en) | Time constant correction device and related method thereof | |
| CN110417401A (en) | Digital isolator based on charge deposit | |
| CN212208300U (en) | A Memristor Simulation Model | |
| CN201904788U (en) | Signal detection device | |
| CN119853396A (en) | Offset start control module, filter module, circuit, system, device and vehicle | |
| CN203747798U (en) | Sampling switch circuit | |
| CN106569008A (en) | Novel broadband peak detection circuit | |
| EP0020717B1 (en) | Interval timer circuit | |
| CN114371336B (en) | A circuit and method for estimating average current | |
| CN105021973A (en) | Digital display type capacitor discharger and detection method | |
| CN108418567A (en) | A Resettable Integral Low-Pass Filter Circuit | |
| CN212463194U (en) | Dynamic latch comparator and electronic device | |
| Vavra et al. | An envelope detector based on Memristive systems | |
| CN108267645B (en) | Duty cycle detection circuit | |
| CN121433424A (en) | A threshold current control circuit for PSI5 interface |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |