CN114995565A - A short circuit protection method, circuit and bus driver - Google Patents

A short circuit protection method, circuit and bus driver Download PDF

Info

Publication number
CN114995565A
CN114995565A CN202210540904.8A CN202210540904A CN114995565A CN 114995565 A CN114995565 A CN 114995565A CN 202210540904 A CN202210540904 A CN 202210540904A CN 114995565 A CN114995565 A CN 114995565A
Authority
CN
China
Prior art keywords
circuit
short
current
voltage
upper branch
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
Application number
CN202210540904.8A
Other languages
Chinese (zh)
Other versions
CN114995565B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huarui Shengyang Investment Co ltd
Original Assignee
Shenzhen Nanyun Microelectronics Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Nanyun Microelectronics Co ltd filed Critical Shenzhen Nanyun Microelectronics Co ltd
Priority to CN202210540904.8A priority Critical patent/CN114995565B/en
Publication of CN114995565A publication Critical patent/CN114995565A/en
Application granted granted Critical
Publication of CN114995565B publication Critical patent/CN114995565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05FSYSTEMS FOR REGULATING ELECTRIC OR MAGNETIC VARIABLES
    • G05F1/00Automatic systems in which deviations of an electric quantity from one or more predetermined values are detected at the output of the system and fed back to a device within the system to restore the detected quantity to its predetermined value or values, i.e. retroactive systems
    • G05F1/10Regulating voltage or current 
    • G05F1/46Regulating voltage or current  wherein the variable actually regulated by the final control device is DC
    • G05F1/56Regulating voltage or current  wherein the variable actually regulated by the final control device is DC using semiconductor devices in series with the load as final control devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Automation & Control Theory (AREA)
  • Logic Circuits (AREA)

Abstract

The invention discloses a short-circuit protection method, a circuit and a bus driver, wherein the short-circuit protection method comprises the following steps: judging whether the upper branch is conducted or not; when the judgment result is that the upper branch is conducted, the following steps are further executed: comparing the output voltage of the output port of the bus driver with a first short-circuit threshold voltage to obtain a first short-circuit comparison result; comparing the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result; and controlling the current flowing in the upper branch circuit according to the first short circuit comparison result and the first load comparison result, wherein when the upper branch circuit is in a heavy load or a short circuit, the current flowing in the upper branch circuit is determined by different injected currents respectively. The invention can decouple the mutual restriction relationship between the internal resistance of the switching tube and the short-circuit current in the driving circuit and improve the amplitude of the differential driving voltage output by the circuit node on the bus.

Description

一种短路保护方法、电路和总线驱动器A short circuit protection method, circuit and bus driver

技术领域technical field

本发明涉及总线驱动器技术领域,特别涉及总线驱动器的一种短路保护方法、电路和总线驱动器。The present invention relates to the technical field of bus drivers, in particular to a short-circuit protection method, circuit and bus driver of the bus driver.

背景技术Background technique

用于标准数据交换的接口器件,如RS485、RS232和CAN等接口芯片,设计时不仅均需遵循相应通讯协议电气特性标准的规定,它们的总线端口还必须能够抵抗来自总线的各种风险,尤其是其总线驱动器,不仅需要考虑总线驱动器未上电时的情况,还要考虑已上电情况下,总线驱动器输出端口可能已处于导通或者高阻的状态,总线驱动器能否从当前状态退出,能否将处于电源轨-总线驱动器-总线三者之间的信号路径打开或关闭,以保证风险造成的电流流动的路径均受控制,确保总线驱动器本身不受损坏。此外,总线驱动器还必须能够抵抗在特定环境中可能发生的过电压事件。Interface devices used for standard data exchange, such as interface chips such as RS485, RS232, and CAN, must not only be designed in accordance with the electrical characteristics standards of the corresponding communication protocol, but their bus ports must also be able to resist various risks from the bus, especially It is its bus driver. It is not only necessary to consider the situation when the bus driver is not powered on, but also to consider whether the output port of the bus driver may have been in the state of conduction or high resistance when it is powered on. Whether the bus driver can exit from the current state, Whether the signal path between the power rail-bus driver-bus can be opened or closed to ensure that the path of the current flow caused by the risk is controlled, ensuring that the bus driver itself is not damaged. In addition, the bus driver must also be resistant to overvoltage events that may occur in certain environments.

图1为现有技术总线驱动器常规电路原理图,其中只画出了与本发明相关的驱动级部分,包括上支路、下支路、供电端口VCC、接地端口GND和输出端口OUT,上支路一端作为供电端口用于连接电源轨,上支路另一端和下支路一端连接在一起作为输出端口用于输出总线驱动器的输出电压,下支路另一端作为接地端口用于接地;每个支路中包括开关单元和防倒灌单元。图1中二极管DP和二极管DN分别为上支路和下支路的防倒灌单元,它们可以是常规的二极管,也可以是为了在正向导通情况下压降更低而基于与其他半导体器件不同的连接方式构成的二极管;PMOS管MP1和NMOS管N1分别为上支路和下支路的开关单元,在实际的芯片设计时,各支路中的开关管可以设计为多个同类型的开关管并联,例如MOS管MP1设计为两个PMOS管并联、MOS管MN1设计为两个NMOS管并联。Fig. 1 is the conventional circuit schematic diagram of the prior art bus driver, in which only the driver stage part related to the present invention is drawn, including the upper branch, the lower branch, the power supply port VCC, the ground port GND and the output port OUT, the upper branch One end of the circuit is used as a power supply port to connect the power rail, the other end of the upper branch and one end of the lower branch are connected together as an output port for outputting the output voltage of the bus driver, and the other end of the lower branch is used as a ground port for grounding; each The branch circuit includes a switch unit and an anti-backflow unit. The diodes DP and DN in Fig. 1 are the anti-backflow units of the upper branch and the lower branch, respectively. They can be conventional diodes, or they can be different from other semiconductor devices in order to lower the voltage drop in the forward conduction condition. The diode is formed by the connection method; the PMOS tube MP1 and the NMOS tube N1 are the switch units of the upper branch and the lower branch respectively. In the actual chip design, the switch tubes in each branch can be designed as multiple switches of the same type The tubes are connected in parallel, for example, the MOS tube MP1 is designed as two PMOS tubes in parallel, and the MOS tube MN1 is designed as two NMOS tubes in parallel.

图2为图1所示总线驱动器在总线中的应用原理图,其中包括两条总线,至少一个电路节点,该电路节点与其中一条总线连接于A点,与另外一条总线连接于B点,该电路节点(A,B)配置了两个图1所示的总线驱动器,第一总线驱动器的输出端口连接A点,第二总线驱动器的输出端口连接B点,在同一时刻,①通路和②通路只有一个工作,从而节点(A,B)会输出一个差分驱动电压,因此图1中的总线驱动器在工作时,只有一个支路会工作。FIG. 2 is a schematic diagram of the application of the bus driver shown in FIG. 1 in the bus, which includes two buses and at least one circuit node. The circuit node is connected to one of the buses at point A, and the other bus is connected to the point B. The circuit node (A, B) is configured with two bus drivers shown in Figure 1. The output port of the first bus driver is connected to point A, and the output port of the second bus driver is connected to point B. At the same time, ① channel and ② channel There is only one operation, so that the nodes (A, B) will output a differential drive voltage, so when the bus driver in Figure 1 is in operation, only one branch will operate.

常规总线驱动器在输出过载或者输出端口短路时的保护策略一般设计为:当输出端口的输出电压为高电平时,即上支路P开关管导通,下支路N开关管关断,当因过载或短路导致输出端口的输出电压过低,低于上支路短路阈值,控制信号将多管并联的P开关管中大部分关断,从而限制输出端口从电源轨上抽取的电流;反之,当输出端口的输出电压为低电平时,当因过载或短路导致输出端口的输出电压过高,高于下支路短路阈值,控制信号将多管并联的N开关管大部分关断,从而限制从输出端口灌入地的电流,起到对总线驱动器短路保护的作用。但这种方式存在如下缺点:The protection strategy of the conventional bus driver when the output is overloaded or the output port is short-circuited is generally designed as follows: when the output voltage of the output port is high, that is, the upper branch P switch is turned on, and the lower branch N switch is turned off. Overload or short circuit causes the output voltage of the output port to be too low, lower than the short-circuit threshold of the upper branch, and the control signal turns off most of the P switches connected in parallel, thereby limiting the current drawn by the output port from the power rail; otherwise, When the output voltage of the output port is low level, when the output voltage of the output port is too high due to overload or short circuit, which is higher than the short circuit threshold of the lower branch, the control signal will turn off most of the N switches connected in parallel, thereby limiting the The current sinking into the ground from the output port acts as a short-circuit protection for the bus driver. But this method has the following disadvantages:

(1)为保证节点(A,B)输出的差分驱动电压的幅度,在芯片设计时一般会将开关管内阻设计得尽量小。但是在输出端口电压到达相应的短路阈值点前,对应的开关管将进入饱和区,内阻越小饱和电流会越大,饱和电流由电源轨经上支路流向输出端口,或者由输出端口经下支路流向地,使得总线驱动器温升显著,可靠性大大降低;(1) In order to ensure the amplitude of the differential driving voltage output by the nodes (A, B), the internal resistance of the switch tube is generally designed to be as small as possible during chip design. However, before the output port voltage reaches the corresponding short-circuit threshold point, the corresponding switch tube will enter the saturation region. The smaller the internal resistance, the greater the saturation current. The saturation current flows from the power rail to the output port through the upper branch, or from the output port through the upper branch. The lower branch flows to the ground, which makes the temperature rise of the bus driver significantly, and the reliability is greatly reduced;

(2)当总线驱动器处于短路状态时,由于驱动级开关管导通数目少,内阻大,会使得短路恢复点很难达到,例如:设计短路状态下开关管内阻为正常状态下的3倍来限电流,则由短路状态恢复到正常状态时要求流经开关管的电流需减小至正常状态下的1/3,才能使输出端口的输出电压恢复至阈值点,再次打开大部分的开关管,这个缺点直接导致总线驱动器输出的共模电平在较低、较负的情况下,节点(A,B)无法提供足够的差分驱动电压。(2) When the bus driver is in a short-circuit state, due to the small number of switches on the driver stage and the large internal resistance, it will be difficult to achieve the short-circuit recovery point. For example, the internal resistance of the switch in the design short-circuit state is 3 times that of the normal state. To limit the current, when returning from the short-circuit state to the normal state, the current flowing through the switch tube needs to be reduced to 1/3 of the normal state, so that the output voltage of the output port can be restored to the threshold point, and most of the switches are turned on again. However, this shortcoming directly causes the node (A, B) to fail to provide sufficient differential drive voltage when the common mode level output by the bus driver is lower and more negative.

针对图2应用原理图,总线驱动器输出端口的输出电压包括:第一总线驱动器输出端口的输出电压VA,以及第二总线驱动器输出端口的输出电压VB;总线驱动器输出的共模电平指的是:第一总线驱动器输出端口的输出电压与第二总线驱动器输出端口的输出电压之和的一半,即(VA+VB)/2;节点(A,B)输出的差分驱动电压指的是:第一总线驱动器输出端口的输出电压与第二总线驱动器输出端口的输出电压之差,即(VA-VB)。For the application schematic diagram of FIG. 2, the output voltage of the output port of the bus driver includes: the output voltage VA of the output port of the first bus driver, and the output voltage VB of the output port of the second bus driver; the common mode level output by the bus driver refers to : Half of the sum of the output voltage of the output port of the first bus driver and the output voltage of the output port of the second bus driver, namely (VA+VB)/2; the differential driving voltage output by the node (A, B) refers to: the first The difference between the output voltage of one bus driver output port and the output voltage of the second bus driver output port is (VA-VB).

上述缺点限制了开关管内阻不能太小,其实就限制了总线驱动器的带载能力。The above shortcomings limit the internal resistance of the switch tube to not be too small, which actually limits the load-carrying capability of the bus driver.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明要解决的技术问题是提供一种驱动短路保护方法和至少在一定程度上解决现有技术中存在的技术问题之一。In view of this, the technical problem to be solved by the present invention is to provide a driving short-circuit protection method and at least to a certain extent solve one of the technical problems existing in the prior art.

作为本发明的第一个方面,所提供的短路保护方法实施例如下:As a first aspect of the present invention, the provided short-circuit protection method is as follows:

一种短路保护方法,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护方法包括如下步骤:A short-circuit protection method is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection method includes the following steps:

判断所述上支路是否导通;judging whether the upper branch is turned on;

当判断结果为所述上支路导通时,进一步执行如下步骤:When the judgment result is that the upper branch is turned on, the following steps are further performed:

将所述总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;comparing the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;comparing the output voltage with the first on-load threshold voltage to obtain a first on-load comparison result;

依据所述第一短路比较结果和所述第一带载比较结果控制所述上支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the upper branch is controlled according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

当所述输出电压≤所述第一短路阈值电压时,所述上支路中流过的电流由注入所述上支路中的第一预设电流决定;When the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

当所述第一短路阈值电压<所述输出电压≤所述第一带载阈值电压时,所述上支路中流过的电流由注入所述上支路中的第二预设电流决定;When the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

当所述第一带载阈值电压时<所述输出电压≤电源轨电压时,所述上支路中流过的电流由所述总线驱动器的驱动负载决定;When the first load threshold voltage is less than the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

所述第一预设电流<所述第二预设电流。The first preset current < the second preset current.

进一步地,由所述上支路中开关管栅极驱动信号的高低来判断所述上支路是否导通。Further, whether the upper branch is turned on is determined by the level of the gate driving signal of the switch transistor in the upper branch.

一种短路保护方法,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护方法包括如下步骤:A short-circuit protection method is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection method includes the following steps:

判断所述下支路是否导通;judging whether the lower branch is turned on;

当判断结果为所述下支路导通时,进一步执行如下步骤:When the judgment result is that the lower branch is turned on, the following steps are further performed:

将所述总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;comparing the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;comparing the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

依据所述第二短路比较结果和所述第二带载比较结果控制所述下支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the lower branch is controlled according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

当0≤所述输出电压≤所述第二带载阈值电压时,所述下支路中流过的电流由所述总线驱动器的驱动负载决定;When 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

当所述第二带载阈值电压<所述输出电压≤所述第二短路阈值电压时,所述下支路中流过的电流由注入所述下支路中的第三预设电流决定;When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;

当所述第二短路阈值电压<所述输出电压时,所述下支路中流过的电流由注入所述下支路中的第四预设电流决定;When the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by a fourth preset current injected into the lower branch;

所述第三预设电流>所述第四预设电流。The third preset current>the fourth preset current.

进一步地,由所述下支路中开关管栅极驱动信号的高低来判断所述下支路是否导通。Further, whether the lower branch is turned on is determined according to the level of the gate driving signal of the switch transistor in the lower branch.

一种短路保护方法,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护方法包括如下步骤:A short-circuit protection method is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection method includes the following steps:

判断所述上支路是否导通;judging whether the upper branch is turned on;

当判断结果为所述上支路导通时,进一步执行如下步骤:When the judgment result is that the upper branch is turned on, the following steps are further performed:

将所述总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;comparing the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;comparing the output voltage with the first on-load threshold voltage to obtain a first on-load comparison result;

依据所述第一短路比较结果和所述第一带载比较结果控制所述上支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the upper branch is controlled according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

当所述输出电压≤所述第一短路阈值电压时,所述上支路中流过的电流由注入所述上支路中的第一预设电流决定;When the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

当所述第一短路阈值电压<所述输出电压≤所述第一带载阈值电压时,所述上支路中流过的电流由注入所述上支路中的第二预设电流决定;When the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

当所述第一带载阈值电压时<所述输出电压≤电源轨电压时,所述上支路中流过的电流由所述总线驱动器的驱动负载决定;When the first load threshold voltage is less than the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

判断所述下支路是否导通;judging whether the lower branch is turned on;

当判断结果为所述下支路导通时,进一步执行如下步骤:When the judgment result is that the lower branch is turned on, the following steps are further performed:

将所述总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;comparing the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;comparing the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

依据所述第二短路比较结果和所述第二带载比较结果控制所述下支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the lower branch is controlled according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

当0≤所述输出电压≤所述第二带载阈值电压时,所述下支路中流过的电流由所述总线驱动器的驱动负载决定;When 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

当所述第二带载阈值电压<所述输出电压≤所述第二短路阈值电压时,所述下支路中流过的电流由注入所述下支路中的第三预设电流决定;When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;

当所述第二短路阈值电压<所述输出电压时,所述下支路中流过的电流由注入所述下支路中的第三预设电流决定;When the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;

所述第一预设电流<所述第二预设电流;所述第三预设电流>所述第四预设电流。The first preset current<the second preset current; the third preset current>the fourth preset current.

进一步地,由所述上支路中开关管栅极驱动信号的高低来判断所述上支路是否导通;由所述下支路中开关管栅极驱动信号的高低来判断所述下支路是否导通。Further, whether the upper branch is turned on is judged by the level of the gate drive signal of the switch in the upper branch; the lower branch is judged by the level of the gate drive signal of the switch in the lower branch whether the road is connected.

作为本发明的第二个方面,所提供的短路保护电路实施例如下:As the second aspect of the present invention, the provided short circuit protection circuit is implemented as follows:

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括第一短路保护单元;A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes a first short-circuit protection unit;

所述第一短路保护单元包括:The first short-circuit protection unit includes:

第一判断单元,用于判断所述上支路是否导通;a first judging unit for judging whether the upper branch is turned on;

第一执行单元,用于当所述第一判断单元的判断结果为所述上支路导通时,进一步执行如下动作:The first execution unit is configured to further perform the following actions when the judgment result of the first judgment unit is that the upper branch is turned on:

将所述总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;comparing the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;comparing the output voltage with the first on-load threshold voltage to obtain a first on-load comparison result;

依据所述第一短路比较结果和所述第一带载比较结果控制所述上支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the upper branch is controlled according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

当所述输出电压≤所述第一短路阈值电压时,所述上支路中流过的电流由注入所述上支路中的第一预设电流决定;When the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

当所述第一短路阈值电压<所述输出电压≤所述第一带载阈值电压时,所述上支路中流过的电流由注入所述上支路中的第二预设电流决定;When the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

当所述第一带载阈值电压时<所述输出电压≤电源轨电压时,所述上支路中流过的电流由所述总线驱动器的驱动负载决定;When the first load threshold voltage is less than the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

所述第一预设电流<所述第二预设电流。The first preset current < the second preset current.

进一步地,所述第一判断单元由所述上支路中开关管栅极驱动信号的高低来判断所述上支路是否导通。Further, the first judging unit judges whether the upper branch is turned on according to the level of the gate driving signal of the switch transistor in the upper branch.

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括:A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes:

第一比较器,所述第一比较器正相输入端用于输入总线驱动器输出端口的输出电压、负相输入端用于输入所述第一短路阈值电压;所述第一比较器的置位端用于输入所述上支路中开关管的栅极驱动信号,实现所述判断所述上支路是否导通;当所述上支路中开关管的栅极驱动信号为高电平时,所述第一比较器的输出端被置位为高电平;当所述上支路中开关管的栅极驱动信号为低电平时,所述第一比较器的输出端输出所述第一短路比较结果;a first comparator, the positive-phase input terminal of the first comparator is used to input the output voltage of the output port of the bus driver, and the negative-phase input terminal is used to input the first short-circuit threshold voltage; the setting of the first comparator The terminal is used to input the gate drive signal of the switch tube in the upper branch, so as to realize the judgment of whether the upper branch is turned on; when the gate drive signal of the switch tube in the upper branch is high level, The output end of the first comparator is set to a high level; when the gate drive signal of the switch in the upper branch is a low level, the output end of the first comparator outputs the first short circuit comparison result;

第一延迟单元,所述第一延迟单元的输入端用于接收所述第一比较器的输出端电平,当所述第一比较器的输出端电平为高电平时,所述第一延迟单元用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当所述第一比较器的输出端电平为低电平时,所述第一延迟单元用于经过第一延时时间后由其输出端输出该低电平;a first delay unit, the input end of the first delay unit is used for receiving the level of the output end of the first comparator, when the level of the output end of the first comparator is a high level, the first The delay unit is used for shaping and transmitting the high level, and its output terminal outputs the corresponding high level; when the level of the output terminal of the first comparator is a low level, the first delay unit is used for After the first delay time, the output terminal outputs the low level;

第一电压控制电流单元,所述第一电压控制电流单元的控制端连接所述第一延迟单元的输出端,当所述第一电压控制电流单元的控制端接收到高电平时,所述第一电压控制电流单元的输出端输出第一恒定电流;当所述第一电压控制电流单元的控制端接收到低电平时,所述第一电压控制电流单元的输出端输出第二恒定电流,所述第一恒定电流>所述第二恒定电流;a first voltage-controlled current unit, the control terminal of the first voltage-controlled current unit is connected to the output terminal of the first delay unit, when the control terminal of the first voltage-controlled current unit receives a high level, the first voltage-controlled current unit The output terminal of a voltage-controlled current unit outputs a first constant current; when the control terminal of the first voltage-controlled current unit receives a low level, the output terminal of the first voltage-controlled current unit outputs a second constant current, so the first constant current > the second constant current;

第一电流比例单元,所述第一电流比例单元包括PMOS管MP2和PMS管MP3,所述PMOS管MP2的源极和所述PMS管MP3的源极连接在一起后用于连接电源轨,所述PMOS管MP2的漏极、所述PMOS管MP2的栅极和所述PMS管MP3的栅极连接在一起后连接所述第一电压控制电流单元的输出端,所述PMOS管MP3的漏极用于连接所述上支路的防倒灌二极管的阳极。A first current proportional unit, the first current proportional unit includes a PMOS transistor MP2 and a PMS transistor MP3, the source of the PMOS transistor MP2 and the source of the PMS transistor MP3 are connected together for connecting the power rail, so The drain of the PMOS transistor MP2, the gate of the PMOS transistor MP2 and the gate of the PMS transistor MP3 are connected together and then connected to the output end of the first voltage-controlled current unit, and the drain of the PMOS transistor MP3 Used to connect the anode of the anti-backflow diode of the upper branch.

作为所述第一延迟单元的一种具体的实施方式,包括:PMOS管MP4、NMOS管MN4、电容C1和施密特反相器SMT1;所述PMOS管MP4的栅极和所述NMOS管MN4的栅极连接在一起后作为所述第一延迟单元的输入端,所述PMOS管MP4的源极用于连接所述电源轨,所述PMOS管MP4的漏极、所述NMOS管MN4的漏极、所述电容C1一端和所述施密特反相器SMT1的输入端连接在一起,所述NMOS管MN4的源极和所述电容C1另一端连接在一起后用于接地,所述施密特反相器SMT1的输出端作为所述第一延迟单元的输出端。As a specific implementation of the first delay unit, it includes: a PMOS transistor MP4, an NMOS transistor MN4, a capacitor C1 and a Schmitt inverter SMT1; the gate of the PMOS transistor MP4 and the NMOS transistor MN4 The gates are connected together as the input end of the first delay unit, the source of the PMOS transistor MP4 is used to connect the power rail, the drain of the PMOS transistor MP4, the drain of the NMOS transistor MN4 electrode, one end of the capacitor C1 and the input end of the Schmitt inverter SMT1 are connected together, the source of the NMOS transistor MN4 and the other end of the capacitor C1 are connected together for grounding, the The output terminal of the mitt inverter SMT1 serves as the output terminal of the first delay unit.

作为所述第一电压控制电流单元的一种具体的实施方式,包括:开关管S1、第一基准电流IP1和第二基准电流IP2;所述开关管S1的控制端作为所述第一电压控制电流单元的控制端,所述开关管S1的一端和所述第二基准电流IP2的一端连接在一起后作为所述第一电压控制电流单元的输出端,所述开关管S1的另一端连接所述第一基准电流IP1的一端,所述第一基准电流IP1的另一端用于输入第一基准电流信号,所述第二基准电流IP2另一端用于输入第二基准电流信号。As a specific implementation of the first voltage control current unit, it includes: a switch tube S1, a first reference current IP1 and a second reference current IP2; the control end of the switch tube S1 serves as the first voltage control The control end of the current unit, one end of the switch tube S1 and one end of the second reference current IP2 are connected together as the output end of the first voltage-controlled current unit, and the other end of the switch tube S1 is connected to the One end of the first reference current IP1, the other end of the first reference current IP1 is used for inputting the first reference current signal, and the other end of the second reference current IP2 is used for inputting the second reference current signal.

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括第二短路保护单元;A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes a second short-circuit protection unit;

所述第二短路保护单元包括:The second short-circuit protection unit includes:

第二判断单元,用于判断所述下支路是否导通;a second judging unit, configured to judge whether the lower branch is turned on;

第二执行单元,用于当所述第二判断单元的判断结果为所述下支路导通时,进一步执行如下动作:The second execution unit is configured to further perform the following actions when the judgment result of the second judgment unit is that the lower branch is turned on:

将所述总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;comparing the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;comparing the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

依据所述第二短路比较结果和所述第二带载比较结果控制所述下支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the lower branch is controlled according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

当0≤所述输出电压≤所述第二带载阈值电压时,所述下支路中流过的电流由所述总线驱动器的驱动负载决定;When 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

当所述第二带载阈值电压<所述输出电压≤所述第二短路阈值电压时,所述下支路中流过的电流由注入所述下支路中的第三预设电流决定;When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;

当所述第二短路阈值电压<所述输出电压时,所述下支路中流过的电流由注入所述下支路中的第四预设电流决定;When the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by a fourth preset current injected into the lower branch;

所述第三预设电流>所述第四预设电流。The third preset current>the fourth preset current.

进一步地,所述第二判断单元由所述下支路中开关管栅极驱动信号的高低来判断所述下支路是否导通。Further, the second judging unit judges whether the lower branch is turned on according to the level of the gate driving signal of the switch transistor in the lower branch.

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括:A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes:

第二比较器,所述第二比较器正相输入端用于输入所述第二短路阈值电压、负相输入端用于输入总线驱动器输出端口的输出电压;所述第二比较器的置位端用于输入所述下支路中开关管的栅极驱动信号,实现所述判断所述下支路是否导通;当所述下支路中开关管的栅极驱动信号为低电平时,所述第二比较器的输出端被置位为高电平;当所述上支路中开关管的栅极驱动信号为高电平时,所述第二比较器的输出端输出所述第二短路比较结果;a second comparator, the positive-phase input terminal of the second comparator is used for inputting the second short-circuit threshold voltage, and the negative-phase input terminal is used for inputting the output voltage of the output port of the bus driver; the setting of the second comparator The terminal is used to input the gate drive signal of the switch tube in the lower branch, so as to realize the judgment of whether the lower branch is turned on; when the gate drive signal of the switch tube in the lower branch is low level, The output end of the second comparator is set to a high level; when the gate drive signal of the switch in the upper branch is a high level, the output end of the second comparator outputs the second short circuit comparison result;

第二延迟单元,所述第二延迟单元的输入端用于接收所述第二比较器的输出端电平,当所述第二比较器的输出端电平为高电平时,所述第二延迟单元用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当所述第二比较器的输出端电平为低电平时,所述第二延迟单元用于经过第二延时时间后由其输出端输出该低电平;The second delay unit, the input end of the second delay unit is used to receive the level of the output end of the second comparator, when the level of the output end of the second comparator is a high level, the second delay unit The delay unit is used to shape and transmit the high level, and output the corresponding high level from its output terminal; when the level of the output terminal of the second comparator is a low level, the second delay unit is used for After the second delay time, the output terminal outputs the low level;

第二电压控制电流单元,所述第二电压控制电流单元的控制端连接所述第二延迟单元的输出端,当所述第二电压控制电流单元的控制端接收到高电平时,所述第二电压控制电流单元的输出端输出第三恒定电流;当所述第二电压控制电流单元的控制端接收到低电平时,所述第二电压控制电流单元的输出端输出第四恒定电流,所述第三恒定电流>所述第四恒定电流;The second voltage-controlled current unit, the control terminal of the second voltage-controlled current unit is connected to the output terminal of the second delay unit, when the control terminal of the second voltage-controlled current unit receives a high level, the first The output terminal of the two voltage-controlled current units outputs a third constant current; when the control terminal of the second voltage-controlled current unit receives a low level, the output terminal of the second voltage-controlled current unit outputs a fourth constant current, so the third constant current > the fourth constant current;

第二电流比例单元,所述第二电流比例单元包括NMOS管MN2和NMOS管MN3,所述NMOS管MN2的源极和所述NMS管MN3的源极连接在一起后用于接地,所述NMOS管MN2的漏极、所述NMOS管MN2的栅极和所述NMS管MN3的栅极连接在一起后连接所述第二电压控制电流单元的输出端,所述NMOS管MN3的漏极用于连接所述下支路的NMOS管的源极。A second current proportional unit, the second current proportional unit includes an NMOS transistor MN2 and an NMOS transistor MN3, the source of the NMOS transistor MN2 and the source of the NMS transistor MN3 are connected together for grounding, and the NMOS transistor The drain of the transistor MN2, the gate of the NMOS transistor MN2 and the gate of the NMS transistor MN3 are connected together and then connected to the output terminal of the second voltage-controlled current unit, and the drain of the NMOS transistor MN3 is used for The source electrode of the NMOS transistor of the lower branch is connected.

作为所述第二延迟单元的一种具体的实施方式,包括:PMOS管MP5、NMOS管MN5、电容C2和施密特反相器SMT2;所述PMOS管MP5的栅极和所述NMOS管MN5的栅极连接在一起后作为所述第二延迟单元的输入端,所述PMOS管MP5的源极用于连接所述电源轨,所述PMOS管MP5的漏极、所述NMOS管MN5的漏极、所述电容C2一端和所述施密特反相器SMT2的输入端连接在一起,所述NMOS管MN5的源极和所述电容C2另一端连接在一起后用于接地,所述施密特反相器SMT2的输出端作为所述第二延迟单元的输出端。As a specific implementation of the second delay unit, it includes: a PMOS transistor MP5, an NMOS transistor MN5, a capacitor C2 and a Schmitt inverter SMT2; the gate of the PMOS transistor MP5 and the NMOS transistor MN5 The gates of the PMOS transistors are connected together as the input terminal of the second delay unit, the source of the PMOS transistor MP5 is used to connect the power rail, the drain of the PMOS transistor MP5, the drain of the NMOS transistor MN5 pole, one end of the capacitor C2 and the input end of the Schmitt inverter SMT2 are connected together, the source of the NMOS transistor MN5 and the other end of the capacitor C2 are connected together for grounding, and the The output terminal of the mitt inverter SMT2 serves as the output terminal of the second delay unit.

作为所述第二电压控制电流单元的一种具体的实施方式,包括:开关管S2、第三基准电流IN1和第四基准电流IN2;所述开关管S2的控制端作为所述第二电压控制电流单元的控制端,所述开关管S2的一端和所述第四基准电流IN2的一端连接在一起后作为所述第二电压控制电流单元的输出端,所述开关管S2的另一端连接所述第三基准电流IN1的一端,所述第三基准电流IN1的另一端用于输入第三基准电流信号,所述第四基准电流IN2另一端用于输入第四基准电流信号。As a specific implementation of the second voltage control current unit, it includes: a switch tube S2, a third reference current IN1 and a fourth reference current IN2; the control end of the switch tube S2 serves as the second voltage control The control end of the current unit, one end of the switch tube S2 and one end of the fourth reference current IN2 are connected together as the output end of the second voltage-controlled current unit, and the other end of the switch tube S2 is connected to the One end of the third reference current IN1, the other end of the third reference current IN1 is used for inputting a third reference current signal, and the other end of the fourth reference current IN2 is used for inputting a fourth reference current signal.

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括第一短路保护单元和第二短路保护单元;A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes a first short-circuit protection unit and a second short-circuit protection unit;

所述第一短路保护单元包括:The first short-circuit protection unit includes:

第一判断单元,用于判断所述上支路是否导通;a first judging unit for judging whether the upper branch is turned on;

第一执行单元,用于当所述第一判断单元的判断结果为所述上支路导通时,进一步执行如下动作:The first execution unit is configured to further perform the following actions when the judgment result of the first judgment unit is that the upper branch is turned on:

将所述总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;comparing the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;comparing the output voltage with the first on-load threshold voltage to obtain a first on-load comparison result;

依据所述第一短路比较结果和所述第一带载比较结果控制所述上支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the upper branch is controlled according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

当所述输出电压≤所述第一短路阈值电压时,所述上支路中流过的电流由注入所述上支路中的第一预设电流决定;When the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

当所述第一短路阈值电压<所述输出电压≤所述第一带载阈值电压时,所述上支路中流过的电流由注入所述上支路中的第二预设电流决定;When the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

当所述第一带载阈值电压时<所述输出电压≤电源轨电压时,所述上支路中流过的电流由所述总线驱动器的驱动负载决定;When the first load threshold voltage is less than the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

所述第一预设电流<所述第二预设电流;the first preset current < the second preset current;

所述第二短路保护单元包括:The second short-circuit protection unit includes:

第二判断单元,用于判断所述下支路是否导通;a second judging unit, configured to judge whether the lower branch is turned on;

第二执行单元,用于当所述第二判断单元的判断结果为所述下支路导通时,进一步执行如下动作:The second execution unit is configured to further perform the following actions when the judgment result of the second judgment unit is that the lower branch is turned on:

将所述总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;comparing the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;comparing the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

依据所述第二短路比较结果和所述第二带载比较结果控制所述下支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the lower branch is controlled according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

当0≤所述输出电压≤所述第二带载阈值电压时,所述下支路中流过的电流由所述总线驱动器的驱动负载决定;When 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

当所述第二带载阈值电压<所述输出电压≤所述第二短路阈值电压时,所述下支路中流过的电流由注入所述下支路中的第三预设电流决定;When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;

当所述第二短路阈值电压<所述输出电压时,所述下支路中流过的电流由注入所述下支路中的第四预设电流决定;When the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by a fourth preset current injected into the lower branch;

所述第三预设电流>所述第四预设电流。The third preset current>the fourth preset current.

进一步地,所述第一判断单元由所述上支路中开关管栅极驱动信号的高低来判断所述上支路是否导通;所述第二判断单元由所述下支路中开关管栅极驱动信号的高低来判断所述下支路是否导通。Further, the first judging unit judges whether the upper branch is turned on according to the level of the gate drive signal of the switch tube in the upper branch; the second judging unit is determined by the switch tube in the lower branch. The level of the gate driving signal is used to determine whether the lower branch is turned on.

一种短路保护电路,应用于总线驱动器,所述总线驱动器包括上支路和下支路,所述上支路中的开关管为PMOS管,所述下支路中的开关管为NMOS管,所述总线驱动器正常工作时,所述上支路的和所述下支路只有一个导通,所述短路保护电路包括:A short circuit protection circuit is applied to a bus driver, wherein the bus driver includes an upper branch and a lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube, When the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes:

第一比较器,所述第一比较器正相输入端用于输入总线驱动器输出端口的输出电压、负相输入端用于输入所述第一短路阈值电压;所述第一比较器的置位端用于输入所述上支路中开关管的栅极驱动信号,实现所述判断所述上支路是否导通;当所述上支路中开关管的栅极驱动信号为高电平时,所述第一比较器的输出端被置位为高电平;当所述上支路中开关管的栅极驱动信号为低电平时,所述第一比较器的输出端输出所述第一短路比较结果;a first comparator, the positive-phase input terminal of the first comparator is used to input the output voltage of the output port of the bus driver, and the negative-phase input terminal is used to input the first short-circuit threshold voltage; the setting of the first comparator The terminal is used to input the gate drive signal of the switch tube in the upper branch, so as to realize the judgment of whether the upper branch is turned on; when the gate drive signal of the switch tube in the upper branch is high level, The output end of the first comparator is set to a high level; when the gate drive signal of the switch in the upper branch is a low level, the output end of the first comparator outputs the first short circuit comparison result;

第一延迟单元,所述第一延迟单元的输入端用于接收所述第一比较器的输出端电平,当所述第一比较器的输出端电平为高电平时,所述第一延迟单元用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当所述第一比较器的输出端电平为低电平时,所述第一延迟单元用于经过第一延时时间后由其输出端输出该低电平;a first delay unit, the input end of the first delay unit is used for receiving the level of the output end of the first comparator, when the level of the output end of the first comparator is a high level, the first The delay unit is used for shaping and transmitting the high level, and its output terminal outputs the corresponding high level; when the level of the output terminal of the first comparator is a low level, the first delay unit is used for After the first delay time, the output terminal outputs the low level;

第一电压控制电流单元,所述第一电压控制电流单元的控制端连接所述第一延迟单元的输出端,当所述第一电压控制电流单元的控制端接收到高电平时,所述第一电压控制电流单元的输出端输出第一恒定电流;当所述第一电压控制电流单元的控制端接收到低电平时,所述第一电压控制电流单元的输出端输出第二恒定电流,所述第一恒定电流>所述第二恒定电流;a first voltage-controlled current unit, the control terminal of the first voltage-controlled current unit is connected to the output terminal of the first delay unit, when the control terminal of the first voltage-controlled current unit receives a high level, the first voltage-controlled current unit The output terminal of a voltage-controlled current unit outputs a first constant current; when the control terminal of the first voltage-controlled current unit receives a low level, the output terminal of the first voltage-controlled current unit outputs a second constant current, so the first constant current > the second constant current;

第一电流比例单元,所述第一电流比例单元包括PMOS管MP2和PMS管MP3,所述PMOS管MP2的源极和所述PMS管MP3的源极连接在一起后用于连接电源轨,所述PMOS管MP2的漏极、所述PMOS管MP2的栅极和所述PMS管MP3的栅极连接在一起后连接所述第一电压控制电流单元的输出端,所述PMOS管MP3的漏极用于连接所述上支路的防倒灌二极管的阳极;A first current proportional unit, the first current proportional unit includes a PMOS transistor MP2 and a PMS transistor MP3, the source of the PMOS transistor MP2 and the source of the PMS transistor MP3 are connected together for connecting the power rail, so The drain of the PMOS transistor MP2, the gate of the PMOS transistor MP2 and the gate of the PMS transistor MP3 are connected together and then connected to the output end of the first voltage-controlled current unit, and the drain of the PMOS transistor MP3 an anode for connecting the anti-backflow diode of the upper branch;

第二比较器,所述第二比较器正相输入端用于输入所述第二短路阈值电压、负相输入端用于输入所述输出电压;所述第二比较器的置位端用于输入所述下支路中开关管的栅极驱动信号,实现所述判断所述下支路是否导通;当所述下支路中开关管的栅极驱动信号为低电平时,所述第二比较器的输出端被置位为高电平;当所述上支路中开关管的栅极驱动信号为高电平时,所述第二比较器的输出端输出所述第二短路比较结果;a second comparator, the positive-phase input terminal of the second comparator is used for inputting the second short-circuit threshold voltage, the negative-phase input terminal is used for inputting the output voltage; the set terminal of the second comparator is used for inputting the second short-circuit threshold voltage The gate drive signal of the switch tube in the lower branch is input to realize the judgment of whether the lower branch is turned on; when the gate drive signal of the switch tube in the lower branch is at a low level, the first The output terminal of the second comparator is set to a high level; when the gate driving signal of the switch in the upper branch is a high level, the output terminal of the second comparator outputs the second short-circuit comparison result ;

第二延迟单元,所述第二延迟单元的输入端用于接收所述第二比较器的输出端电平,当所述第二比较器的输出端电平为高电平时,所述第二延迟单元用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当所述第二比较器的输出端电平为低电平时,所述第二延迟单元用于经过第二延时时间后由其输出端输出该低电平;The second delay unit, the input end of the second delay unit is used to receive the level of the output end of the second comparator, when the level of the output end of the second comparator is a high level, the second delay unit The delay unit is used to shape and transmit the high level, and output the corresponding high level from its output terminal; when the level of the output terminal of the second comparator is a low level, the second delay unit is used for After the second delay time, the output terminal outputs the low level;

第二电压控制电流单元,所述第二电压控制电流单元的控制端连接所述第二延迟单元的输出端,当所述第二电压控制电流单元的控制端接收到高电平时,所述第二电压控制电流单元的输出端输出第三恒定电流;当所述第二电压控制电流单元的控制端接收到低电平时,所述第二电压控制电流单元的输出端输出第四恒定电流,所述第三恒定电流>所述第四恒定电流;The second voltage-controlled current unit, the control terminal of the second voltage-controlled current unit is connected to the output terminal of the second delay unit, when the control terminal of the second voltage-controlled current unit receives a high level, the first The output terminal of the two voltage-controlled current units outputs a third constant current; when the control terminal of the second voltage-controlled current unit receives a low level, the output terminal of the second voltage-controlled current unit outputs a fourth constant current, so the third constant current > the fourth constant current;

第二电流比例单元,所述第二电流比例单元包括NMOS管MN2和NMOS管MN3,所述NMOS管MN2的源极和所述NMS管MN3的源极连接在一起后用于接地,所述NMOS管MN2的漏极、所述NMOS管MN2的栅极和所述NMS管MN3的栅极连接在一起后连接所述第二电压控制电流单元的输出端,所述NMOS管MN3的漏极用于连接所述下支路的NMOS管的源极。A second current proportional unit, the second current proportional unit includes an NMOS transistor MN2 and an NMOS transistor MN3, the source of the NMOS transistor MN2 and the source of the NMS transistor MN3 are connected together for grounding, and the NMOS transistor The drain of the transistor MN2, the gate of the NMOS transistor MN2 and the gate of the NMS transistor MN3 are connected together and then connected to the output terminal of the second voltage-controlled current unit, and the drain of the NMOS transistor MN3 is used for The source electrode of the NMOS transistor of the lower branch is connected.

作为所述第一延迟单元的一种具体的实施方式,包括:PMOS管MP4、NMOS管MN4、电容C1和施密特反相器SMT1;所述PMOS管MP4的栅极和所述NMOS管MN4的栅极连接在一起后作为所述第一延迟单元的输入端,所述PMOS管MP4的源极用于连接所述电源轨,所述PMOS管MP4的漏极、所述NMOS管MN4的漏极、所述电容C1一端和所述施密特反相器SMT1的输入端连接在一起,所述NMOS管MN4的源极和所述电容C1另一端连接在一起后用于接地,所述施密特反相器SMT1的输出端作为所述第一延迟单元的输出端。As a specific implementation of the first delay unit, it includes: a PMOS transistor MP4, an NMOS transistor MN4, a capacitor C1 and a Schmitt inverter SMT1; the gate of the PMOS transistor MP4 and the NMOS transistor MN4 The gates are connected together as the input end of the first delay unit, the source of the PMOS transistor MP4 is used to connect the power rail, the drain of the PMOS transistor MP4, the drain of the NMOS transistor MN4 electrode, one end of the capacitor C1 and the input end of the Schmitt inverter SMT1 are connected together, the source of the NMOS transistor MN4 and the other end of the capacitor C1 are connected together for grounding, the The output terminal of the mitt inverter SMT1 serves as the output terminal of the first delay unit.

作为所述第一电压控制电流单元的一种具体的实施方式,包括:开关管S1、第一基准电流IP1和第二基准电流IP2;所述开关管S1的控制端作为所述第一电压控制电流单元的控制端,所述开关管S1的一端和所述第二基准电流IP2的一端连接在一起后作为所述第一电压控制电流单元的输出端,所述开关管S1的另一端连接所述第一基准电流IP1的一端,所述第一基准电流IP1的另一端用于输入第一基准电流信号,所述第二基准电流IP2另一端用于输入第二基准电流信号。As a specific implementation of the first voltage control current unit, it includes: a switch tube S1, a first reference current IP1 and a second reference current IP2; the control end of the switch tube S1 serves as the first voltage control The control end of the current unit, one end of the switch tube S1 and one end of the second reference current IP2 are connected together as the output end of the first voltage-controlled current unit, and the other end of the switch tube S1 is connected to the One end of the first reference current IP1, the other end of the first reference current IP1 is used for inputting the first reference current signal, and the other end of the second reference current IP2 is used for inputting the second reference current signal.

作为所述第二延迟单元的一种具体的实施方式,包括:PMOS管MP5、NMOS管MN5、电容C2和施密特反相器SMT2;所述PMOS管MP5的栅极和所述NMOS管MN5的栅极连接在一起后作为所述第二延迟单元的输入端,所述PMOS管MP5的源极用于连接所述电源轨,所述PMOS管MP5的漏极、所述NMOS管MN5的漏极、所述电容C2一端和所述施密特反相器SMT2的输入端连接在一起,所述NMOS管MN5的源极和所述电容C2另一端连接在一起后用于接地,所述施密特反相器SMT2的输出端作为所述第二延迟单元的输出端。As a specific implementation of the second delay unit, it includes: a PMOS transistor MP5, an NMOS transistor MN5, a capacitor C2 and a Schmitt inverter SMT2; the gate of the PMOS transistor MP5 and the NMOS transistor MN5 The gates of the PMOS transistors are connected together as the input terminal of the second delay unit, the source of the PMOS transistor MP5 is used to connect the power rail, the drain of the PMOS transistor MP5, the drain of the NMOS transistor MN5 pole, one end of the capacitor C2 and the input end of the Schmitt inverter SMT2 are connected together, the source of the NMOS transistor MN5 and the other end of the capacitor C2 are connected together for grounding, and the The output terminal of the mitt inverter SMT2 serves as the output terminal of the second delay unit.

作为所述第二电压控制电流单元的一种具体的实施方式,包括:开关管S2、第三基准电流IN1和第四基准电流IN2;所述开关管S2的控制端作为所述第二电压控制电流单元的控制端,所述开关管S2的一端和所述第四基准电流IN2的一端连接在一起后作为所述第二电压控制电流单元的输出端,所述开关管S2的另一端连接所述第三基准电流IN1的一端,所述第一基准电流IP1的另一端用于输入第一基准电流信号,所述第二基准电流IP2另一端用于输入第二基准电流信号。As a specific implementation of the second voltage control current unit, it includes: a switch tube S2, a third reference current IN1 and a fourth reference current IN2; the control end of the switch tube S2 serves as the second voltage control The control end of the current unit, one end of the switch tube S2 and one end of the fourth reference current IN2 are connected together as the output end of the second voltage-controlled current unit, and the other end of the switch tube S2 is connected to the One end of the third reference current IN1, the other end of the first reference current IP1 is used for inputting the first reference current signal, and the other end of the second reference current IP2 is used for inputting the second reference current signal.

作为本发明的第三个方面,所提供的总线驱动器实施例如下:As the third aspect of the present invention, the provided bus driver is as follows:

一种总线驱动器,包括上述任一项实施例所述短路保护电路。A bus driver includes the short-circuit protection circuit described in any one of the above embodiments.

术语含义:Term meaning:

电流沉:电流从器件一端输入,从器件另一端流出并流向电源地,类似于吸收了电流,常称为电流沉;Current sink: Current is input from one end of the device, flows out from the other end of the device and flows to the power supply ground, similar to absorbing current, often called current sink;

电流源:电流从电源轨输入器件的一端,从器件另一端流出,该电流可作为其它电路的输入源信号,所以常称为电流源;Current source: The current enters one end of the device from the power rail and flows out from the other end of the device. This current can be used as the input source signal of other circuits, so it is often called a current source;

本发明实施例至少包括以下有益效果:当总线驱动器出现过载或者短路,其上支路或下支路中流过的电流均会被内部生成的不同大小的基准电流所合理限制,不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管或下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求对应支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。The embodiments of the present invention include at least the following beneficial effects: when the bus driver is overloaded or short-circuited, the current flowing in the upper branch or the lower branch will be reasonably limited by internally generated reference currents of different sizes, and not only can control the bus driver Compared with the control strategy of reducing the number of connected upper switches or lower switches in parallel in the prior art, the solution between the differential output voltage of the bus driver and the short-circuit current is realized. Coupling, so that the two no longer restrict each other, so that there is no short-circuit recovery when electrified, the current value of the corresponding branch is very low, and the load capacity of the bus driver is improved within a wide range of positive and negative common mode output voltages.

本发明的其他特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the description, claims and drawings.

附图说明Description of drawings

图1为现有技术总线驱动器常规电路原理图;Fig. 1 is the conventional circuit schematic diagram of the prior art bus driver;

图2为图1所示总线驱动器在总线中的应用原理图;Fig. 2 is the application principle diagram of the bus driver shown in Fig. 1 in the bus;

图3为本发明第一实施例所提供的短路保护方法的流程图;3 is a flowchart of a short-circuit protection method provided by the first embodiment of the present invention;

图4为本发明第二实施例所提供的短路保护方法的流程图;4 is a flowchart of a short-circuit protection method provided by a second embodiment of the present invention;

图5为本发明第三实施例所提供的短路保护方法的流程图;5 is a flowchart of a short-circuit protection method provided by a third embodiment of the present invention;

图6为本发明第四实施例所提供的短路保护电路的原理框图;6 is a schematic block diagram of a short-circuit protection circuit provided by a fourth embodiment of the present invention;

图7为本发明第五实施例所提供的短路保护电路在总线驱动器中应用的原理图;7 is a schematic diagram of the application of the short-circuit protection circuit provided in the fifth embodiment of the present invention in a bus driver;

图8为本发明第五实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图7中的所有单元提供了具体的电路;8 is a schematic diagram of the application of the short-circuit protection circuit provided in the fifth embodiment of the present invention in a bus driver, and the diagram provides a specific circuit for all the units in FIG. 7;

图9为本发明第六实施例所提供的短路保护电路的原理框图;9 is a schematic block diagram of a short-circuit protection circuit provided by a sixth embodiment of the present invention;

图10为本发明第七实施例所提供的短路保护电路在总线驱动器中应用的原理图;10 is a schematic diagram of the application of the short-circuit protection circuit provided in the seventh embodiment of the present invention in a bus driver;

图11为本发明第七实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图10中的所有单元提供了具体的电路;FIG. 11 is a schematic diagram of the application of the short-circuit protection circuit provided in the seventh embodiment of the present invention in a bus driver, and the diagram provides a specific circuit for all the units in FIG. 10;

图12为本发明第八实施例所提供的短路保护电路的原理框图;12 is a schematic block diagram of a short-circuit protection circuit provided by the eighth embodiment of the present invention;

图13为本发明第九实施例所提供的短路保护电路在总线驱动器中应用的原理图;13 is a schematic diagram of the application of the short-circuit protection circuit provided in the ninth embodiment of the present invention in a bus driver;

图14为本发明第九实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图10中的所有单元提供了具体的电路;14 is a schematic diagram of the application of the short-circuit protection circuit provided in the ninth embodiment of the present invention in a bus driver, and the diagram provides a specific circuit for all the units in FIG. 10;

图15为本发明短路保护延迟时间设计的波形示意图。FIG. 15 is a schematic diagram of the waveform of the short-circuit protection delay time design of the present invention.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features of the embodiments may be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances for the embodiments of the application described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

应该理解的是,在说明书以、权利要求书以及说明书附图中,当描述有步骤接续至另一步骤时,该步骤可直接接续至该另一步骤,或者通过第三步骤接续至该另一步骤;当描述有元件/单元“接续”至另一元件/单元时,该元件/单元可“直接连接”至该另一元件/单元,或者通过第三元件/单元“连接”至该另一元件/单元。It should be understood that, in the description, the claims and the accompanying drawings, when a step is described as being connected to another step, the step can be directly connected to the other step, or connected to the other step through the third step. Step; when an element/unit is described as being "connected" to another element/unit, the element/unit may be "directly connected" to the other element/unit, or "connected" to the other element/unit through a third element/unit element/unit.

此外,本公开附图仅为本公开的示意图,并非一定是按比例绘制。附图中相同的标记表示相同或类似的部分,因而将省略对其重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以运用软件来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制装置中实现这些功能实体。Furthermore, the drawings of the present disclosure are merely schematic representations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.

第一实施例first embodiment

图3为本发明第一实施例所提供的短路保护方法的流程图,请参见图3,本实施例的短路保护方法应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路,上支路中的开关管为PMOS管,下支路中的开关管为NMOS管,总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护方法包括如下步骤:FIG. 3 is a flowchart of the short-circuit protection method provided by the first embodiment of the present invention. Please refer to FIG. 3. The short-circuit protection method of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2. The bus driver includes an upper branch and a In the lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube. When the bus driver is working normally, only one of the upper branch and the lower branch is turned on. Short circuit protection method It includes the following steps:

S101:判断上支路是否导通;S101: determine whether the upper branch is turned on;

当判断结果为上支路导通时,进一步执行如下步骤:When the judgment result is that the upper branch is turned on, the following steps are further performed:

S1021:将总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;S1021: Compare the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

S1022:将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;S1022: Compare the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result;

S103:依据第一短路比较结果和第一带载比较结果控制上支路中流过的电流大小,控制逻辑如下:S103: Control the magnitude of the current flowing in the upper branch according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

S1041:当所述输出电压≤第一短路阈值电压时,上支路中流过的电流由注入上支路中的第一预设电流决定;S1041: when the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

S1042:当第一短路阈值电压<所述输出电压≤第一带载阈值电压时,上支路中流过的电流由注入上支路中的第二预设电流决定;S1042: when the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

S1043:当第一带载阈值电压时<所述输出电压≤电源轨电压时,上支路中流过的电流由总线驱动器的驱动负载决定;S1043: When the first load threshold voltage < the output voltage≤ power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

所述第一预设电流<所述第二预设电流。The first preset current < the second preset current.

其中,步骤S1021和S1022同步进行,步骤S1041、S1042和S1043为步骤S103的具体情况之一,也就是步骤103具体执行时,只执行步骤S1041、S1042和S1043中的一项。Wherein, steps S1021 and S1022 are performed synchronously, and steps S1041, S1042 and S1043 are one of the specific situations of step S103, that is, when step 103 is specifically executed, only one of steps S1041, S1042 and S1043 is executed.

本实施例的短路保护方法目的在于改进上支路的温升问题和带载能力问题,分如下三种模式:The purpose of the short-circuit protection method of this embodiment is to improve the temperature rise problem and the load capacity problem of the upper branch, and is divided into the following three modes:

(1)轻载模式:此时对应步骤S1043,即第一带载阈值电压时<所述输出电压≤电源轨电压,此时上支路中流过的电流由总线驱动器的驱动负载决定,此模式下,负载较小,总线驱动器输出端口的输出电压较大,节点A和B能够提供足够的差分驱动电压,因此上支路中流过的电流由总线驱动器的驱动负载决定即可;(1) Light load mode: this corresponds to step S1043, that is, when the first load threshold voltage is <the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver, this mode Under the load, the load is small, the output voltage of the bus driver output port is large, and nodes A and B can provide sufficient differential driving voltage, so the current flowing in the upper branch can be determined by the driving load of the bus driver;

(2)重载模式:此时对应步骤S1042,即第一短路阈值电压<所述输出电压≤第一带载阈值电压,此时上支路中流过的电流由注入上支路中的第二预设电流决定,此模式下,负载较大,总线驱动器输出端口的输出电压降低,节点A和B已不能够提供足够的差分驱动电压,本实施例通过在上支路中注入第二预设电流,使得上支路中流过的电流由注入的第二预设电流决定,不仅能确保总线驱动器驱动级具备足够的驱动阻性负载和容性负载的能力,还将驱动级上支路的电流限制在可控范围内;(2) Heavy-load mode: this corresponds to step S1042, that is, the first short-circuit threshold voltage < the output voltage ≤ the first on-load threshold voltage, and the current flowing in the upper branch is injected into the upper branch by the second The preset current is determined. In this mode, the load is large, the output voltage of the bus driver output port is reduced, and nodes A and B can no longer provide enough differential driving voltage. In this embodiment, the second preset is injected into the upper branch. current, so that the current flowing in the upper branch is determined by the injected second preset current, which not only ensures that the bus driver driver stage has sufficient ability to drive resistive loads and capacitive loads, but also drives the current of the upper branch of the stage. limited to a controllable range;

(3)短路模式:此时对应步骤S1041,即所述输出电压≤第一短路阈值电压,此时上支路中流过的电流由注入上支路中的第一预设电流决定,此模式下,负载进一步增加,或者总线驱动器的输出端口异常短接,导致总线驱动器输出端口的输出电压更低,本实施例通过在上支路中注入第一预设电流,使得上支路中流过的电流由注入的第一预设电流决定,并且第一预设电流小于第二预设电流,促使总线驱动器在短路状态下上支路流过的电流被限制在较低水平,提高总线驱动器的可靠性。(3) Short-circuit mode: this corresponds to step S1041, that is, the output voltage ≤ the first short-circuit threshold voltage, and the current flowing in the upper branch is determined by the first preset current injected into the upper branch. In this mode , the load is further increased, or the output port of the bus driver is abnormally short-circuited, resulting in a lower output voltage of the output port of the bus driver. In this embodiment, the first preset current is injected into the upper branch, so that the current flowing in the upper branch It is determined by the injected first preset current, and the first preset current is smaller than the second preset current, so that the current flowing through the upper branch of the bus driver in the short-circuit state is limited to a lower level, and the reliability of the bus driver is improved. .

从上面的分析可知,本实施例,在上支路出现重载或者短路时,上支路中流过的电流被内部生成的不同大小的基准电流所合理限制,不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求上支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。It can be seen from the above analysis that in this embodiment, when the upper branch is overloaded or short-circuited, the current flowing in the upper branch is reasonably limited by the internally generated reference currents of different sizes, which can not only control the temperature rise of the bus driver, but also control the temperature rise of the bus driver. The reliability of the bus driver is improved, and the decoupling between the differential output voltage and the short-circuit current of the bus driver is achieved compared with the control strategy of reducing the number of switches connected in parallel in the prior art, so that the two no longer interact with each other. Therefore, there is no disadvantage that the current value of the upper branch is required to be very low for short-circuit recovery when electrified, and the load-carrying capability of the bus driver is improved within a wide range of positive and negative common-mode output voltages.

进一步地,在执行步骤S101时,由上支路中开关管栅极驱动信号的高低来判断上支路是否导通。Further, when step S101 is performed, whether the upper branch is turned on is determined by the level of the gate driving signal of the switch transistor in the upper branch.

由于上支路的开关管需要驱动信号控制其开通和关断,本实施例在判断上支路是否导通时,由上支路中开关管栅极驱动信号的高低来判断所述上支路是否导通,从而避免了需要增加额外的检测步骤。Since the switch tube of the upper branch needs a driving signal to control its turn-on and turn-off, in this embodiment, when judging whether the upper branch is turned on, the upper branch is judged by the level of the gate drive signal of the switch in the upper branch. whether it is turned on or not, thus avoiding the need to add additional detection steps.

第二实施例Second Embodiment

图4为本发明第二实施例所提供的短路保护方法的流程图,请参见图4,本实施例的短路保护方法应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路,上支路中的开关管为PMOS管,下支路中的开关管为NMOS管,总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护方法包括如下步骤:FIG. 4 is a flowchart of a short-circuit protection method provided by a second embodiment of the present invention. Please refer to FIG. 4. The short-circuit protection method of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2. The bus driver includes an upper branch and a In the lower branch, the switch tube in the upper branch is a PMOS tube, and the switch tube in the lower branch is an NMOS tube. When the bus driver is working normally, only one of the upper branch and the lower branch is turned on. Short circuit protection method It includes the following steps:

S201:判断下支路是否导通;S201: determine whether the lower branch is turned on;

当判断结果为下支路导通时,进一步执行如下步骤:When the judgment result is that the lower branch is turned on, the following steps are further performed:

S2021:将总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;S2021: Compare the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

S2022:将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;S2022: Compare the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

S203:依据第二短路比较结果和第二带载比较结果控制下支路中流过的电流大小,控制逻辑如下:S203: Control the magnitude of the current flowing in the lower branch according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

S2041:当0≤所述输出电压≤第二带载阈值电压时,下支路中流过的电流由总线驱动器的驱动负载决定;S2041: when 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

S2042:当第二带载阈值电压<所述输出电压≤第二短路阈值电压时,下支路中流过的电流由注入下支路中的第三预设电流决定;S2042: When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by the third preset current injected into the lower branch;

S2043:当第二短路阈值电压<所述输出电压时,下支路中流过的电流由注入下支路中的第四预设电流决定;S2043: when the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by the fourth preset current injected into the lower branch;

第三预设电流>第四预设电流。The third preset current>the fourth preset current.

其中,步骤S2021和S2022同步进行,步骤S2041、S2042和S2043为步骤S203的具体情况之一,也就是步骤203具体执行时,只执行步骤S2041、S2042和S2043中的一项。Wherein, steps S2021 and S2022 are performed synchronously, and steps S2041, S2042 and S2043 are one of the specific situations of step S203, that is, when step 203 is specifically executed, only one of steps S2041, S2042 and S2043 is executed.

本实施例的短路保护方法目的在于改进下支路的温升问题和带载能力问题,分如下三种模式:The purpose of the short-circuit protection method of the present embodiment is to improve the temperature rise problem and the load capacity problem of the lower branch, and is divided into the following three modes:

(1)轻载模式:此时对应步骤S2041,即0≤所述输出电压≤第二带载阈值电压时,此时下支路中流过的电流由总线驱动器的驱动负载决定,此模式下,负载较小,总线驱动器输出端口的输出电压较小,节点CAN-H和CAN-L能够提供足够的差分驱动电压,因此下支路中流过的电流由总线驱动器的驱动负载决定即可;(1) Light load mode: this corresponds to step S2041, that is, when 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver. In this mode, the load Small, the output voltage of the bus driver output port is small, the nodes CAN-H and CAN-L can provide enough differential driving voltage, so the current flowing in the lower branch can be determined by the driving load of the bus driver;

(2)重载模式:此时对应步骤S2042,即第二带载阈值电压<所述输出电压≤第二短路阈值电压时,此时下支路中流过的电流由注入下支路中的第三预设电流决定,此模式下,负载较大,总线驱动器输出端口的输出电压升高,节点CAN-H和CAN-L已不能够提供足够的差分驱动电压,本实施例通过在下支路中注入第三预设电流,使得下支路中流过的电流由注入的第三预设电流决定,不仅能确保总线驱动器驱动级具备足够的驱动阻性负载和容性负载的能力,还将驱动级下支路的电流限制在可控范围内;(2) Overload mode: this corresponds to step S2042, that is, when the second on-load threshold voltage < the output voltage ≤ the second short-circuit threshold voltage, the current flowing in the lower branch is injected into the lower branch by the third The preset current determines that in this mode, the load is large, the output voltage of the bus driver output port increases, and the nodes CAN-H and CAN-L can no longer provide enough differential driving voltage. The third preset current makes the current flowing in the lower branch determined by the injected third preset current, which not only ensures that the bus driver driver stage has sufficient ability to drive resistive loads and capacitive loads, but also lowers the driver stage. The current of the branch is limited within a controllable range;

(3)短路模式:此时对应步骤S2043,即第二短路阈值电压<所述输出电压时,此时下支路中流过的电流由注入下支路中的第四预设电流决定,此模式下,负载进一步增加,或者总线驱动器的输出端口异常短接,导致总线驱动器输出端口的输出电压更高,本实施例通过在下支路中注入第四预设电流,使得下支路中流过的电流由注入的第四预设电流决定,并且第三预设电流大于第四预设电流,促使总线驱动器在短路状态下下支路流过的电流被限制在较低水平,提高总线驱动器的可靠性。(3) Short-circuit mode: At this time, corresponding to step S2043, that is, when the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by the fourth preset current injected into the lower branch. In this mode , the load is further increased, or the output port of the bus driver is abnormally short-circuited, resulting in a higher output voltage of the output port of the bus driver. In this embodiment, a fourth preset current is injected into the lower branch, so that the current flowing in the lower branch is The injected fourth preset current is determined, and the third preset current is greater than the fourth preset current, so that the current flowing through the branch of the bus driver in the short-circuit state is limited to a lower level, thereby improving the reliability of the bus driver.

从上面的分析可知,本实施例,在下支路出现重载或者短路时,下支路中流过的电流被内部生成的不同大小的基准电流所合理限制,不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求下支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。It can be seen from the above analysis that in this embodiment, when the lower branch is overloaded or short-circuited, the current flowing in the lower branch is reasonably limited by the internally generated reference currents of different sizes, which can not only control the temperature rise of the bus driver, but also improve the The reliability of the bus driver is also compared with the control strategy of reducing the number of switches connected in parallel in the prior art, which realizes the decoupling between the differential output voltage of the bus driver and the short-circuit current, so that the two no longer restrict each other. , so that there is no short-circuit recovery requirement in the case of electrification that the current value of the lower branch is very low, and the load-carrying capability of the bus driver is improved within a wide range of positive and negative common-mode output voltages.

进一步地,在执行步骤S201时,由下支路中开关管栅极驱动信号的高低来判断下支路是否导通。Further, when step S201 is performed, whether the lower branch is turned on is determined by the level of the gate driving signal of the switch transistor in the lower branch.

由于下支路的开关管需要驱动信号控制其开通和关断,本实施例在判断下支路是否导通时,由下支路中开关管栅极驱动信号的高低来判断下支路是否导通,从而避免了需要增加额外的检测步骤。Since the switch tube of the lower branch needs a driving signal to control its turn-on and turn-off, in this embodiment, when judging whether the lower branch is turned on, the level of the gate drive signal of the switch tube in the lower branch is used to judge whether the lower branch is turned on or not. pass through, thus avoiding the need to add additional detection steps.

第三实施例Third Embodiment

图5为本发明第三实施例所提供的短路保护方法的流程图,请参见图5,本实施例的短路保护方法将第一实施例的方法和第二实施例的方法进行了合并。FIG. 5 is a flowchart of a short-circuit protection method provided by a third embodiment of the present invention. Please refer to FIG. 5 . The short-circuit protection method of this embodiment combines the method of the first embodiment and the method of the second embodiment.

容易理解的是,本实施例的短路保护方法目的在于同时改进上支路与下支路的温升问题和带载能力问题,本实施例中步骤S101和步骤S201同步进行,由于总线驱动器正常工作时,上支路的和所述下支路只有一个导通,因此在同一时刻,步骤S101和步骤S201只有一个的判断结果为“是”,并且判断为“是”的步骤,才会继续执行该步骤之后的其它步骤。当步骤S101判断为的判断结果为“是”时,包括三种工作模式,这三种工作模式与第一实施例相同,故不赘述;当步骤S201判断为的判断结果为“是”时,包括三种工作模式,这三种工作模式与第二实施例相同,也不赘述。It is easy to understand that the purpose of the short-circuit protection method in this embodiment is to simultaneously improve the temperature rise problem and the load capacity problem of the upper branch and the lower branch. In this embodiment, step S101 and step S201 are performed synchronously. At the same time, only one of the upper branch and the lower branch is turned on, so at the same moment, only one of the judgment results of step S101 and step S201 is "yes", and the step of judging "yes" will continue to be executed other steps after this step. When the judgment result judged in step S101 is "Yes", it includes three working modes, which are the same as the first embodiment, so they will not be repeated; when the judgment result judged in step S201 is "Yes", It includes three working modes, which are the same as those in the second embodiment, and will not be described again.

本实施例,无论是上支路出现重载或者短路,还是下支路出现重载或者短路,对应支路中流过的电流均会被内部生成的不同大小的基准电流所合理限制,从而不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管或下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求对应支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。In this embodiment, whether the upper branch is overloaded or short-circuited, or the lower branch is overloaded or short-circuited, the current flowing in the corresponding branch will be reasonably limited by the internally generated reference currents of different sizes, so that not only can The temperature rise of the bus driver is controlled, the reliability of the bus driver is improved, and the difference between the differential output voltage of the bus driver and the short-circuit current is realized compared with the control strategy of reducing the number of connected upper switches or lower switches in parallel in the prior art. The decoupling between the two makes the two no longer restrict each other, so that there is no short-circuit recovery requirement when the current value of the corresponding branch is very low, and the load capacity of the bus driver is improved within a wide range of positive and negative common mode output voltages. .

第四实施例Fourth Embodiment

图6为本发明第四实施例所提供的短路保护电路的原理框图,请参见图6,本实施例的短路保护电路应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路;上支路中的开关管106为PMOS管MP1,第一防倒灌单元105为二极管DP;PMOS管MP1的栅极驱动信号为GateP;下支路中的开关管206为NMOS管MN1,第二防倒灌单元206为二极管DN,NMOS管MN1的栅极驱动信号为GateN;总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护电路包括第一短路保护单元;FIG. 6 is a schematic block diagram of a short-circuit protection circuit provided by a fourth embodiment of the present invention. Please refer to FIG. 6. The short-circuit protection circuit of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2. The bus driver includes an upper branch and a The lower branch; the switch tube 106 in the upper branch is a PMOS transistor MP1, and the first anti-backflow unit 105 is a diode DP; the gate drive signal of the PMOS tube MP1 is GateP; the switch tube 206 in the lower branch is an NMOS transistor MN1 , the second anti-backflow unit 206 is a diode DN, and the gate drive signal of the NMOS transistor MN1 is GateN; when the bus driver works normally, only one of the upper branch and the lower branch is turned on, and the short-circuit protection circuit includes the first short-circuit protection unit;

第一短路保护单元包括:The first short-circuit protection unit includes:

第一判断单元,用于判断上支路是否导通;a first judging unit for judging whether the upper branch is turned on;

第一执行单元,用于当第一判断单元的判断结果为上支路导通时,进一步执行如下动作:The first execution unit is configured to further perform the following actions when the judgment result of the first judgment unit is that the upper branch is turned on:

将总线驱动器输出端口的输出电压与第一短路阈值电压进行比较,获得第一短路比较结果;comparing the output voltage of the output port of the bus driver with the first short-circuit threshold voltage to obtain a first short-circuit comparison result;

将所述输出电压与第一带载阈值电压进行比较,获得第一带载比较结果;comparing the output voltage with the first on-load threshold voltage to obtain a first on-load comparison result;

依据所述第一短路比较结果和所述第一带载比较结果控制所述上支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the upper branch is controlled according to the first short-circuit comparison result and the first on-load comparison result, and the control logic is as follows:

当所述输出电压≤第一短路阈值电压时,上支路中流过的电流由注入上支路中的第一预设电流决定;When the output voltage≤the first short-circuit threshold voltage, the current flowing in the upper branch is determined by the first preset current injected into the upper branch;

当第一短路阈值电压<所述输出电压≤第一带载阈值电压时,上支路中流过的电流由注入上支路中的第二预设电流决定;When the first short-circuit threshold voltage<the output voltage≤the first on-load threshold voltage, the current flowing in the upper branch is determined by the second preset current injected into the upper branch;

当第一带载阈值电压时<所述输出电压≤电源轨电压时,上支路中流过的电流由总线驱动器的驱动负载决定;When the first load threshold voltage is less than the output voltage≤power rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;

第一预设电流<第二预设电流。The first preset current < the second preset current.

容易理解的是,本实施例的短路保护电路目的在于改进上支路的温升问题和带载能力问题,当第一判断单元的判断结果为“是”时,第一执行单元包括三种工作模式,这三种工作模式与第一实施例相同,所带来的有益效果也相同,故不赘述。It is easy to understand that the purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the upper branch. When the judgment result of the first judgment unit is "Yes", the first execution unit includes three kinds of work. These three working modes are the same as those of the first embodiment, and the beneficial effects brought by them are also the same, so they will not be described in detail.

进一步地,第一判断单元由上支路中开关管栅极驱动信号的高低来判断上支路是否导通,从而避免了需要增加额外的检测单元。Further, the first judging unit judges whether the upper branch is turned on according to the level of the gate driving signal of the switch tube in the upper branch, thereby avoiding the need to add an additional detection unit.

第五实施例Fifth Embodiment

图7为本发明第五实施例所提供的短路保护电路在总线驱动器中应用的原理图,请参见图7,本实施例的短路保护电路应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路;上支路中的开关管106为PMOS管MP1,第一防倒灌单元105为二极管DP;PMOS管MP1的栅极驱动信号为GateP;下支路中的开关管206为NMOS管MN1,第二防倒灌单元206为二极管DN,NMOS管MN1的栅极驱动信号为GateN;总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护电路包括:FIG. 7 is a schematic diagram of the application of the short-circuit protection circuit provided in the fifth embodiment of the present invention in a bus driver. Please refer to FIG. 7. The short-circuit protection circuit of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2. The bus driver It includes an upper branch and a lower branch; the switch tube 106 in the upper branch is a PMOS tube MP1, and the first anti-backflow unit 105 is a diode DP; the gate drive signal of the PMOS tube MP1 is GateP; the switch tube in the lower branch 206 is an NMOS transistor MN1, the second anti-backflow unit 206 is a diode DN, and the gate drive signal of the NMOS transistor MN1 is GateN; when the bus driver is working normally, only one of the upper branch and the lower branch is turned on, short circuit protection The circuit includes:

第一比较器101,第一比较器101正相输入端用于连接总线驱动器的输出端口OUT、负相输入端用于输入第一短路阈值电压Vthp;第一比较器101的置位端用于输入上支路中开关管的栅极驱动信号GateP,实现判断上支路是否导通;当上支路中开关管的栅极驱动信号GateP为高电平时,第一比较器101的输出端被置位为高电平;当上支路中开关管的栅极驱动信号GateP为低电平时,第一比较器101的输出端输出第一短路比较结果;The first comparator 101, the positive-phase input terminal of the first comparator 101 is used to connect to the output port OUT of the bus driver, and the negative-phase input terminal is used to input the first short-circuit threshold voltage Vthp; the set terminal of the first comparator 101 is used to The gate drive signal GateP of the switch tube in the upper branch is input to determine whether the upper branch is turned on; when the gate drive signal GateP of the switch tube in the upper branch is at a high level, the output end of the first comparator 101 is Set to a high level; when the gate drive signal GateP of the switch in the upper branch is a low level, the output end of the first comparator 101 outputs the first short-circuit comparison result;

第一延迟单元102,第一延迟单元102的输入端用于接收第一比较器101的输出端电平,当第一比较器101的输出端电平为高电平时,第一延迟单元102用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当第一比较器101的输出端电平为低电平时,第一延迟单元102用于经过第一延时时间后由其输出端输出该低电平;The first delay unit 102, the input end of the first delay unit 102 is used to receive the level of the output end of the first comparator 101, when the level of the output end of the first comparator 101 is high, the first delay unit 102 uses In order to shape and transmit the high level, its output terminal outputs the corresponding high level; when the output terminal level of the first comparator 101 is low level, the first delay unit 102 is used to pass the first delay time. The low level is output by its output terminal after time;

第一电压控制电流单元103,第一电压控制电流单元的控制端连接第一延迟单元102的输出端,当第一电压控制电流单元103的控制端接收到高电平时,第一电压控制电流单元103的输出端输出第一恒定电流;当第一电压控制电流单元103的控制端接收到低电平时,第一电压控制电流单元103的输出端输出第二恒定电流,第一恒定电流>第二恒定电流;The first voltage-controlled current unit 103, the control terminal of the first voltage-controlled current unit is connected to the output terminal of the first delay unit 102, when the control terminal of the first voltage-controlled current unit 103 receives a high level, the first voltage-controlled current unit The output terminal of 103 outputs a first constant current; when the control terminal of the first voltage-controlled current unit 103 receives a low level, the output terminal of the first voltage-controlled current unit 103 outputs a second constant current, the first constant current > the second constant current;

第一电流比例单元104,第一电流比例单元104包括PMOS管MP2和PMS管MP3,PMOS管MP2的源极和PMS管MP3的源极连接在一起后用于连接电源轨,PMOS管MP2的漏极、PMOS管MP2的栅极和PMS管MP3的栅极连接在一起后连接第一电压控制电流单元103的输出端,PMOS管MP3的漏极用于连接上支路的防倒灌二极管DP的阳极。The first current proportional unit 104, the first current proportional unit 104 includes a PMOS transistor MP2 and a PMS transistor MP3, the source of the PMOS transistor MP2 and the source of the PMS transistor MP3 are connected together to connect the power rail, and the drain of the PMOS transistor MP2 The gate of the PMOS transistor MP2 and the gate of the PMOS transistor MP3 are connected together and then connected to the output end of the first voltage-controlled current unit 103. The drain of the PMOS transistor MP3 is used to connect the anode of the anti-backflow diode DP of the upper branch. .

需要说明的是,PMOS管MP2和PMS管MP3为低压PMOS管,PMOS管MP2和PMS管MP3以1:m(m为合适的自然数)的宽长比比例构成了电流镜的连接方式。上支路导通的情况下:当PMOS管MP3处于线性区工作时,流经PMOS管MP3的电流由驱动负载决定;当PMOS管MP3处于饱和区工作时,流经PMOS管MP3的电流由PMOS管MP3从PMOS管MP2处镜像得到的电流值决定。It should be noted that the PMOS transistor MP2 and the PMS transistor MP3 are low-voltage PMOS transistors, and the PMOS transistor MP2 and the PMS transistor MP3 form the connection mode of the current mirror with a ratio of width to length of 1:m (m is a suitable natural number). When the upper branch is turned on: when the PMOS tube MP3 is working in the linear region, the current flowing through the PMOS tube MP3 is determined by the driving load; when the PMOS tube MP3 is working in the saturation region, the current flowing through the PMOS tube MP3 is determined by the PMOS tube. The current value of the tube MP3 is determined by mirroring the PMOS tube MP2.

图8为本发明第五实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图7中的所有单元提供了具体的电路,请参见图8:FIG. 8 is a schematic diagram of the application of the short-circuit protection circuit provided in the fifth embodiment of the present invention in a bus driver. This diagram provides a specific circuit for all the units in FIG. 7, please refer to FIG. 8:

其中,第一延迟单元102包括:PMOS管MP4、NMOS管MN4、电容C1和施密特反相器SMT1;PMOS管MP4的栅极和NMOS管MN4的栅极连接在一起后作为第一延迟单元102的输入端,PMOS管MP4的源极用于连接电源轨,PMOS管MP4的漏极、NMOS管MN4的漏极、电容C1一端和施密特反相器SMT1的输入端连接在一起,NMOS管MN4的源极和电容C1另一端连接在一起后用于接地,施密特反相器SMT1的输出端作为第一延迟单元102的输出端。The first delay unit 102 includes: a PMOS transistor MP4, an NMOS transistor MN4, a capacitor C1 and a Schmitt inverter SMT1; the gate of the PMOS transistor MP4 and the gate of the NMOS transistor MN4 are connected together as a first delay unit The input terminal of 102, the source of the PMOS transistor MP4 is used to connect the power rail, the drain of the PMOS transistor MP4, the drain of the NMOS transistor MN4, one end of the capacitor C1 and the input terminal of the Schmitt inverter SMT1 are connected together, NMOS The source of the tube MN4 and the other end of the capacitor C1 are connected together for grounding, and the output end of the Schmitt inverter SMT1 is used as the output end of the first delay unit 102 .

其中,第一电压控制电流单元103包括:开关管S1、第一基准电流IP1和第二基准电流IP2;开关管S1的控制端作为第一电压控制电流单元103的控制端,开关管S1的一端和第二基准电流IP2的一端连接在一起后作为第一电压控制电流单元103的输出端,开关管S1的另一端连接第一基准电流IP1的一端,第一基准电流IP1的另一端用于输入第一基准电流信号,第二基准电流IP2另一端用于输入第二基准电流信号。The first voltage-controlled current unit 103 includes: a switch S1, a first reference current IP1 and a second reference current IP2; the control end of the switch S1 serves as the control end of the first voltage-controlled current unit 103, and one end of the switch S1 It is connected with one end of the second reference current IP2 as the output end of the first voltage-controlled current unit 103, the other end of the switch S1 is connected to one end of the first reference current IP1, and the other end of the first reference current IP1 is used for input The other end of the first reference current signal and the second reference current IP2 is used to input the second reference current signal.

需要说明的是,第一基准电流IP1和第二基准电流IP2的电流大小可以根据正常工作时总线驱动器驱动能力的要求和短路状态下限流值设定的大小来选定,且第一基准电流IP1和第二基准电流IP2的电流均由基准电流沉向上提供。It should be noted that the current sizes of the first reference current IP1 and the second reference current IP2 can be selected according to the requirements of the bus driver’s driving capability during normal operation and the current limit value set in the short-circuit state, and the first reference current IP1 and the second reference current IP2 are provided upward by the reference current sink.

本实施例中,PMOS管MP2的栅极电压和PMOS管MP3的栅极电压VGP已由第一电压控制电流单元103的输出电流所决定,电源轨电压VCC为固定值,总线驱动器输出端口的输出电压VOUT为变化值。In this embodiment, the gate voltage of the PMOS transistor MP2 and the gate voltage VGP of the PMOS transistor MP3 are determined by the output current of the first voltage control current unit 103, the power rail voltage VCC is a fixed value, and the output of the bus driver output port The voltage VOUT is a changing value.

PMOS管MP2和PMOS管MP3工作在饱和区的条件为|Vds|>|Vgs|-|Vth|,其中Vgs为MOS管的栅源极电压,Vds为MOS管的漏源极电压,Vth为MOS管的阈值电压,三者均为负值。The condition for PMOS transistor MP2 and PMOS transistor MP3 to work in the saturation region is |Vds|>|Vgs|-|Vth|, where Vgs is the gate-source voltage of the MOS transistor, Vds is the drain-source voltage of the MOS transistor, and Vth is the MOS transistor The threshold voltage of the tube, all three are negative.

其中PMOS管MP2作为电流镜的输入管,其栅漏极短接,此时|Vds|=|Vgs|,因此始终会满足|Vds|>|Vgs|-|Vth|,PMOS管MP2始终工作在饱和区。Among them, the PMOS tube MP2 is used as the input tube of the current mirror, and its gate and drain are short-circuited. At this time, |Vds|=|Vgs|, so it will always satisfy |Vds|>|Vgs|-|Vth|, and the PMOS tube MP2 always works at saturation region.

其中PMOS管MP2作为电流镜的输出管,PMOS管MP3也工作在饱和区是其从PMOS管MP2处镜像电流的必要条件,此时(VCC-VDMP3)>(VCC-VGP-|Vth MP3|),简化该式子后有VGP>VDMP3-|VthMP3|,其中VDMP3为PMOS管MP3的漏极电压,VthMP3为其阈值电压,由于VDMP3=VDP+|VDSMP1|+VOUT,其中VDP为二极管DP的正向导通压降,VDSMP1为PMOS管MP1的漏源极压降,代入上述式子VGP>VDMP3-|VthMP3|有:VOUT<VGP-VDP-|VDSMP1+|VthMP3|,也就是当VOUT<VGP-VDP-|VDSMP1+|VthMP3|时PMOS管MP3工作在饱和区,VGP、VDP、|VDSMP1|和|VthMP3|都是固定值,因此通过设计VGP、VDP、|VDSMP1|和|Vth|的取值可以设计PMOS管MP3的工作状态从线性区进入饱和区的阈值,该阈值即为VGP-VDP-|VDSMP1+|VthMP3|。The PMOS tube MP2 is used as the output tube of the current mirror, and the PMOS tube MP3 also works in the saturation region, which is a necessary condition for mirroring the current from the PMOS tube MP2. At this time, (VCC-VDMP3)>(VCC-VGP-|Vth MP3|) , after simplifying the formula, there is VGP>VDMP3-|VthMP3|, where VDMP3 is the drain voltage of the PMOS transistor MP3, and VthMP3 is its threshold voltage. Since VDMP3=VDP+|VDSMP1|+VOUT, where VDP is the forward direction of the diode DP Pass voltage drop, VDSMP1 is the drain-source voltage drop of PMOS transistor MP1, substitute into the above formula VGP>VDMP3-|VthMP3|: VOUT<VGP-VDP-|VDSMP1+|VthMP3|, that is, when VOUT<VGP-VDP- When |VDSMP1+|VthMP3|, the PMOS tube MP3 works in the saturation region, and VGP, VDP, |VDSMP1| and |VthMP3| are all fixed values. Therefore, by designing the values of VGP, VDP, |VDSMP1| and |Vth|, the PMOS can be designed The threshold value of the working state of the tube MP3 entering the saturation region from the linear region is VGP-VDP-|VDSMP1+|VthMP3|.

从上面的分析可知,本实施例的发明构思与第一实施例和第四实施例相同,由于本实施例中的PMOS管MP3的工作状态从线性区进入饱和需要满足VOUT小于上述阈值VGP-VDP-|VDSMP1+|VthMP3|的条件,该阈值可以视为第一实施例和第四实施例中的第一带载阈值电压,从而本实施例利用PMOS管MP3天然的工作特性实现了将输出电压VOUT与第一带载阈值电压进行比较的功能,获得第一带载比较结果,并依据第一带载比较结果执行相关动作的功能。It can be seen from the above analysis that the inventive concept of this embodiment is the same as that of the first and fourth embodiments. Since the working state of the PMOS transistor MP3 in this embodiment enters saturation from the linear region, it needs to satisfy that VOUT is less than the above-mentioned threshold VGP-VDP -|VDSMP1+|VthMP3|, the threshold can be regarded as the first load threshold voltage in the first embodiment and the fourth embodiment, so this embodiment utilizes the natural working characteristics of the PMOS transistor MP3 to realize the output voltage VOUT The function of comparing with the first on-load threshold voltage, obtaining the first on-load comparison result, and executing the relevant action according to the first on-load comparison result.

本实施例的短路保护电路目的在于改进上支路的温升问题和带载能力问题,下面将结合图8电路对本实施例的工作原理进行分析。为了方便讲述理解,下面的分析将阈值VGP-VDP-|VDSMP1|+|VthMP3|直接视为VGP,在实际的电路设计时,将|VthMP3|-VDP-|VDSMP1|设计为零也能实现VGP-VDP-|VDSMP1|+|VthMP3|=VGP的效果。容易理解的是,总线驱动器的输出电压VOUT在没有采取任何短路保护措施时,随着负载的逐渐增加,即上支路中流过的电流逐渐增加,本实施例中的总线驱动器将依次工作于轻载模式、重载模式和短路模式,总线驱动器输出端口的输出电压VOUT将逐渐减小,为了实现本实施例的发明目的,本实施例的PMOS管MP3工作于饱和区时负载电流应当小于总线驱动器上支路出现短路时其中流过的电流,从而对应的阈值VGP在设计时应当小于第一短路保护阈值Vthp,即Vthp<VGP。The purpose of the short-circuit protection circuit of this embodiment is to improve the temperature rise problem and the load capacity problem of the upper branch. The working principle of this embodiment will be analyzed below with reference to the circuit of FIG. 8 . In order to facilitate understanding, the following analysis regards the threshold VGP-VDP-|VDSMP1|+|VthMP3| as VGP directly. In actual circuit design, VGP can also be realized by designing |VthMP3|-VDP-|VDSMP1| to zero -VDP-|VDSMP1|+|VthMP3|=Effect of VGP. It is easy to understand that, when the output voltage VOUT of the bus driver does not take any short-circuit protection measures, as the load gradually increases, that is, the current flowing in the upper branch increases gradually, the bus driver in this embodiment will work in turn in the light mode. In load mode, heavy load mode and short-circuit mode, the output voltage VOUT of the output port of the bus driver will gradually decrease. In order to achieve the purpose of the invention of this embodiment, when the PMOS transistor MP3 of this embodiment works in the saturation region, the load current should be smaller than the bus driver. The current flowing in the upper branch when a short circuit occurs, so the corresponding threshold VGP should be smaller than the first short circuit protection threshold Vthp in design, that is, Vthp<VGP.

基于上述阈值的设计条件,本实施例的包括如下三种模式:Based on the design conditions of the above thresholds, the present embodiment includes the following three modes:

(1)轻载模式:负载较小,总线驱动器输出端口的输出电压VOUT较大,当VGP<VOUT≤VCC时,第一比较器101正相输入端大于负相输入端,第一比较器101输出的高电平经第一延迟单元102控制第一电压控制电流单元103的开关管S1闭合,从而选定第一基准电流IP1和第二基准电流IP2之和提供给第一电流比例单元104的输入端,但此时由于VOUT>VGP,第一电流比例单元103中的低压PMOS管MP3处于线性区,不具备从PMOS管MP2处镜像电流的功能,此时PMOS管MP3内阻较低,其源漏之间损耗的压降较小,流经驱动上支路的电流大小由驱动输出的负载完全决定;(1) Light load mode: the load is small, and the output voltage VOUT of the output port of the bus driver is relatively large. When VGP<VOUT≤VCC, the positive-phase input terminal of the first comparator 101 is larger than the negative-phase input terminal, and the first comparator 101 The output high level is controlled by the first delay unit 102 to close the switch S1 of the first voltage-controlled current unit 103, so that the sum of the first reference current IP1 and the second reference current IP2 is selected to be provided to the first current proportional unit 104. The input terminal, but at this time because VOUT>VGP, the low-voltage PMOS transistor MP3 in the first current proportional unit 103 is in the linear region, and does not have the function of mirroring the current from the PMOS transistor MP2. At this time, the internal resistance of the PMOS transistor MP3 is low, and its The voltage drop lost between the source and drain is small, and the current flowing through the upper branch of the driver is completely determined by the load of the driver output;

(2)重载模式:随着驱动输出负载增加,总线驱动器输出端口的输出电压减小,当Vthp<VOUT≤VGP时,第一比较器101正相输入端仍然大于负相输入端,第一比较器101仍然输出高电平,该高电平经第一延迟单元102控制第一电压控制电流单元103的开关管S1闭合,从而仍然选定第一基准电流IP1和第二基准电流IP2之和提供给第一电流比例单元104的输入端,但此时由于VOUT≤VGP,第一电流比例单元103中的低压PMOS管MP3开始进入饱和区,能够镜像PMOS管MP2上的基准电流,因此第一电流比例单元103能够限定流经驱动上支路的电流值,为(IP1+IP2)乘以第一电流比例单元103所设计的低压PMOS间的比例值m,即(IP1+IP2)*m,确保总线驱动器中的驱动级具备驱动阻性负载和容性负载的能力,同时将上支路的电流限制在可控范围内;(2) Heavy load mode: as the drive output load increases, the output voltage of the bus driver output port decreases. When Vthp<VOUT≤VGP, the positive phase input terminal of the first comparator 101 is still larger than the negative phase input terminal, and the first comparator 101 is still larger than the negative phase input terminal. The comparator 101 still outputs a high level, which is controlled by the first delay unit 102 to control the switch S1 of the first voltage-controlled current unit 103 to close, so that the sum of the first reference current IP1 and the second reference current IP2 is still selected It is provided to the input end of the first current proportional unit 104, but at this time because VOUT≤VGP, the low-voltage PMOS transistor MP3 in the first current proportional unit 103 begins to enter the saturation region, which can mirror the reference current on the PMOS transistor MP2, so the first The current proportional unit 103 can limit the current value flowing through the driving upper branch, which is (IP1+IP2) multiplied by the proportional value m between the low-voltage PMOSs designed by the first current proportional unit 103, that is, (IP1+IP2)*m, Ensure that the driver stage in the bus driver has the ability to drive resistive and capacitive loads, while limiting the current in the upper branch to a controllable range;

(3)短路模式:随着驱动输出负载进一步增加,或者端口异常短接,导致VOUT更低,当VOUT≤Vthp时,第一比较器101将输出低电平给第一延迟单元102,第一延迟单元102中的PMOS管MP4导通,电源轨经过PMOS管MP4向电容C1充电,直到电容C1上的压降达到施密特反相器SMT1的翻转点,即经过一段设定的延迟时间,再输出低电平控制第一电压控制电流单元103中的开关管S1断开,只选定第二基准电流IP2提供给第一电流比例单元104,此时VOUT很低,第一电流比例单元104中的低压PMOS管MP3处于饱和区,与PMOS管MP2构成的电流镜保持镜像作用,此时第一电流比例单元104限定流经上支路的电流值为第二基准电流IP2乘以第一电流比例单元104所设计的低压PMOS间的比例值m,即IP2*m,促使总线驱动器在短路状态下上支路的电流被限制在较低水平,提高总线驱动器的可靠性。(3) Short-circuit mode: as the drive output load further increases, or the port is abnormally short-circuited, resulting in lower VOUT, when VOUT≤Vthp, the first comparator 101 will output a low level to the first delay unit 102, the first The PMOS transistor MP4 in the delay unit 102 is turned on, and the power rail charges the capacitor C1 through the PMOS transistor MP4 until the voltage drop on the capacitor C1 reaches the flip point of the Schmitt inverter SMT1, that is, after a set delay time, Then output a low level to control the switch S1 in the first voltage control current unit 103 to turn off, and only select the second reference current IP2 to provide it to the first current proportional unit 104. At this time, VOUT is very low, and the first current proportional unit 104 The low-voltage PMOS transistor MP3 in the middle is in the saturation region, and the current mirror formed by the PMOS transistor MP2 maintains a mirror effect. At this time, the first current proportional unit 104 limits the current value flowing through the upper branch to the second reference current IP2 multiplied by the first current. The proportional value m between the low-voltage PMOSs designed by the proportional unit 104, ie IP2*m, makes the current of the upper branch of the bus driver be limited to a lower level in a short-circuit state, thereby improving the reliability of the bus driver.

本实施例的发明构思与第一实施例和第四实施例相同,也是在上支路出现重载或者短路时,上支路中流过的电流被第一电压控制电流单元103生成的不同大小的基准电流(相当于第一实施例和第四实施例中外部注入的电流)所合理所限制,不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求上支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。The inventive concept of this embodiment is the same as that of the first and fourth embodiments. When the upper branch is overloaded or short-circuited, the current flowing in the upper branch is generated by the first voltage-controlled current unit 103 of different magnitudes. Reasonably limited by the reference current (equivalent to the externally injected current in the first embodiment and the fourth embodiment), it can not only control the temperature rise of the bus driver, improve the reliability of the bus driver, but also reduce the parallel connection compared with the prior art. In terms of the control strategy of the number of conduction of the upper switch tube, the decoupling between the differential output voltage of the bus driver and the short-circuit current is realized, so that the two no longer restrict each other, so that there is no current value of the upper branch required for short-circuit recovery when electrified Very low disadvantage, improving the load capacity of the bus driver over a wide range of positive and negative common-mode output voltages.

第六实施例Sixth Embodiment

图9为本发明第六实施例所提供的短路保护电路在总线驱动器中应用的原理图,请参见图9,本实施例的短路保护电路应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路;上支路中的开关管106为PMOS管MP1,第一防倒灌单元105为二极管DP;PMOS管MP1的栅极驱动信号为GateP;下支路中的开关管206为NMOS管MN1,第二防倒灌单元206为二极管DN,NMOS管MN1的栅极驱动信号为GateN;总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护电路第二短路保护单元;FIG. 9 is a schematic diagram of the application of the short-circuit protection circuit provided in the sixth embodiment of the present invention in a bus driver. Please refer to FIG. 9. The short-circuit protection circuit of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2. The bus driver It includes an upper branch and a lower branch; the switch tube 106 in the upper branch is a PMOS tube MP1, and the first anti-backflow unit 105 is a diode DP; the gate drive signal of the PMOS tube MP1 is GateP; the switch tube in the lower branch 206 is an NMOS transistor MN1, the second anti-backflow unit 206 is a diode DN, and the gate drive signal of the NMOS transistor MN1 is GateN; when the bus driver is working normally, only one of the upper branch and the lower branch is turned on, short circuit protection The second short circuit protection unit of the circuit;

第二短路保护单元包括:The second short-circuit protection unit includes:

第二判断单元,用于判断所述下支路是否导通;a second judging unit, configured to judge whether the lower branch is turned on;

第二执行单元,用于当第二判断单元的判断结果为下支路导通时,进一步执行如下动作:The second execution unit is configured to further perform the following actions when the judgment result of the second judgment unit is that the lower branch is turned on:

将总线驱动器输出端口的输出电压与第二短路阈值电压进行比较,获得第二短路比较结果;comparing the output voltage of the output port of the bus driver with the second short-circuit threshold voltage to obtain a second short-circuit comparison result;

将所述输出电压与第二带载阈值电压进行比较,获得第二带载比较结果;comparing the output voltage with the second on-load threshold voltage to obtain a second on-load comparison result;

依据第二短路比较结果和第二带载比较结果控制下支路中流过的电流大小,控制逻辑如下:The magnitude of the current flowing in the lower branch is controlled according to the second short-circuit comparison result and the second on-load comparison result, and the control logic is as follows:

当0≤所述输出电压≤第二带载阈值电压时,下支路中流过的电流由总线驱动器的驱动负载决定;When 0≤the output voltage≤the second load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;

当第二带载阈值电压<所述输出电压≤第二短路阈值电压时,下支路中流过的电流由注入下支路中的第三预设电流决定;When the second on-load threshold voltage<the output voltage≤the second short-circuit threshold voltage, the current flowing in the lower branch is determined by the third preset current injected into the lower branch;

当第二短路阈值电压<所述输出电压时,下支路中流过的电流由注入下支路中的第四预设电流决定;When the second short-circuit threshold voltage < the output voltage, the current flowing in the lower branch is determined by the fourth preset current injected into the lower branch;

第三预设电流>第四预设电流。The third preset current>the fourth preset current.

容易理解的是,本实施例的短路保护电路目的在于改进下支路的温升问题和带载能力问题,当第二判断单元的判断结果为“是”时,第二执行单元包括三种工作模式,这三种工作模式与第二实施例相同,所带来的有益效果也相同,故不赘述。It is easy to understand that the purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the lower branch. When the judgment result of the second judgment unit is "Yes", the second execution unit includes three kinds of work. These three working modes are the same as those of the second embodiment, and the beneficial effects brought by them are also the same, so they will not be repeated.

进一步地,第二判断单元由下支路中开关管栅极驱动信号的高低来判断下支路是否导通,从而避免了需要增加额外的检测单元。Further, the second judging unit judges whether the lower branch is turned on according to the level of the gate driving signal of the switch tube in the lower branch, thereby avoiding the need to add an additional detection unit.

第七实施例Seventh Embodiment

图10为本发明第七实施例所提供的短路保护电路在总线驱动器中应用的原理图,请参见图7,本实施例的短路保护电路应用于图1和图2中的总线驱动器,总线驱动器包括上支路和下支路;上支路中的开关管106为PMOS管MP1,第一防倒灌单元105为二极管DP;PMOS管MP1的栅极驱动信号为GateP;下支路中的开关管206为NMOS管MN1,第二防倒灌单元206为二极管DN,NMOS管MN1的栅极驱动信号为GateN;总线驱动器正常工作时,上支路的和所述下支路只有一个导通,短路保护电路包括:10 is a schematic diagram of the application of the short-circuit protection circuit provided in the seventh embodiment of the present invention in a bus driver. Please refer to FIG. 7 . The short-circuit protection circuit of this embodiment is applied to the bus driver in FIG. 1 and FIG. 2 . It includes an upper branch and a lower branch; the switch tube 106 in the upper branch is a PMOS tube MP1, and the first anti-backflow unit 105 is a diode DP; the gate drive signal of the PMOS tube MP1 is GateP; the switch tube in the lower branch 206 is an NMOS transistor MN1, the second anti-backflow unit 206 is a diode DN, and the gate drive signal of the NMOS transistor MN1 is GateN; when the bus driver is working normally, only one of the upper branch and the lower branch is turned on, short circuit protection The circuit includes:

第二比较器201,第二比较器201正相输入端用于输入第二短路阈值电压Vthn、负相输入端用于输入总线驱动器输出端口的输出电压;第二比较器201的置位端用于输入下支路中开关管的栅极驱动信号GateN,实现判断下支路是否导通;当下支路中开关管的栅极驱动信号GateN为低电平时,第二比较器201的输出端被置位为高电平;当上支路中开关管的栅极驱动信号GateN为高电平时,第二比较器201的输出端输出所述第二短路比较结果;The second comparator 201, the positive-phase input terminal of the second comparator 201 is used to input the second short-circuit threshold voltage Vthn, the negative-phase input terminal is used to input the output voltage of the output port of the bus driver; the set terminal of the second comparator 201 is used for The gate drive signal GateN of the switch tube in the lower branch is input to determine whether the lower branch is turned on; when the gate drive signal GateN of the switch tube in the lower branch is at a low level, the output end of the second comparator 201 is Set to a high level; when the gate drive signal GateN of the switch tube in the upper branch is a high level, the output end of the second comparator 201 outputs the second short-circuit comparison result;

第二延迟单元202,第二延迟单元202的输入端用于接收第二比较器201的输出端电平,当第二比较器201的输出端电平为高电平时,第二延迟单元202用于对该高电平进行整形和传递,由其输出端输出相应的高电平;当第二比较器201的输出端电平为低电平时,第二延迟单元202用于经过第二延时时间后由其输出端输出该低电平;In the second delay unit 202, the input terminal of the second delay unit 202 is used to receive the level of the output terminal of the second comparator 201. When the level of the output terminal of the second comparator 201 is high, the second delay unit 202 uses In order to shape and transmit the high level, its output terminal outputs the corresponding high level; when the output terminal level of the second comparator 201 is low level, the second delay unit 202 is used to pass the second delay time. The low level is output by its output terminal after time;

第二电压控制电流单元203,第二电压控制电流单元203的控制端连接第二延迟单元202的输出端,当第二电压控制电流单元203的控制端接收到高电平时,第二电压控制电流单元203的输出端输出第三恒定电流;当第二电压控制电流单元203的控制端接收到低电平时,第二电压控制电流单元203的输出端输出第四恒定电流,第三恒定电流>第四恒定电流;The second voltage-controlled current unit 203, the control terminal of the second voltage-controlled current unit 203 is connected to the output terminal of the second delay unit 202, when the control terminal of the second voltage-controlled current unit 203 receives a high level, the second voltage-controlled current unit 203 The output terminal of the unit 203 outputs a third constant current; when the control terminal of the second voltage-controlled current unit 203 receives a low level, the output terminal of the second voltage-controlled current unit 203 outputs a fourth constant current, the third constant current > the third constant current Four constant currents;

第二电流比例单元204,第二电流比例单元204包括NMOS管MN2和NMOS管MN3,NMOS管MN2的源极和NMS管MN3的源极连接在一起后用于接地,NMOS管MN2的漏极、NMOS管MN2的栅极和NMS管MN3的栅极连接在一起后连接第二电压控制电流单元203的输出端,NMOS管MN3的漏极用于连接下支路的NMOS管的源极。The second current proportional unit 204, the second current proportional unit 204 includes an NMOS transistor MN2 and an NMOS transistor MN3, the source of the NMOS transistor MN2 and the source of the NMS transistor MN3 are connected together for grounding, and the drain of the NMOS transistor MN2, The gate of the NMOS transistor MN2 and the gate of the NMS transistor MN3 are connected together and then connected to the output terminal of the second voltage-controlled current unit 203. The drain of the NMOS transistor MN3 is used to connect to the source of the NMOS transistor of the lower branch.

需要说明的是,NMOS管MN2和NMOS管为低压NMOS管,NMOS管MN2和NMOS管以1:n(n为合适的自然数)的宽长比比例构成了电流镜的连接方式。下支路导通的情况下:当NMOS管MN3处于线性区工作时,流经NMOS管MN3的电流由驱动负载决定;当NMOS管MN3处于饱和区工作时,流经NMOS管MN3的电流由NMOS管MN3从NMOS管MN2处镜像得到的电流值决定。It should be noted that the NMOS transistor MN2 and the NMOS transistor are low-voltage NMOS transistors, and the NMOS transistor MN2 and the NMOS transistor form the connection mode of the current mirror with a ratio of width to length of 1:n (n is a suitable natural number). When the lower branch is turned on: when the NMOS transistor MN3 is operating in the linear region, the current flowing through the NMOS transistor MN3 is determined by the driving load; when the NMOS transistor MN3 is operating in the saturation region, the current flowing through the NMOS transistor MN3 is determined by the NMOS transistor. The transistor MN3 is determined by the current value mirrored from the NMOS transistor MN2.

图11为本发明第五实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图10中的所有单元提供了具体的电路,请参见图11:FIG. 11 is a schematic diagram of the application of the short-circuit protection circuit provided in the fifth embodiment of the present invention in a bus driver. This diagram provides a specific circuit for all the units in FIG. 10, please refer to FIG. 11:

其中,第二延迟单元202包括:PMOS管MP5、NMOS管MN5、电容C2和施密特反相器SMT2;PMOS管MP5的栅极和NMOS管MN5的栅极连接在一起后作为第二延迟单元的输入端,PMOS管MP5的源极用于连接电源轨,PMOS管MP5的漏极、NMOS管MN5的漏极、电容C2一端和施密特反相器SMT2的输入端连接在一起,NMOS管MN5的源极和电容C2另一端连接在一起后用于接地,施密特反相器SMT2的输出端作为第二延迟单元202的输出端。The second delay unit 202 includes: a PMOS transistor MP5, an NMOS transistor MN5, a capacitor C2 and a Schmitt inverter SMT2; the gate of the PMOS transistor MP5 and the gate of the NMOS transistor MN5 are connected together as a second delay unit The input end of the PMOS tube MP5 is used to connect the power rail, the drain of the PMOS tube MP5, the drain of the NMOS tube MN5, one end of the capacitor C2 and the input end of the Schmitt inverter SMT2 are connected together, the NMOS tube The source of the MN5 and the other end of the capacitor C2 are connected together for grounding, and the output end of the Schmitt inverter SMT2 is used as the output end of the second delay unit 202 .

其中,第二电压控制电流单元包括:开关管S2、第三基准电流IN1和第四基准电流IN2;开关管S2的控制端作为第二电压控制电流单元203的控制端,开关管S2的一端和第四基准电流IN2的一端连接在一起后作为第二电压控制电流单元203的输出端,开关管S2的另一端连接第三基准电流IN1的一端,第三基准电流IN1的另一端用于输入第三基准电流信号,第四基准电流IN2另一端用于输入第四基准电流信号。The second voltage-controlled current unit includes: a switch tube S2, a third reference current IN1 and a fourth reference current IN2; the control end of the switch tube S2 serves as the control end of the second voltage-controlled current unit 203, and one end of the switch tube S2 and One end of the fourth reference current IN2 is connected together as the output end of the second voltage-controlled current unit 203, the other end of the switch S2 is connected to one end of the third reference current IN1, and the other end of the third reference current IN1 is used to input the first Three reference current signals, the other end of the fourth reference current IN2 is used to input the fourth reference current signal.

需要说明的是,第三基准电流IN1和第四基准电流IN2的电流大小可以根据正常工作时总线驱动器驱动能力的要求和短路状态下限流值设定的大小来选定,且第三基准电流IN1和第四基准电流IN2的电流均由基准电流源向下提供。It should be noted that the current sizes of the third reference current IN1 and the fourth reference current IN2 can be selected according to the requirements of the bus driver’s driving capability during normal operation and the current limit value set in the short-circuit state, and the third reference current IN1 and the fourth reference current IN2 are provided downward by the reference current source.

本实施例中,NMOS管MN2的栅极电压和NMOS管MN3的栅极电压VGN已由第二电压控制电流单元203的输出电流所决定,电源轨电压VCC为固定值,总线驱动器输出端口的输出电压VOUT为变化值。In this embodiment, the gate voltage of the NMOS transistor MN2 and the gate voltage VGN of the NMOS transistor MN3 are determined by the output current of the second voltage control current unit 203, the power rail voltage VCC is a fixed value, and the output of the bus driver output port The voltage VOUT is a changing value.

NMOS管MN2和NMOS管MN3工作在饱和区的条件为Vds>Vgs-Vth,其中Vgs为MOS管的栅源极电压,Vds为MOS管的漏源极电压,Vth为MOS管的阈值电压,三者均为正值。The condition for NMOS transistor MN2 and NMOS transistor MN3 to work in the saturation region is Vds>Vgs-Vth, where Vgs is the gate-source voltage of the MOS transistor, Vds is the drain-source voltage of the MOS transistor, and Vth is the threshold voltage of the MOS transistor. Both are positive values.

其中NMOS管MN2作为电流镜的输入管,其栅漏极短接,此时Vds=Vgs,因此始终会满足Vds>Vgs-Vth,NMOS管MN2始终工作在饱和区。The NMOS transistor MN2 is used as the input transistor of the current mirror, and its gate and drain are short-circuited. At this time, Vds=Vgs, so Vds>Vgs-Vth is always satisfied, and the NMOS transistor MN2 always works in the saturation region.

其中NMOS管MN2作为电流镜的输出管,NMOS管MN3也工作在饱和区是其从NMOS管MN2处镜像电流的必要条件,此时VDMN3>VGN-VthMN3,其中VDMP3为NMOS管MN3的漏极电压,VthMN3为NMOS管MN3的阈值电压,由于VDMN3=VOUT-VDN-VDSMN1,其中VDN为二极管DN的正向导通压降,VDSMN1为NMOS管MN1的漏源极压降,代入上述式子VDMN3>VGN-VthMN3有:VOUT>Among them, the NMOS transistor MN2 is used as the output tube of the current mirror, and the NMOS transistor MN3 also works in the saturation region, which is a necessary condition for mirroring the current from the NMOS transistor MN2. At this time, VDMN3>VGN-VthMN3, where VDMP3 is the drain voltage of the NMOS transistor MN3. , VthMN3 is the threshold voltage of the NMOS transistor MN3, since VDMN3=VOUT-VDN-VDSMN1, where VDN is the forward voltage drop of the diode DN, and VDSMN1 is the drain-source voltage drop of the NMOS transistor MN1. Substitute into the above formula VDMN3>VGN -VthMN3 has: VOUT>

VGN+VDP+VDSMN1-VthMN3,也就是当VOUT>VGN+VDP+VDSMN1-VthMN3时NMOS管MN3工作在饱和区,VGN、VDP、VDSMN1和VthMN3都是固定值,因此通过设计VGN、VDP、VDSMN1和VthMN3的取值可以设计NMOS管MN3的工作状态从线性区进入饱和区的阈值,该阈值即为VGN+VDP+VDSMN1-VthMN3。VGN+VDP+VDSMN1-VthMN3, that is, when VOUT>VGN+VDP+VDSMN1-VthMN3, NMOS transistor MN3 works in the saturation region, VGN, VDP, VDSMN1 and VthMN3 are all fixed values, so by designing VGN, VDP, VDSMN1 and The value of VthMN3 can design the threshold value of the working state of the NMOS transistor MN3 from the linear region to the saturation region, and the threshold value is VGN+VDP+VDSMN1-VthMN3.

从上面的分析可知,本实施例的发明构思与第二实施例和第五实施例相同,由于本实施例中的NMOS管MN3的工作状态从线性区进入饱和需要满足VOUT大于上述阈值VGN+VDP+VDSMN1-VthMN3的条件,该阈值可以视为第二实施例和第五实施例中的第二带载阈值电压,从而本实施例利用NMOS管MN3天然的工作特性实现了将输出电压VOUT与第二带载阈值电压进行比较的功能,获得第二带载比较结果,并依据第二带载比较结果执行相关动作的功能。It can be seen from the above analysis that the inventive concept of this embodiment is the same as that of the second and fifth embodiments. Since the working state of the NMOS transistor MN3 in this embodiment enters saturation from the linear region, it needs to satisfy that VOUT is greater than the above-mentioned threshold VGN+VDP The condition of +VDSMN1-VthMN3, the threshold can be regarded as the second load threshold voltage in the second embodiment and the fifth embodiment, so this embodiment uses the natural working characteristics of the NMOS transistor MN3 to realize the output voltage VOUT and the first A function of comparing two on-load threshold voltages, obtaining a second on-load comparison result, and performing related actions according to the second on-load comparison result.

本实施例的短路保护电路目的在于改进下支路的温升问题和带载能力问题,下面将结合图11电路对本实施例的工作原理进行分析。为了方便讲述理解,下面的分析将阈值VGN+VDP+VDSMN1-VthMN3直接视为VGN,在实际的电路设计时,将VDP+VDSMN1-VthMN3设计为零也能实现VGN+VDP+VDSMN1-VthMN3=VGN的效果。容易理解的是,总线驱动器的输出电压VOUT在没有采取任何短路保护措施时,随着负载的逐渐增加,即下支路中流过的电流逐渐增加,本实施例中的总线驱动器将依次工作于轻载模式、重载模式和短路模式,总线驱动器输出端口的输出电压VOUT将逐渐增加,为了实现本实施例的发明目的,本实施例的NMOS管MN3工作于饱和区时负载电流应当大于总线驱动器上支路出现短路时其中流过的电流,从而对应的阈值VGP在设计时应当大于第二短路保护阈值Vthn,即Vthn>VGN。The purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the lower branch. The working principle of this embodiment will be analyzed below with reference to the circuit in FIG. 11 . In order to facilitate understanding, the following analysis regards the threshold VGN+VDP+VDSMN1-VthMN3 as VGN directly. In the actual circuit design, VDP+VDSMN1-VthMN3 can be designed to be zero to achieve VGN+VDP+VDSMN1-VthMN3=VGN Effect. It is easy to understand that, when the output voltage VOUT of the bus driver does not take any short-circuit protection measures, as the load gradually increases, that is, the current flowing in the lower branch gradually increases, the bus driver in this embodiment will work in turn in the light mode. In load mode, heavy load mode and short-circuit mode, the output voltage VOUT of the output port of the bus driver will gradually increase. In order to achieve the purpose of the invention of this embodiment, when the NMOS transistor MN3 of this embodiment works in the saturation region, the load current should be greater than that of the bus driver. The current flowing in the branch circuit when a short circuit occurs, so the corresponding threshold value VGP should be greater than the second short circuit protection threshold value Vthn during design, that is, Vthn>VGN.

本实施例的短路保护电路目的在于改进下支路的温升问题和带载能力问题,结合图11电路进行分析,包括如下三种模式:The purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the lower branch. The circuit in Fig. 11 is analyzed, including the following three modes:

(1)轻载模式:负载较小,总线驱动器输出端口的输出电压VOUT较小,当0≤VOUT≤VGN,第二比较器201负相输入端小于正相输入端,第二比较器201输出的高电平经第二延迟单元202控制第二电压控制电流单元203的开关管S2闭合,从而选定第三基准电流IP3和第四基准电流IN2之和提供给第二电流比例单元203的输入端,但此时由于VOUT≤VGN,第二电流比例单元203中的低压NMOS管MN3处于线性区,不具备从NMOS管MN2处镜像电流的功能,此时NMOS管MN3内阻较低,其源漏之间损耗的压降较小,流经下支路的电流大小由驱动输出的负载完全决定;(1) Light load mode: the load is small, the output voltage VOUT of the output port of the bus driver is small, when 0≤VOUT≤VGN, the negative phase input terminal of the second comparator 201 is smaller than the positive phase input terminal, and the second comparator 201 outputs The high level of the second delay unit 202 controls the switch S2 of the second voltage-controlled current unit 203 to close, so that the sum of the third reference current IP3 and the fourth reference current IN2 is selected to be provided to the input of the second current proportional unit 203 However, at this time, since VOUT≤VGN, the low-voltage NMOS transistor MN3 in the second current proportional unit 203 is in the linear region and does not have the function of mirroring the current from the NMOS transistor MN2. At this time, the internal resistance of the NMOS transistor MN3 is low, and its source The voltage drop lost between the drains is small, and the current flowing through the lower branch is completely determined by the load of the drive output;

(2)重载模式:随着驱动输出负载增加,总线驱动器输出端口的输出电压增加,当VGN<VOUT<Vthn时,第二比较器201负相输入端仍然小于正相输入端,第二比较器201仍然输出高电平,该高电平经第二延迟单元202控制第二电压控制电流单元203的开关管S2闭合,从而仍然选定第三基准电流IP3和第四基准电流IN2之和提供给第二电流比例单元203的输入端,但此时由于VOUT>VGN,第二电流比例单元中的低压NMOS管MN3进入饱和区,能够镜像NMOS管MN2上的基准电流,因此第二电流比例单元203能够限定流经下支路的电流值,为(IN1+IN2)乘以第二电流比例单元203所设计的低压PMOS间的比例值n,即(IN1+IN2)*n,确保总线驱动器中的驱动级具备驱动阻性负载和容性负载的能力,同时将驱动级下支路的电流限制在可控范围内;(2) Heavy-duty mode: as the drive output load increases, the output voltage of the bus driver output port increases. When VGN<VOUT<Vthn, the negative-phase input terminal of the second comparator 201 is still smaller than the positive-phase input terminal, and the second comparator The controller 201 still outputs a high level, which is controlled by the second delay unit 202 to close the switch S2 of the second voltage-controlled current unit 203, so that the sum of the third reference current IP3 and the fourth reference current IN2 is still selected to provide To the input terminal of the second current proportional unit 203, but at this time because VOUT>VGN, the low-voltage NMOS transistor MN3 in the second current proportional unit enters the saturation region and can mirror the reference current on the NMOS transistor MN2, so the second current proportional unit 203 can limit the current value flowing through the lower branch, which is (IN1+IN2) multiplied by the ratio value n between the low-voltage PMOSs designed by the second current proportional unit 203, that is, (IN1+IN2)*n, to ensure that the bus driver is in the The driver stage has the ability to drive resistive loads and capacitive loads, while limiting the current of the lower branch of the driver stage within a controllable range;

(3)短路模式:随着驱动输出负载进一步增加,或者端口异常短接,导致VOUT更高,此时VOUT>Vthn,第二比较器201将输出低电平给第二延迟单元202,第二延迟单元202中PMOS管MP5导通,电源轨经过PMOS管MP5向电容C2充电,直到电容C2上的压降达到施密特反相器SMT2的翻转点,即经过一段设定的延迟时间,再输出低电平控制第二电压控制电流单元203中的开关管S2断开,只选定第四基准电流IN2提供给第二电流比例单元204,此时VOUT很高,VOUT保持大于VGN,第二电流比例单元203中低压NMOS管MN3处于饱和区,与NMOS管MN2构成的电流镜保持镜像作用,此时第二电流比例单元203限定流经下支路的电流值,为第四基准电流IN2乘以第二电流比例单元所设计的低压NMOS间的比例值n,即IN2*n,促使芯片在短路状态下下支路的电流被限制在较低水平,提高总线驱动器的可靠性。(3) Short-circuit mode: as the drive output load further increases, or the port is abnormally short-circuited, VOUT is higher, at this time VOUT>Vthn, the second comparator 201 will output a low level to the second delay unit 202, the second In the delay unit 202, the PMOS transistor MP5 is turned on, and the power rail charges the capacitor C2 through the PMOS transistor MP5 until the voltage drop on the capacitor C2 reaches the inversion point of the Schmitt inverter SMT2, that is, after a set delay time, and then The output low level controls the switch S2 in the second voltage control current unit 203 to turn off, and only the fourth reference current IN2 is selected to be supplied to the second current proportional unit 204. At this time, VOUT is very high, VOUT remains greater than VGN, and the second The low-voltage NMOS transistor MN3 in the current proportional unit 203 is in the saturation region, and the current mirror formed by the NMOS transistor MN2 maintains a mirror effect. At this time, the second current proportional unit 203 limits the current value flowing through the lower branch, which is the fourth reference current IN2 multiplied by The ratio value n between the low-voltage NMOSs designed by the second current ratio unit, ie IN2*n, causes the current of the branch of the chip to be limited to a lower level in a short-circuit state, thereby improving the reliability of the bus driver.

本实施例的发明构思与第二实施例和第六实施例相同,也是在下支路出现重载或者短路时,下支路中流过的电流被第二电压控制电流单元203生成的不同大小的基准电流(相当于第二实施例和第六实施例中外部注入的电流)所合理限制,不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求下支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。The inventive concept of this embodiment is the same as that of the second and sixth embodiments, and is also a reference of different magnitudes generated by the second voltage-controlled current unit 203 for the current flowing in the lower branch when the lower branch is overloaded or short-circuited The reasonable limit of the current (equivalent to the externally injected current in the second embodiment and the sixth embodiment) can not only control the temperature rise of the bus driver, improve the reliability of the bus driver, but also reduce the number of parallel down switches compared with the prior art. In terms of the control strategy of the number of tube conduction, the decoupling between the differential output voltage of the bus driver and the short-circuit current is realized, so that the two no longer restrict each other, so that there is no need for short-circuit recovery when electrified. The current value of the lower branch is very low. The disadvantage is that the load capacity of the bus driver is improved over a wide range of positive and negative common-mode output voltages.

第八实施例Eighth Embodiment

图12为本发明第四实施例所提供的短路保护电路的原理框图,请参见图12,本实施例的短路保护电路将第四实施例的电路和第六实施例的电路进行了合并。FIG. 12 is a schematic block diagram of the short circuit protection circuit provided by the fourth embodiment of the present invention. Referring to FIG. 12 , the short circuit protection circuit of this embodiment combines the circuit of the fourth embodiment and the circuit of the sixth embodiment.

容易理解的是,本实施例的短路保护电路目的在于同时改进上支路的温升问题和带载能力问题,当第一判断单元的判断结果为“是”时,第一执行单元包括三种工作模式,这三种工作模式与第一实施例和第四实施例相同,所带来的有益效果也相同,故不赘述;当第二判断单元的判断结果为“是”时,第二执行单元包括三种工作模式,这三种工作模式与第二实施例和第六实施例相同,所带来的有益效果也相同,也不赘述。It is easy to understand that the purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the upper branch at the same time. When the judgment result of the first judgment unit is "Yes", the first execution unit includes three kinds of Working mode, these three working modes are the same as the first embodiment and the fourth embodiment, and the beneficial effects are also the same, so they will not be repeated; when the judgment result of the second judgment unit is "Yes", the second execution The unit includes three working modes, and these three working modes are the same as those of the second embodiment and the sixth embodiment, and the beneficial effects brought by them are also the same, which will not be repeated.

本实施例,无论是上支路出现重载或者短路,还是下支路出现重载或者短路,对应支路中流过的电流均会被对应的电压控制电流单元生成的不同大小的基准电流所合理限制,从而不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管或下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求对应支路的电流值很低的缺点,在宽正负共模输出电压范围内提升了总线驱动器的带载能力。In this embodiment, whether the upper branch is overloaded or short-circuited, or the lower branch is overloaded or short-circuited, the current flowing in the corresponding branch will be reasonable by the reference currents of different sizes generated by the corresponding voltage-controlled current unit. Therefore, it can not only control the temperature rise of the bus driver and improve the reliability of the bus driver, but also realize the differential output of the bus driver compared with the control strategy of reducing the number of connected upper switches or lower switches in parallel in the prior art. The decoupling between the voltage and the short-circuit current makes the two no longer restrict each other, so there is no disadvantage that the short-circuit recovery requires a very low current value of the corresponding branch when the power is on, and the bus is improved in the wide positive and negative common mode output voltage range. The load capacity of the drive.

第九实施例Ninth Embodiment

图13为本发明第九实施例所提供的短路保护电路的原理框图,图14为本发明第九实施例所提供的短路保护电路在总线驱动器中应用的原理图,该图针对图10中的所有单元提供了具体的电路,请参见图13和图14,本实施例的短路保护电路将第五实施例的电路和第七实施例的电路进行了合并。13 is a schematic block diagram of the short-circuit protection circuit provided by the ninth embodiment of the present invention, and FIG. 14 is a schematic diagram of the application of the short-circuit protection circuit provided by the ninth embodiment of the present invention in a bus driver. All units provide specific circuits, please refer to FIG. 13 and FIG. 14 , the short-circuit protection circuit of this embodiment combines the circuit of the fifth embodiment and the circuit of the seventh embodiment.

容易理解的是,本实施例的短路保护电路目的在于同时改进上支路的温升问题和带载能力问题,本实施例在上支路导通时包括三种工作模式,这三种工作模式与第五实施例相同,所带来的有益效果也相同,故不赘述;当下支路导通时包括三种工作模式,这三种工作模式与第七实施例相同,所带来的有益效果也相同,也不赘述。It is easy to understand that the purpose of the short-circuit protection circuit in this embodiment is to improve the temperature rise problem and the load capacity problem of the upper branch at the same time. This embodiment includes three working modes when the upper branch is turned on. These three working modes It is the same as the fifth embodiment, and the beneficial effects are also the same, so it will not be repeated; when the lower branch is turned on, it includes three working modes, and these three working modes are the same as the seventh embodiment, and the beneficial effects brought by It is also the same, and I will not repeat it.

本实施例通过为总线驱动器中驱动级主功率的上支路和下支路各增加相应的电压控制电流单元和电流比例单元,其中的电压控制电流单元可以输出大小不同的基准电流,电流比例单元设计为电流镜,电流镜中的低压PMOS管MP3和低压NMOS管MN3被串联在总线驱动器中驱动级主功率的上支路和下支路中,从而让驱动级设计时既可以将低压PMOS管MP3和低压NMOS管MN3的导通内阻做低来增强驱动级的负载能力,提升总线节点(A,B)输出的差分电压,也可以分别通过对电压控制电流单元中电流的合理分配(即第第一基准电流IP1和第二基准电流IP2的大小配置,以及第三基准电流IN1和第四基准电流IN2的大小配置),以及对电流比例单元设置合适的镜像比例(即m和n值的选定),将总线驱动器的驱动级在进入短路保护之前和进入短路保护之后的电流做合理限制,进而控制总线驱动器的短路温升,提高可靠性。In this embodiment, a corresponding voltage-controlled current unit and a current proportional unit are respectively added to the upper branch and the lower branch of the main power of the driver stage in the bus driver, wherein the voltage-controlled current unit can output reference currents of different sizes, and the current proportional unit Designed as a current mirror, the low-voltage PMOS transistor MP3 and the low-voltage NMOS transistor MN3 in the current mirror are connected in series in the upper and lower branches of the main power of the driver stage in the bus driver, so that the driver stage can be designed with both low-voltage PMOS transistors. The on-resistance of MP3 and the low-voltage NMOS transistor MN3 is made low to enhance the load capacity of the driver stage and improve the differential voltage output by the bus nodes (A, B). The size configuration of the first reference current IP1 and the second reference current IP2, as well as the size configuration of the third reference current IN1 and the fourth reference current IN2), and set an appropriate mirror ratio for the current proportional unit (that is, the value of m and n Selected), the current of the driver stage of the bus driver before entering the short-circuit protection and after entering the short-circuit protection is reasonably limited, so as to control the short-circuit temperature rise of the bus driver and improve the reliability.

本实施例,无论是上支路出现重载或者短路,还是下支路出现重载或者短路,对应支路中流过的电流均会被对应的电压控制电流单元生成的不同大小的基准电流所合理限制,从而不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管或下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求对应支路的电流值很低的缺点,使得总线驱动器的输出断开在宽正负共模输出电压范围内提升了带载能力。In this embodiment, whether the upper branch is overloaded or short-circuited, or the lower branch is overloaded or short-circuited, the current flowing in the corresponding branch will be reasonable by the reference currents of different sizes generated by the corresponding voltage-controlled current unit. Therefore, it can not only control the temperature rise of the bus driver and improve the reliability of the bus driver, but also realize the differential output of the bus driver compared with the control strategy of reducing the number of connected upper switches or lower switches in parallel in the prior art. The decoupling between the voltage and the short-circuit current makes the two no longer restrict each other, so there is no short-circuit recovery when the current is charged, and the current value of the corresponding branch is very low, so that the output of the bus driver is disconnected in the wide positive and negative common mode. The load capacity is improved within the output voltage range.

第十实施例Tenth Embodiment

本实施例提供了一种总线驱动器,其中包括第四实施例至第九实施例任一项所述短路保护电路,短路保护电路与总线驱动器的连接关系请参考各实施例对应的附图。This embodiment provides a bus driver, which includes the short-circuit protection circuit according to any one of the fourth embodiment to the ninth embodiment. For the connection relationship between the short-circuit protection circuit and the bus driver, please refer to the drawings corresponding to each embodiment.

本实施例的上支路中的开关管106为高压P功率MOS管,下支路中的开关管206高压N功率MOS管;第一防倒灌单元105和第二防倒灌单元205,均可分别选用常规二极管,或者肖特基二极管,或者以二极管连接方式连接的MOS管中的一种。In this embodiment, the switch tube 106 in the upper branch is a high-voltage P power MOS tube, and the switch tube 206 in the lower branch is a high-voltage N power MOS tube; the first anti-backflow unit 105 and the second anti-backflow unit 205 can be respectively Choose a conventional diode, or a Schottky diode, or one of the MOS tubes connected in a diode connection.

本实施例当采用的短路保护电路中包括相关附图中的低压PMOS管MP3和低压NMOS管MN3时,由于低压PMOS管MP3和低压NMOS管MN3也串联在总线驱动器驱动级的主功率支路上,流过的最大电流一般为100mA的等级,在正常负载状态下,为追求低的压降损耗,PMOS管MP3和NMOS管MN3二者的线性区电阻不能过大,即尺寸不能太小。同时,在短路状态下,为了保证饱和区的PMOS管MP3与PMOS管MP2、NMOS管MN3与NMOS管MN2的匹配精度,当PMOS管MP3的尺寸是PMOS管MP2的m倍时,NMOS管MN3的尺寸是NMOS管MN2的n倍,PMOS管MP2和NMOS管MN2的尺寸也不能过小,否则由于尺寸过小引起的器件参数边界效应导致电流匹配精度将变差,所以倍数m和n不能太大,建议为100倍上下(如200uA:200mA)。When the short-circuit protection circuit adopted in this embodiment includes the low-voltage PMOS transistor MP3 and the low-voltage NMOS transistor MN3 in the related drawings, since the low-voltage PMOS transistor MP3 and the low-voltage NMOS transistor MN3 are also connected in series on the main power branch of the bus driver driver stage, The maximum current flowing is generally at the level of 100mA. Under normal load conditions, in order to pursue low voltage drop loss, the linear resistance of both the PMOS transistor MP3 and the NMOS transistor MN3 should not be too large, that is, the size should not be too small. At the same time, in the short-circuit state, in order to ensure the matching accuracy of the PMOS transistor MP3 and the PMOS transistor MP2, the NMOS transistor MN3 and the NMOS transistor MN2 in the saturation region, when the size of the PMOS transistor MP3 is m times the size of the PMOS transistor MP2, the NMOS transistor MN3 The size is n times that of the NMOS transistor MN2, and the size of the PMOS transistor MP2 and NMOS transistor MN2 should not be too small, otherwise the current matching accuracy will be deteriorated due to the boundary effect of the device parameters caused by the too small size, so the multiples m and n should not be too large. , it is recommended to be up and down 100 times (such as 200uA: 200mA).

如图15为本实施例的总线驱动器中驱动上支路开关管和驱动下支路开关管的控制电压与输出端口波形示意图,当上支路开关管和下支路开关管处于正常工作状态下,每个脉冲打出时,驱动端口OUT的电平VOUT的初始值总是满足VOUT>Vthn或者VOUT<Vthp,第一比较器或第二比较器都将判定短路,考虑到传输速率是驱动电路的一个关键指标,因此第五实施例、第七实施例和第九实施例中设计了对应的避免误进入短路状态的延迟单元,对应的电压控制电流单元会立即选择以小的基准电流提供给电流比例单元,则电流比例单元将限定流经驱动支路的电流值为小的基准电流乘以电流比例单元的比例值,即IP2*m或IN2*n,这样将减慢功率管的上升下降时间tr和tf的前半部分,即图中的tp和tn。FIG. 15 is a schematic diagram of the control voltage and output port waveforms for driving the upper branch switch tube and driving the lower branch switch tube in the bus driver of the present embodiment, when the upper branch switch tube and the lower branch switch tube are in normal working state , when each pulse is output, the initial value of the level VOUT of the drive port OUT always satisfies VOUT>Vthn or VOUT<Vthp, the first comparator or the second comparator will determine a short circuit, considering that the transmission rate is the driving circuit. A key indicator, so the fifth embodiment, the seventh embodiment and the ninth embodiment design the corresponding delay unit to avoid entering the short-circuit state by mistake, and the corresponding voltage-controlled current unit will immediately select a small reference current to provide the current to the current. Proportional unit, the current proportional unit will limit the current value flowing through the driving branch to the small reference current multiplied by the proportional value of the current proportional unit, namely IP2*m or IN2*n, which will slow down the rise and fall time of the power tube The first half of tr and tf, i.e. tp and tn in the figure.

需要说明的是,延迟单元延迟时间的设计应当保证不影响要求的最高传输速率下的开关参数指标tr和tf,即设计第一延迟单元的传输延迟tdp>tr,第二延迟单元的传输延迟tdn>tf。It should be noted that the design of the delay time of the delay unit should ensure that the switching parameter indicators tr and tf under the required maximum transmission rate are not affected, that is, the transmission delay tdp>tr of the first delay unit is designed, and the transmission delay tdn of the second delay unit is designed. >tf.

本实施例的总线驱动器由于增加了第四实施例至第九实施例任一项所述短路保护电路,因此无论是上支路出现重载或者短路,还是下支路出现重载或者短路,对应支路中流过的电流均会被合理限制,从而不仅能控制总线驱动器的温升,提高总线驱动器的可靠性,还较现有技术通过减小并联上开关管或下开关管导通数目的控制策略而言,实现了总线驱动器差分输出电压与短路电流之间的解耦,让二者不再相互制约,从而不存在带电时短路恢复要求对应支路的电流值很低的缺点,使得总线驱动器的输出断开在宽正负共模输出电压范围内提升了带载能力。Since the short-circuit protection circuit described in any one of the fourth to ninth embodiments is added to the bus driver of this embodiment, whether the upper branch is overloaded or short-circuited, or the lower branch is overloaded or short-circuited, the corresponding The current flowing in the branch will be reasonably limited, so that it can not only control the temperature rise of the bus driver, improve the reliability of the bus driver, but also reduce the number of on-off switches of the upper or lower switches in parallel compared with the prior art. In terms of strategy, the decoupling between the differential output voltage of the bus driver and the short-circuit current is realized, so that the two no longer restrict each other, so that there is no short-circuit recovery when electrified. The output disconnect improves load carrying capability over a wide positive and negative common mode output voltage range.

本领域技术人员还应当理解,结合本文的实施例描述的各种说明性的逻辑框、模块、电路和算法步骤均可以实现成电子硬件、计算机软件或其组合。为了清楚地说明硬件和软件之间的可交换性,上面对各种说明性的部件、框、模块、电路和步骤均围绕其功能进行了一般地描述。至于这种功能是实现成硬件还是实现成软件,取决于特定的应用和对整个系统所施加的设计约束条件。熟练的技术人员可以针对每个特定应用,以变通的方式实现所描述的功能,但是,这种实现决策不应解释为背离本公开的保护范围。Those skilled in the art will also appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments herein may be implemented as electronic hardware, computer software, or combinations thereof. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether this functionality is implemented as hardware or software depends on the specific application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, however, such implementation decisions should not be interpreted as a departure from the scope of the present disclosure.

Claims (24)

1. A short-circuit protection method is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection method is characterized by comprising the following steps:
judging whether the upper branch is conducted or not;
when the judgment result is that the upper branch is conducted, the following steps are further executed:
comparing the output voltage of the output port of the bus driver with a first short-circuit threshold voltage to obtain a first short-circuit comparison result;
comparing the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result;
controlling the current flowing in the upper branch according to the first short circuit comparison result and the first load comparison result, wherein the control logic is as follows:
when the output voltage is less than or equal to the first short-circuit threshold voltage, the current flowing in the upper branch is determined by a first preset current injected into the upper branch;
when the first short-circuit threshold voltage is less than the output voltage and less than or equal to the first loaded threshold voltage, the current flowing in the upper branch is determined by a second preset current injected into the upper branch;
when the first on-load threshold voltage is less than the output voltage and less than or equal to the power supply rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;
the first preset current is less than the second preset current.
2. The short-circuit protection method according to claim 1, wherein: and judging whether the upper branch is conducted or not according to the high and low of the grid driving signal of the switching tube in the upper branch.
3. A short-circuit protection method is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection method is characterized by comprising the following steps:
judging whether the lower branch is conducted or not;
when the judgment result is that the lower branch is conducted, the following steps are further executed:
comparing the output voltage of the output port of the bus driver with a second short-circuit threshold voltage to obtain a second short-circuit comparison result;
comparing the output voltage with a second on-load threshold voltage to obtain a second on-load comparison result;
controlling the current flowing in the lower branch according to the second short circuit comparison result and the second on-load comparison result, wherein the control logic is as follows:
when the output voltage is not less than 0 and not more than the second loading threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;
when the second on-load threshold voltage is smaller than the output voltage and smaller than or equal to the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;
when the second short-circuit threshold voltage is less than the output voltage, the current flowing in the lower branch is determined by a fourth preset current injected into the lower branch;
the third preset current is larger than the fourth preset current.
4. The short-circuit protection method according to claim 3, wherein: and judging whether the lower branch is conducted or not according to the high and low of the grid driving signal of the switching tube in the lower branch.
5. A short-circuit protection method is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection method is characterized by comprising the following steps:
judging whether the upper branch is conducted or not;
when the judgment result is that the upper branch is conducted, the following steps are further executed:
comparing the output voltage of the output port of the bus driver with a first short-circuit threshold voltage to obtain a first short-circuit comparison result;
comparing the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result;
controlling the current flowing in the upper branch according to the first short circuit comparison result and the first load comparison result, wherein the control logic is as follows:
when the output voltage is less than or equal to the first short-circuit threshold voltage, the current flowing in the upper branch is determined by a first preset current injected into the upper branch;
when the first short-circuit threshold voltage is smaller than the output voltage and smaller than or equal to the first loaded threshold voltage, the current flowing in the upper branch is determined by a second preset current injected into the upper branch;
when the first loaded threshold voltage is less than the output voltage and less than or equal to the power supply rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;
judging whether the lower branch is conducted or not;
when the judgment result is that the lower branch is conducted, the following steps are further executed:
comparing the output voltage of the output port of the bus driver with a second short-circuit threshold voltage to obtain a second short-circuit comparison result;
comparing the output voltage with a second on-load threshold voltage to obtain a second on-load comparison result;
controlling the current flowing in the lower branch according to the second short circuit comparison result and the second on-load comparison result, wherein the control logic is as follows:
when the output voltage is not less than 0 and not more than the second on-load threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;
when the second on-load threshold voltage is smaller than the output voltage and smaller than or equal to the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;
when the second short-circuit threshold voltage is less than the output voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;
the first preset current is less than the second preset current; the third preset current is larger than the fourth preset current.
6. The short-circuit protection method according to claim 5, wherein: judging whether the upper branch is conducted or not according to the high and low of the grid driving signal of the switching tube in the upper branch; and judging whether the lower branch is conducted or not according to the high and low of the grid driving signal of the switching tube in the lower branch.
7. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and when the bus driver works normally, only one of the upper branch circuit and the lower branch circuit is conducted, and the short-circuit protection circuit is characterized in that: the short-circuit protection circuit comprises a first short-circuit protection unit;
the first short-circuit protection unit includes:
the first judgment unit is used for judging whether the upper branch is conducted or not;
a first executing unit, configured to, when the determination result of the first determining unit is that the upper branch is turned on, further execute the following actions:
comparing the output voltage of the output port of the bus driver with a first short-circuit threshold voltage to obtain a first short-circuit comparison result;
comparing the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result;
controlling the current flowing in the upper branch according to the first short circuit comparison result and the first load comparison result, wherein the control logic is as follows:
when the output voltage is less than or equal to the first short-circuit threshold voltage, the current flowing in the upper branch is determined by a first preset current injected into the upper branch;
when the first short-circuit threshold voltage is smaller than the output voltage and smaller than or equal to the first loaded threshold voltage, the current flowing in the upper branch is determined by a second preset current injected into the upper branch;
when the first on-load threshold voltage is less than the output voltage and less than or equal to the power supply rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;
the first preset current is less than the second preset current.
8. The short-circuit protection circuit of claim 7, wherein: the first judging unit judges whether the upper branch is conducted or not according to the high and low of the grid driving signal of the switching tube in the upper branch.
9. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection circuit is characterized by comprising:
the positive phase input end of the first comparator is used for inputting the output voltage of the output port of the bus driver, and the negative phase input end of the first comparator is used for inputting the first short-circuit threshold voltage; the setting end of the first comparator is used for inputting a grid driving signal of a switching tube in the upper branch circuit to judge whether the upper branch circuit is conducted; when a grid electrode driving signal of a switching tube in the upper branch circuit is at a high level, the output end of the first comparator is set to be at the high level; when a grid electrode driving signal of a switching tube in the upper branch circuit is in a low level, the output end of the first comparator outputs the first short circuit comparison result;
the input end of the first delay unit is used for receiving the output end level of the first comparator, when the output end level of the first comparator is a high level, the first delay unit is used for shaping and transmitting the high level, and the output end of the first delay unit outputs a corresponding high level; when the output end level of the first comparator is low level, the first delay unit is used for outputting the low level from the output end after first delay time;
the control end of the first voltage control current unit is connected with the output end of the first delay unit, and when the control end of the first voltage control current unit receives a high level, the output end of the first voltage control current unit outputs a first constant current; when the control end of the first voltage control current unit receives a low level, the output end of the first voltage control current unit outputs a second constant current, and the first constant current is larger than the second constant current;
the first current proportion unit comprises a PMOS tube MP2 and a PMS tube MP3, a source electrode of the PMOS tube MP2 and a source electrode of the PMS tube MP3 are connected together and then are used for being connected with a power supply rail, a drain electrode of the PMOS tube MP2, a grid electrode of the PMOS tube MP2 and a grid electrode of the PMS tube MP3 are connected together and then are connected with an output end of the first voltage control current unit, and a drain electrode of the PMOS tube MP3 is used for being connected with an anode of a backflow prevention diode of the upper branch.
10. The short protection circuit of claim 9, wherein the first delay unit comprises: a PMOS transistor MP4, an NMOS transistor MN4, a capacitor C1 and a Schmidt inverter SMT 1; the gate of the PMOS transistor MP4 and the gate of the NMOS transistor MN4 are connected together and then serve as the input terminal of the first delay unit, the source of the PMOS transistor MP4 is connected to the power rail, the drain of the PMOS transistor MP4, the drain of the NMOS transistor MN4, one end of the capacitor C1 and the input terminal of the schmitt inverter SMT1 are connected together, the source of the NMOS transistor MN4 and the other end of the capacitor C1 are connected together and then serve as the ground, and the output terminal of the schmitt inverter SMT1 serves as the output terminal of the first delay unit.
11. The short-circuit protection circuit of claim 9, wherein the first voltage-controlled current unit comprises: a switch tube S1, a first reference current IP1 and a second reference current IP 2; the control end of the switch tube S1 is used as the control end of the first voltage-controlled current unit, one end of the switch tube S1 and one end of the second reference current IP2 are connected together and then used as the output end of the first voltage-controlled current unit, the other end of the switch tube S1 is connected to one end of the first reference current IP1, the other end of the first reference current IP1 is used for inputting a first reference current signal, and the other end of the second reference current IP2 is used for inputting a second reference current signal.
12. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and when the bus driver works normally, only one of the upper branch circuit and the lower branch circuit is conducted, and the short-circuit protection circuit is characterized in that: the short-circuit protection circuit comprises a second short-circuit protection unit;
the second short-circuit protection unit includes:
the second judging unit is used for judging whether the lower branch is conducted or not;
a second executing unit, configured to, when the determination result of the second determining unit is that the lower branch is connected, further execute the following actions:
comparing the output voltage of the output port of the bus driver with a second short-circuit threshold voltage to obtain a second short-circuit comparison result;
comparing the output voltage with a second on-load threshold voltage to obtain a second on-load comparison result;
controlling the current flowing in the lower branch according to the second short circuit comparison result and the second on-load comparison result, wherein the control logic is as follows:
when the output voltage is not less than 0 and not more than the second loading threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;
when the second on-load threshold voltage is smaller than the output voltage and smaller than or equal to the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;
when the second short-circuit threshold voltage is less than the output voltage, the current flowing in the lower branch is determined by a fourth preset current injected into the lower branch;
the third preset current is larger than the fourth preset current.
13. The short-circuit protection circuit of claim 12, wherein: the second judging unit judges whether the lower branch is conducted or not according to the height of a grid driving signal of a switching tube in the lower branch.
14. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection circuit is characterized by comprising:
a positive phase input end of the second comparator is used for inputting the second short-circuit threshold voltage, and a negative phase input end of the second comparator is used for inputting the output voltage of the output port of the bus driver; the setting end of the second comparator is used for inputting a gate drive signal of a switching tube in the lower branch circuit to judge whether the lower branch circuit is conducted; when the grid driving signal of the switching tube in the lower branch circuit is at a low level, the output end of the second comparator is set to be at a high level; when a grid electrode driving signal of a switching tube in the upper branch circuit is in a high level, the output end of the second comparator outputs a second short circuit comparison result;
the input end of the second delay unit is used for receiving the output end level of the second comparator, when the output end level of the second comparator is high level, the second delay unit is used for shaping and transmitting the high level, and the output end of the second delay unit outputs the corresponding high level; when the level of the output end of the second comparator is low level, the second delay unit is used for outputting the low level from the output end of the second delay unit after second delay time;
a second voltage control current unit, a control end of the second voltage control current unit being connected to an output end of the second delay unit, and when the control end of the second voltage control current unit receives a high level, the output end of the second voltage control current unit outputs a third constant current; when the control end of the second voltage control current unit receives a low level, the output end of the second voltage control current unit outputs a fourth constant current, and the third constant current is larger than the fourth constant current;
the second current proportion unit comprises an NMOS tube MN2 and an NMOS tube MN3, the source electrode of the NMOS tube MN2 and the source electrode of the NMS tube MN3 are connected together and then are grounded, the drain electrode of the NMOS tube MN2, the grid electrode of the NMOS tube MN2 and the grid electrode of the NMS tube MN3 are connected together and then are connected with the output end of the second voltage control current unit, and the drain electrode of the NMOS tube MN3 is connected with the source electrode of the NMOS tube of the lower branch.
15. The short protection circuit of claim 14, wherein the second delay unit comprises: a PMOS transistor MP5, an NMOS transistor MN5, a capacitor C2 and a Schmidt inverter SMT 2; the gate of the PMOS transistor MP5 and the gate of the NMOS transistor MN5 are connected together and then serve as the input terminal of the second delay unit, the source of the PMOS transistor MP5 is connected to the power rail, the drain of the PMOS transistor MP5, the drain of the NMOS transistor MN5, one end of the capacitor C2 and the input terminal of the schmitt inverter SMT2 are connected together, the source of the NMOS transistor MN5 and the other end of the capacitor C2 are connected together and then serve as the ground, and the output terminal of the schmitt inverter SMT2 serves as the output terminal of the second delay unit.
16. The short-circuit protection circuit of claim 14, wherein the second voltage-controlled current unit comprises: a switch tube S2, a third reference current IN1 and a fourth reference current IN 2; the control end of the switch tube S2 is used as the control end of the second voltage-controlled current unit, one end of the switch tube S2 and one end of the fourth reference current IN2 are connected together and then used as the output end of the second voltage-controlled current unit, the other end of the switch tube S2 is connected with one end of the third reference current IN1, the other end of the third reference current IN1 is used for inputting a third reference current signal, and the other end of the fourth reference current IN2 is used for inputting a fourth reference current signal.
17. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and when the bus driver works normally, only one of the upper branch circuit and the lower branch circuit is conducted, and the short-circuit protection circuit is characterized in that: the short-circuit protection circuit comprises a first short-circuit protection unit and a second short-circuit protection unit;
the first short-circuit protection unit includes:
the first judgment unit is used for judging whether the upper branch is conducted or not;
a first executing unit, configured to, when the determination result of the first determining unit is that the upper branch is turned on, further execute the following actions:
comparing the output voltage of the output port of the bus driver with a first short-circuit threshold voltage to obtain a first short-circuit comparison result;
comparing the output voltage with a first on-load threshold voltage to obtain a first on-load comparison result;
controlling the current flowing in the upper branch according to the first short circuit comparison result and the first load comparison result, wherein the control logic is as follows:
when the output voltage is less than or equal to the first short-circuit threshold voltage, the current flowing in the upper branch is determined by a first preset current injected into the upper branch;
when the first short-circuit threshold voltage is less than the output voltage and less than or equal to the first loaded threshold voltage, the current flowing in the upper branch is determined by a second preset current injected into the upper branch;
when the first loaded threshold voltage is less than the output voltage and less than or equal to the power supply rail voltage, the current flowing in the upper branch is determined by the driving load of the bus driver;
the first preset current is less than the second preset current;
the second short-circuit protection unit includes:
the second judging unit is used for judging whether the lower branch is conducted or not;
a second executing unit, configured to, when the determination result of the second determining unit is that the lower branch is connected, further execute the following actions:
comparing the output voltage of the output port of the bus driver with a second short-circuit threshold voltage to obtain a second short-circuit comparison result;
comparing the output voltage with a second on-load threshold voltage to obtain a second on-load comparison result;
controlling the current flowing in the lower branch according to the second short circuit comparison result and the second on-load comparison result, wherein the control logic is as follows:
when the output voltage is not less than 0 and not more than the second loading threshold voltage, the current flowing in the lower branch is determined by the driving load of the bus driver;
when the second on-load threshold voltage is less than the output voltage and less than or equal to the second short-circuit threshold voltage, the current flowing in the lower branch is determined by a third preset current injected into the lower branch;
when the second short-circuit threshold voltage is smaller than the output voltage, the current flowing in the lower branch circuit is determined by a fourth preset current injected into the lower branch circuit;
the third preset current is larger than the fourth preset current.
18. The short-circuit protection circuit of claim 17, wherein: the first judging unit judges whether the upper branch is conducted or not according to the height of a grid driving signal of a switching tube in the upper branch; the second judging unit judges whether the lower branch is conducted or not according to the height of a grid driving signal of a switching tube in the lower branch.
19. A short-circuit protection circuit is applied to a bus driver, the bus driver comprises an upper branch circuit and a lower branch circuit, a switch tube in the upper branch circuit is a PMOS tube, a switch tube in the lower branch circuit is an NMOS tube, and only one of the upper branch circuit and the lower branch circuit is conducted when the bus driver works normally, the short-circuit protection circuit is characterized by comprising:
the positive phase input end of the first comparator is used for inputting the output voltage of the output port of the bus driver, and the negative phase input end of the first comparator is used for inputting the first short-circuit threshold voltage; the setting end of the first comparator is used for inputting a grid driving signal of a switching tube in the upper branch circuit to judge whether the upper branch circuit is conducted; when a grid electrode driving signal of a switching tube in the upper branch circuit is at a high level, the output end of the first comparator is set to be at the high level; when a grid electrode driving signal of a switching tube in the upper branch circuit is in a low level, the output end of the first comparator outputs the first short circuit comparison result;
the input end of the first delay unit is used for receiving the output end level of the first comparator, when the output end level of the first comparator is a high level, the first delay unit is used for shaping and transmitting the high level, and the output end of the first delay unit outputs a corresponding high level; when the output end level of the first comparator is low level, the first delay unit is used for outputting the low level from the output end after first delay time;
the control end of the first voltage control current unit is connected with the output end of the first delay unit, and when the control end of the first voltage control current unit receives a high level, the output end of the first voltage control current unit outputs a first constant current; when the control end of the first voltage control current unit receives a low level, the output end of the first voltage control current unit outputs a second constant current, and the first constant current is larger than the second constant current;
the first current proportion unit comprises a PMOS (P-channel metal oxide semiconductor) tube MP2 and a PMS tube MP3, a source electrode of the PMOS tube MP2 and a source electrode of the PMS tube MP3 are connected together and then are used for being connected with a power supply rail, a drain electrode of the PMOS tube MP2, a grid electrode of the PMOS tube MP2 and a grid electrode of the PMS tube MP3 are connected together and then are connected with an output end of the first voltage control current unit, and a drain electrode of the PMOS tube MP3 is used for being connected with an anode of a backflow prevention diode of the upper branch;
a positive phase input end of the second comparator is used for inputting the second short-circuit threshold voltage, and a negative phase input end of the second comparator is used for inputting the output voltage; the setting end of the second comparator is used for inputting a gate drive signal of a switching tube in the lower branch circuit to judge whether the lower branch circuit is conducted; when the grid driving signal of the switching tube in the lower branch circuit is at a low level, the output end of the second comparator is set to be at a high level; when the grid electrode driving signal of the switching tube in the upper branch circuit is in a high level, the output end of the second comparator outputs the second short circuit comparison result;
the input end of the second delay unit is used for receiving the output end level of the second comparator, when the output end level of the second comparator is high level, the second delay unit is used for shaping and transmitting the high level, and the output end of the second delay unit outputs the corresponding high level; when the level of the output end of the second comparator is low level, the second delay unit is used for outputting the low level from the output end of the second delay unit after the second delay time;
a second voltage control current unit, a control end of the second voltage control current unit being connected to an output end of the second delay unit, and when the control end of the second voltage control current unit receives a high level, the output end of the second voltage control current unit outputs a third constant current; when the control end of the second voltage control current unit receives a low level, the output end of the second voltage control current unit outputs a fourth constant current, and the third constant current is larger than the fourth constant current;
the second current proportion unit comprises an NMOS tube MN2 and an NMOS tube MN3, the source electrode of the NMOS tube MN2 and the source electrode of the NMS tube MN3 are connected together and then are grounded, the drain electrode of the NMOS tube MN2, the grid electrode of the NMOS tube MN2 and the grid electrode of the NMS tube MN3 are connected together and then are connected with the output end of the second voltage control current unit, and the drain electrode of the NMOS tube MN3 is connected with the source electrode of the NMOS tube of the lower branch.
20. The short protection circuit of claim 19, wherein the first delay unit comprises: a PMOS transistor MP4, an NMOS transistor MN4, a capacitor C1 and a Schmidt inverter SMT 1; the gate of the PMOS transistor MP4 and the gate of the NMOS transistor MN4 are connected together and then serve as the input terminal of the first delay unit, the source of the PMOS transistor MP4 is connected to the power rail, the drain of the PMOS transistor MP4, the drain of the NMOS transistor MN4, one end of the capacitor C1 and the input terminal of the schmitt inverter SMT1 are connected together, the source of the NMOS transistor MN4 and the other end of the capacitor C1 are connected together and then serve as the ground, and the output terminal of the schmitt inverter SMT1 serves as the output terminal of the first delay unit.
21. The short protection circuit of claim 19, wherein the first voltage controlled current cell comprises: a switch tube S1, a first reference current IP1 and a second reference current IP 2; the control end of the switch tube S1 is used as the control end of the first voltage control current unit, one end of the switch tube S1 and one end of the second reference current IP2 are connected together and then used as the output end of the first voltage control current unit, the other end of the switch tube S1 is connected with one end of the first reference current IP1, the other end of the first reference current IP1 is used for inputting a first reference current signal, and the other end of the second reference current IP2 is used for inputting a second reference current signal.
22. The short protection circuit of claim 19, wherein the second delay unit comprises: a PMOS transistor MP5, an NMOS transistor MN5, a capacitor C2 and a Schmidt inverter SMT 2; the gate of the PMOS transistor MP5 and the gate of the NMOS transistor MN5 are connected together and then serve as the input terminal of the second delay unit, the source of the PMOS transistor MP5 is connected to the power rail, the drain of the PMOS transistor MP5, the drain of the NMOS transistor MN5, one end of the capacitor C2 and the input terminal of the schmitt inverter SMT2 are connected together, the source of the NMOS transistor MN5 and the other end of the capacitor C2 are connected together and then serve as the ground, and the output terminal of the schmitt inverter SMT2 serves as the output terminal of the second delay unit.
23. The short protection circuit of claim 22, wherein the second voltage controlled current cell comprises: a switch tube S2, a third reference current IN1 and a fourth reference current IN 2; the control end of the switch tube S2 is used as the control end of the second voltage-controlled current unit, one end of the switch tube S2 and one end of the fourth reference current IN2 are connected together and then used as the output end of the second voltage-controlled current unit, the other end of the switch tube S2 is connected to one end of the third reference current IN1, the other end of the first reference current IP1 is used for inputting a first reference current signal, and the other end of the second reference current IP2 is used for inputting a second reference current signal.
24. A bus driver, comprising: the short-circuit protection circuit of any one of claims 7 to 23.
CN202210540904.8A 2022-05-17 2022-05-17 Short-circuit protection method, circuit and bus driver Active CN114995565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210540904.8A CN114995565B (en) 2022-05-17 2022-05-17 Short-circuit protection method, circuit and bus driver

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210540904.8A CN114995565B (en) 2022-05-17 2022-05-17 Short-circuit protection method, circuit and bus driver

Publications (2)

Publication Number Publication Date
CN114995565A true CN114995565A (en) 2022-09-02
CN114995565B CN114995565B (en) 2024-02-09

Family

ID=83027141

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210540904.8A Active CN114995565B (en) 2022-05-17 2022-05-17 Short-circuit protection method, circuit and bus driver

Country Status (1)

Country Link
CN (1) CN114995565B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3938008A (en) * 1974-09-18 1976-02-10 International Business Machines Corporation Common bus driver complementary protect circuit
US4178620A (en) * 1977-10-11 1979-12-11 Signetics Corporation Three state bus driver with protection circuitry
US6141200A (en) * 1998-04-20 2000-10-31 International Business Machines Corporation Stacked PFET off-chip driver with a latch bias generator for overvoltage protection
US20040046535A1 (en) * 2002-09-09 2004-03-11 Primarion Inc., Tempe, Arizona System and method for current handling in a digitally-controlled power converter
WO2006103912A1 (en) * 2005-03-28 2006-10-05 Rohm Co., Ltd Switching regulator and electronic device having the same
US20100157498A1 (en) * 2008-12-22 2010-06-24 James Skov Current Detection and Limiting Method and Apparatus
CN102522982A (en) * 2011-12-30 2012-06-27 无锡新硅微电子有限公司 Bus interface output stage driving circuit with overvoltage, undervoltage and overcurrent protection functions
US20140359190A1 (en) * 2013-06-03 2014-12-04 Infineon Technologies Ag Over-current detection for bus line drivers
US20140355158A1 (en) * 2013-06-03 2014-12-04 Infineon Technologies Ag Shutdown protection for bus line drivers
CN109378794A (en) * 2018-10-18 2019-02-22 九江精密测试技术研究所 A kind of protection circuit of fieldbus
CN110492455A (en) * 2019-08-19 2019-11-22 浙江大学 A kind of adjustable counter electromotive force absorbing circuit of threshold value
CN113630046A (en) * 2021-09-02 2021-11-09 北京精密机电控制设备研究所 Integrated fault protection driving device and control method for direct-current brushless motor

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3938008A (en) * 1974-09-18 1976-02-10 International Business Machines Corporation Common bus driver complementary protect circuit
DE2538453A1 (en) * 1974-09-18 1976-04-01 Ibm OVERCURRENT PROTECTION CIRCUIT FOR DRIVER CIRCUITS
US4178620A (en) * 1977-10-11 1979-12-11 Signetics Corporation Three state bus driver with protection circuitry
US6141200A (en) * 1998-04-20 2000-10-31 International Business Machines Corporation Stacked PFET off-chip driver with a latch bias generator for overvoltage protection
US20040046535A1 (en) * 2002-09-09 2004-03-11 Primarion Inc., Tempe, Arizona System and method for current handling in a digitally-controlled power converter
WO2006103912A1 (en) * 2005-03-28 2006-10-05 Rohm Co., Ltd Switching regulator and electronic device having the same
US20100157498A1 (en) * 2008-12-22 2010-06-24 James Skov Current Detection and Limiting Method and Apparatus
CN102522982A (en) * 2011-12-30 2012-06-27 无锡新硅微电子有限公司 Bus interface output stage driving circuit with overvoltage, undervoltage and overcurrent protection functions
US20140359190A1 (en) * 2013-06-03 2014-12-04 Infineon Technologies Ag Over-current detection for bus line drivers
US20140355158A1 (en) * 2013-06-03 2014-12-04 Infineon Technologies Ag Shutdown protection for bus line drivers
CN109378794A (en) * 2018-10-18 2019-02-22 九江精密测试技术研究所 A kind of protection circuit of fieldbus
CN110492455A (en) * 2019-08-19 2019-11-22 浙江大学 A kind of adjustable counter electromotive force absorbing circuit of threshold value
CN113630046A (en) * 2021-09-02 2021-11-09 北京精密机电控制设备研究所 Integrated fault protection driving device and control method for direct-current brushless motor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈绍贵;王新华;郭淑琴;: "基于WINCE5.0的IIC总线驱动程序设计", 杭州电子科技大学学报, no. 04 *

Also Published As

Publication number Publication date
CN114995565B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN109039029B (en) Bootstrap charging circuit suitable for GaN power device gate drive circuit
US8633736B2 (en) Driver with accurately controlled slew rate and limited current
CN113014234B (en) Overcurrent protection and floating level shift circuit applied to half-bridge high-voltage drive
US20120293230A1 (en) Ringing suppression circuit
US10749511B2 (en) IO circuit and access control signal generation circuit for IO circuit
CN108616269B (en) Low-working-voltage downlink level shift circuit
CN108832595B (en) Under-voltage locking circuit with dynamic filtering function
CN102047560A (en) Output driver with overvoltage protection
CN109921779B (en) Half-bridge circuit through protection circuit
WO2022070806A1 (en) Driving circuit for switching element and switching circuit
CN105932657A (en) Low on-resistance blocking type surge protection device
CN201035091Y (en) A kind of output voltage status indicating circuit for power supply chip
CN102231598A (en) Power supply circuit
CN114337233A (en) Self-adaptive dead time control circuit suitable for GaN driving chip
CN103746681B (en) A kind of upper and lower electricity output tri-state control circuit of cmos device power supply
CN110601690B (en) Low-working-voltage fast downlink level shift circuit
US6717456B2 (en) Level conversion circuit
CN203339958U (en) Peak current detection-based line voltage compensation circuit
CN105958631B (en) A kind of power supply switch circuit and signal transfer method using comparator
CN115360675A (en) Self-adaptive current-limiting short-circuit protection system for Marx topological type nanosecond pulse power supply
CN102522982B (en) Bus interface output stage driving circuit with overvoltage, undervoltage and overcurrent protection functions
CN114995565B (en) Short-circuit protection method, circuit and bus driver
JP4050242B2 (en) Input / output circuit of semiconductor integrated circuit device
CN103326323A (en) Switching power supply protective circuit and method
CN210168022U (en) Multi-input open-drain output circuit

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
TR01 Transfer of patent right

Effective date of registration: 20250630

Address after: 510663 Guangdong Province, Guangzhou City, Huangpu District, Science City, Science Avenue, Keji Yijie No.5, Room 901

Patentee after: Guangzhou Huarui Shengyang Investment Co.,Ltd.

Country or region after: China

Address before: 518172 Guangdong Province, Shenzhen City, Longgang District, Longcheng Street, Longxiang Avenue 9009, Zhujiang International Center 14th Floor GH Unit

Patentee before: SHENZHEN NANYUN MICROELECTRONICS Co.,Ltd.

Country or region before: China