CN111342836A - Two-bus code sending drive circuit with protection control function - Google Patents

Two-bus code sending drive circuit with protection control function Download PDF

Info

Publication number
CN111342836A
CN111342836A CN202010260588.XA CN202010260588A CN111342836A CN 111342836 A CN111342836 A CN 111342836A CN 202010260588 A CN202010260588 A CN 202010260588A CN 111342836 A CN111342836 A CN 111342836A
Authority
CN
China
Prior art keywords
circuit
level
module
pole
bus
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.)
Pending
Application number
CN202010260588.XA
Other languages
Chinese (zh)
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.)
Shenzhen Institute Of Beidou Applied Technology
Tanda Technology Co ltd
Original Assignee
Shenzhen Institute Of Beidou Applied Technology
Tanda Technology 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 Institute Of Beidou Applied Technology, Tanda Technology Co ltd filed Critical Shenzhen Institute Of Beidou Applied Technology
Priority to CN202010260588.XA priority Critical patent/CN111342836A/en
Publication of CN111342836A publication Critical patent/CN111342836A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K19/00Logic circuits, i.e. having at least two inputs acting on one output; Inverting circuits
    • H03K19/0175Coupling arrangements; Interface arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Logic Circuits (AREA)

Abstract

The embodiment of the invention provides a two-bus driving code sending circuit, which comprises: the bus driving circuit is used for outputting high-current power supply to the code sending circuit at the rear stage and the circuit for receiving the short-circuit signal and performing power-off protection. The bus driving circuit of the heavy current power supply output provides a heavy current bus level for the post-stage circuit, and the operation of the post-stage circuit is guaranteed; after the circuit receives the level signal with short-circuit fault, the circuit can effectively protect the rear-stage circuit from being burnt out in time.

Description

一种具有保护控制功能的二总线发码驱动电路A two-bus code-transmitting drive circuit with protection control function

技术领域technical field

本发明涉及消防智能巡查技术领域,特别是涉及一种具有保护控制功能的二总线发码驱动电路。The invention relates to the technical field of fire protection intelligent inspection, in particular to a two-bus code sending drive circuit with a protection control function.

背景技术Background technique

随着现代化进程不断加快,在开发建设现代化的城市过程中,一些隐患问题渐渐显露,特别是消防安全越来越得到人们的重视,其中由于多种建筑物地理隔绝使得消防管理分散、险情发现不及时从而导致火情蔓延的城市消防也存在诸多隐忧。而基于物联网、云计算、大数据和移动互联网等新一代信息技术的智慧消防系统,能有效整合各方力量、摸清火患险情、确保消防安全,并掌握救灾主动权。With the continuous acceleration of the modernization process, in the process of developing and constructing a modern city, some hidden problems have gradually emerged. In particular, fire safety has received more and more attention. Due to the geographical isolation of various buildings, fire management is scattered, and dangerous situations cannot be detected. There are also many hidden worries in urban firefighting, which leads to the spread of fire in a timely manner. The smart fire protection system based on the new generation of information technologies such as the Internet of Things, cloud computing, big data and mobile Internet can effectively integrate all forces, find out the danger of fire, ensure fire safety, and take the initiative in disaster relief.

随着消防行业发展,原来的输入输出模块和声光警报器产品都是由电源线和通讯线四线连接的,随着现有技术发展,磁保持继电器和LED灯应用,使模块和声光产品功耗大幅降低,模块和声光带载在消防二总线上成为可能。With the development of the fire protection industry, the original input and output modules and sound and light alarm products are connected by four wires of power lines and communication lines. The power consumption of the product is greatly reduced, and it is possible for modules and acousto-optic bands to be loaded on the second bus of fire protection.

用现在T3协议消防二总线供电能力显得太弱,不能满足模块和声光二总线设备。通过改进现有产品电路,选用低功耗的元器件,来提高二总线供电能力。T3协议使用的总线回路卡短路是通过自恢复保险元件来保护的。一般的小电流总线回路卡是通过自恢复保险元件来实现短路保护的。但是,只有当总线短路电流数倍于额定电流时,自恢复保险才能实现快速动作,在较小短路电流情况下,该器件无法实现快速动作保护电流网络。With the current T3 protocol, the power supply capability of the second bus for fire protection is too weak to meet the requirements of the module and the second bus device of sound and light. By improving the existing product circuit and selecting components with low power consumption, the power supply capability of the second bus is improved. The short circuit of the bus loop card used by the T3 protocol is protected by a self-recovery fuse element. The general low-current bus loop card realizes short-circuit protection through self-recovery fuse elements. However, only when the short-circuit current of the bus is several times the rated current, the self-recovery fuse can realize fast action. In the case of small short-circuit current, the device cannot realize fast action to protect the current network.

发明内容SUMMARY OF THE INVENTION

鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种具有保护控制功能的二总线发码电路。In view of the above problems, embodiments of the present invention are proposed to provide a two-bus code sending circuit with a protection control function that overcomes the above problems or at least partially solves the above problems.

为了解决上述问题,本发明实施例公开了一种具有保护控制功能的二总线发码电路,包含:In order to solve the above problems, an embodiment of the present invention discloses a two-bus code sending circuit with a protection control function, including:

二总线发码驱动电路模块、电平信号转换电路模块和电平信号翻转电路模块;Two bus code transmission drive circuit module, level signal conversion circuit module and level signal inversion circuit module;

所述二总线发码驱动电路模块连接在BUSP的输出端,通过所述电平信号转换电路模块在接收到控制信号并转换为预设电平,控制所述二总线驱动发码电路模块输出BUS+电平;The two-bus code-transmitting drive circuit module is connected to the output end of the BUSP, and the level-signal conversion circuit module receives the control signal and converts it to a preset level, and controls the two-bus drive code-transmitting circuit module to output BUS+ level;

所述电平信号转换电路模块接收QDL电平和QDH电平,经过所述电平信号转换电路模块转换为低电平和高电平或高电平和低电平,连接到所述二总线驱动发码电路模块的控制端;The level signal conversion circuit module receives the QDL level and the QDH level, and is converted into a low level and a high level or a high level and a low level through the level signal conversion circuit module, and is connected to the two buses to drive and send codes. The control terminal of the circuit module;

所述电平信号翻转电路模块接收外部的单片机发出的START电平和外部的短路检测电路发出的SHORT-CHECK电平;所述电平信号翻转电路模块的第二路输出连接到单片机SHORT电平的位置并连接电平信号翻转电路模的第一翻转模块的输入端,所述电平信号翻转电路模块的第一路输出连接到所述电平信号转换电路模块并连接所述第二翻转模块的输入端。The level signal inversion circuit module receives the START level issued by the external single-chip microcomputer and the SHORT-CHECK level issued by the external short-circuit detection circuit; the second output of the level signal inversion circuit module is connected to the SHORT level of the single-chip microcomputer. Position and connect the input end of the first inversion module of the level signal inversion circuit module, the first output of the level signal inversion circuit module is connected to the level signal conversion circuit module and is connected to the second inversion module. input.

优选地,所述的二总线发码驱动电路模块是一种大电流供电电路,所述二总线发码驱动电路模块包含:PMOS晶体管(Positive channel-Metal-Oxide-Semiconductor,PMOS)和NMOS晶体管(Negative channel-Metal-Oxide-Semiconductor,NMOS),所述PMOS的S极连接BUSP位置,PMOS的D极和NMOS的D极连接作为BUS+电平的输出端,NMOS的S在回路中接地,所述BUSP为外部电路提供,所述二总线驱动发码电路模块的控制端包括:所述PMOS的G极和NMOS的G极。Preferably, the two-bus code transmission drive circuit module is a high-current power supply circuit, and the two-bus code transmission drive circuit module includes: a PMOS transistor (Positive channel-Metal-Oxide-Semiconductor, PMOS) and an NMOS transistor ( Negative channel-Metal-Oxide-Semiconductor, NMOS), the S pole of the PMOS is connected to the BUSP position, the D pole of the PMOS and the D pole of the NMOS are connected as the output terminal of the BUS+ level, the S of the NMOS is grounded in the loop, the BUSP is provided for external circuits, and the control terminal of the two-bus driving code sending circuit module includes: the G pole of the PMOS and the G pole of the NMOS.

优选地,根据权利要求1所述的总线驱动发码电路,其特征在于,所述的电平信号翻转电路模块是一种74HC00门电路芯片,其内部至少4个独立模块,包括:第1引脚输入端、第2引脚输入端及第3引脚输出端的第一翻转模块,第4引脚输入端、第5引脚输入端及第6引脚输出端的第二翻转模块;所述第一路输出包括:所述的第一翻转模块的输出端,所述第二路输出包括:所述的第二翻转模块的输出端;所述的第3引脚输出端连接所述的第5引脚输入端,所述的第6引脚输出端连接所述的第2引脚输入端。Preferably, the bus-driven code sending circuit according to claim 1 is characterized in that, the level signal inversion circuit module is a 74HC00 gate circuit chip, and there are at least 4 independent modules in it, including: a first lead The first inversion module of the pin input end, the 2nd pin input end and the 3rd pin output end, the second inversion module of the 4th pin input end, the 5th pin input end and the 6th pin output end; One output includes: the output end of the first inversion module, the second output includes: the output end of the second inversion module; the third pin output end is connected to the fifth The pin input end, the 6th pin output end is connected to the 2nd pin input end.

优选地,所述的电平信号转换电路模块包括:第一转换模块、第二转换模块和钳位电路模块;其中所述第一转换模块包含:第一三极管、第二三极管和第三三极管,所述的第二转换模块包含:第四三极管;所述的钳位电路包括:第一二极管和第二二极管。Preferably, the level signal conversion circuit module comprises: a first conversion module, a second conversion module and a clamping circuit module; wherein the first conversion module comprises: a first transistor, a second transistor and The third transistor, the second conversion module includes: a fourth transistor; the clamping circuit includes: a first diode and a second diode.

优选地,所述的第一三极管、第二三极管和第四三极管为NPN型三极管,所述的第三三极管为PNP型三极管,根据三极管的工作特性,所述的NPN型三极管的E极在回路中均为接地;所述第一转换模块包括:所述第一三极管的B极连接所述QDL电平输出端并与所述第一翻转模块的输出端连接;所述第一三极管的C极与所述第二三极管的C极并联,并连接到所述第三三极管的B极;所述第三三极管的E极连接回路中的供电端DC36V,所述第三三极管的C极与所述PMOS管的G极,所述第四三极管的C极连接到所述NMOS的G极以及所述第二三极管的B极;所述第四三极管的B极连接所述QDH电平输出端,所述DC36V为外部提供的回路供电端。Preferably, the first triode, the second triode and the fourth triode are NPN-type triodes, and the third triode is a PNP-type triode. According to the working characteristics of the triodes, the The E poles of the NPN transistor are all grounded in the loop; the first conversion module includes: the B pole of the first transistor is connected to the QDL level output end and is connected to the output end of the first inversion module connection; the C pole of the first triode is connected in parallel with the C pole of the second triode, and is connected to the B pole of the third triode; the E pole of the third triode is connected The power supply terminal in the loop is DC36V, the C pole of the third transistor is connected to the G pole of the PMOS transistor, and the C pole of the fourth transistor is connected to the G pole of the NMOS and the second three poles. The B pole of the transistor; the B pole of the fourth transistor is connected to the QDH level output terminal, and the DC36V is the externally provided loop power supply terminal.

优选地,所述QDL电平和所述QDH电平由外部单片机提供。Preferably, the QDL level and the QDH level are provided by an external microcontroller.

优选地,所述钳位电路模块的第一二极管的负极连接回路中的DC36V供电端,所述第一二极管的正极与所述第二二极管的负极连接,所述第二二极管的正极在回路中接地,用于保护两个二极管之间的电压不会超过回路的电压范围:0-DC36V(不考虑二极管导通的压降)。Preferably, the cathode of the first diode of the clamp circuit module is connected to the DC36V power supply terminal in the loop, the anode of the first diode is connected to the cathode of the second diode, and the second diode is connected to the cathode of the second diode. The anode of the diode is grounded in the loop, which is used to protect the voltage between the two diodes from exceeding the voltage range of the loop: 0-DC36V (regardless of the voltage drop of diode conduction).

本发明所与现有技术相比,其有益效果在于:Compared with the prior art, the present invention has the following beneficial effects:

通过单片机发出信号控制低内阻、大功率的MOS管为后续电路提供大电流的供电电平,以及通过单片机电平信号控制电路中的短路检测,若无短路出现,则正常供电;若有短路出现,快速及时的控制电路让MOS管关断对后续电路的供电输出,以保护电路不会在短路的情况下被烧毁。The single-chip microcomputer sends a signal to control the low internal resistance, high-power MOS tube to provide a large current power supply level for the subsequent circuit, and the short circuit detection in the circuit is controlled by the single-chip level signal. If there is no short circuit, the power supply is normal; if there is a short circuit Appears, the fast and timely control circuit allows the MOS tube to turn off the power supply output to the subsequent circuit to protect the circuit from being burned in the case of a short circuit.

由单片机信号端和一些电子元器件直接组成的电路模块对当前电路以及后续发码电路进行控制和保护,由于电子元器件的反应速度快,可以保障在收到的信号后,以最快的速度关断电路的输出及时启动保护电路。The circuit module directly composed of the signal terminal of the single-chip microcomputer and some electronic components controls and protects the current circuit and the subsequent code sending circuit. Due to the fast response speed of the electronic components, it can ensure the fastest speed after receiving the signal. The output of the shutdown circuit starts the protection circuit in time.

附图说明Description of drawings

图1是本发明的一种具有保护控制功能的二总线发码电路装置实施例的流程图;1 is a flowchart of an embodiment of a two-bus code sending circuit device with a protection control function of the present invention;

图2是本发明的一种具有保护控制功能的二总线发码电路装置实施例的电路图;2 is a circuit diagram of an embodiment of a two-bus code sending circuit device with a protection control function according to the present invention;

图3是本发明使用的门电路结构图;Fig. 3 is the gate circuit structure diagram that the present invention uses;

图4是本发明使用的门电路结的真值表。Figure 4 is a truth table of the gate junction used in the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明,但不构成对本发明的任何限制,任何在本发明权利要求范围所做的有限次的修改,仍在本发明的权利要求范围内。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, but does not constitute any limitation to the present invention. The limited number of modifications made are still within the scope of the claims of the present invention.

参照图1,示出了本发明的一种具有保护控制功能的二总线发码电路装置实施例的流程图,具体可以包括:Referring to FIG. 1, a flowchart of an embodiment of a two-bus code sending circuit device with a protection control function of the present invention is shown, which may specifically include:

由于所述的在电路正常工作时,二总线发码驱动电路中存在PMOS导通和NMOS截止的第一状态或PMOS截止和NMOS导通的第二状态,通过控制这两种状态交替时行来为后续电路供电,其具体步骤如下:Because when the circuit is working normally, there is a first state in which PMOS is turned on and NMOS is turned off or a second state in which PMOS is turned off and NMOS is turned on in the two-bus code sending drive circuit. To supply power to subsequent circuits, the specific steps are as follows:

S101获取由单片机发出第一状态的QDL、QDH电平和START电平:S101 obtains the QDL, QDH level and START level of the first state sent by the microcontroller:

QDL为低电平、QDH为高电平和START为高电平;其中QDL低电平输出到所述电平信号转换模块的第一三极管[T12]的B极控其C极与E极之间的截止,从而控第三三极管[T8]的B极电流,根据PNP型三极管工作特性可知此时第三三极管[T8]的B极电流变化控制自身E极与C极之间截止使C极产生低电平,所述二总线发码驱动电路模块的PMOS[T11]的G极的连接在第三三极管[T8]的C极,根据PMOS的工作特性可知此时S极与D极为导通状态,此时PMOS和NMOS为第一状态;QDL is low level, QDH is high level and START is high level; wherein QDL low level is output to the B pole of the first transistor [T12] of the level signal conversion module to control its C pole and E pole The cut-off between the two, thereby controlling the B pole current of the third triode [T8]. According to the working characteristics of the PNP type triode, it can be known that the change of the B pole current of the third transistor [T8] controls the difference between the E pole and the C pole. When the time is cut off, the C pole generates a low level, and the G pole of the PMOS [T11] of the two-bus code sending drive circuit module is connected to the C pole of the third transistor [T8]. According to the working characteristics of the PMOS, it can be known that at this time The S pole and the D pole are in a conductive state, and the PMOS and NMOS are in the first state at this time;

QDH高电平输出到所述电平信号转换模块的第四三极管[T14]的B极控其C极与E极之间导通,此时C极电平变为低电平,所述二总线发码驱动电路模块的NMOS[T13]的G极与第四三极管[T14]的C极连接,根据NMOS的工作特性可知此时NOMS的D极与S极为截止状态;The QDH high level is output to the B pole of the fourth transistor [T14] of the level signal conversion module to control the conduction between the C pole and the E pole. At this time, the C pole level becomes a low level, so The G pole of the NMOS [T13] of the two-bus code-transmitting drive circuit module is connected to the C pole of the fourth transistor [T14]. According to the working characteristics of the NMOS, it can be known that the D pole and the S pole of the NOMS are in an off state at this time;

START高电平输出到所述电平信号翻转电路模块的第二翻转模块[U7B]的第4引脚输入端,此时第6引脚输出端输出SHORT电平不会使单片机中断;第一翻转模块[U7A]第1引脚输入端连接外部短路检测电路SHORT-CHECK为高电平信号,第3引脚输出端输出低电平到第一三极管[T12]的B极,此时输出的低电平不会改变PMOS的工作状态;The START high level is output to the 4th pin input terminal of the second inversion module [U7B] of the level signal inversion circuit module. At this time, the output terminal of the 6th pin output SHORT level will not interrupt the microcontroller; the first The input terminal of the first pin of the flip module [U7A] is connected to the external short circuit detection circuit SHORT-CHECK as a high level signal, and the output terminal of the third pin outputs a low level to the B pole of the first transistor [T12]. The low level of the output will not change the working state of the PMOS;

综上所述,PMOS和NMOS在第一状态时,二总线发码电路输出大电流的BUS+电平。To sum up, when the PMOS and NMOS are in the first state, the two-bus code sending circuit outputs the BUS+ level of a large current.

S102获取由单片机发出第二状态的QDL、QDH电平和START电平:S102 obtains the QDL, QDH level and START level of the second state sent by the microcontroller:

QDL为高电平、QDH为低电平,START为低电平;其中QDL高电平输出到所述电平信号转换模块的第一三极管[T12]的B极控其C极与E极之间的导通,从而控第三三极管[T8]的B极电流,根据PNP型三极管工作特性可知此时第三三极管[T8]的B极电流变化控制自身E极与C极之间导通使C极产生高电平,根据PMOS的工作特性可知此时S极与D极为截止状态,此时PMOS和NMOS为第二状态;QDL is high level, QDH is low level, START is low level; wherein QDL high level is output to the first transistor [T12] of the level signal conversion module. The B pole controls its C pole and E The conduction between the poles, so as to control the B pole current of the third transistor [T8]. According to the working characteristics of the PNP type transistor, it can be known that the change of the B pole current of the third transistor [T8] controls its own E pole and C pole. The conduction between the poles makes the C pole generate a high level. According to the working characteristics of the PMOS, it can be known that the S pole and the D pole are in the off state at this time, and the PMOS and NMOS are in the second state at this time;

QDH低电平输出到所述电平信号转换模块的第四三极管[T14]的B极控其C极与E极之间截止,此时C极电平变为高电平,所述二总线发码驱动电路模块的NMOS[T13]的G极与第四三极管[T14]的C极连接,根据NMOS的工作特性可知此时NOMS的D极与S极为导通状态;The QDH low level is output to the fourth transistor [T14] of the level signal conversion module. The B pole controls the connection between the C pole and the E pole to be cut off. The G pole of the NMOS [T13] of the two-bus code sending drive circuit module is connected to the C pole of the fourth transistor [T14]. According to the working characteristics of the NMOS, it can be known that the D pole and the S pole of the NOMS are in a conducting state at this time;

START低电平输出到所述电平信号翻转电路模块的第二翻转模块[U7B]的第4引脚输入端,此时第6引脚输出端输出SHORT电平会引起单片机程序中断,单片机程序中断执行检测电路中的短路信号;The START low level is output to the 4th pin input terminal of the second inversion module [U7B] of the level signal inversion circuit module. At this time, the output terminal of the 6th pin output SHORT level will cause the MCU program to be interrupted, and the MCU program will be interrupted. Interrupt the short-circuit signal in the execution detection circuit;

S103检测电路中有无短路情况:S103 detects whether there is a short circuit in the circuit:

检测到电路中无短路情况则,跳转到第S101步骤继续执行;检测到电路中有短路时,执行以下步骤;If it is detected that there is no short circuit in the circuit, skip to step S101 and continue to execute; when it is detected that there is a short circuit in the circuit, execute the following steps;

S104执行保护,步骤如下:S104 performs protection, and the steps are as follows:

外部检测电路的SHORT-CHECK电平被置为低电平,连接在所述第一翻转模块[U7A]的第1引脚输入端,经过第一翻转模块输出高电平到所述电平信号转换模块的第一三极管[T12]的B极;The SHORT-CHECK level of the external detection circuit is set to a low level, which is connected to the first pin input end of the first inversion module [U7A], and outputs a high level to the level signal through the first inversion module The B pole of the first transistor [T12] of the conversion module;

第一三极管[T12]的B极高电平,让其C极与E极导通使得第三三极管[T8]的B极电平被接低,从而让第三三极管E极与C极之间的导通使得C极变为高电平,这时所述二总线发码电路的PMOS的G极连接在第三三极管[T8]的C极,也会变为高电平;The B pole of the first transistor [T12] is at a very high level, so that the C pole and the E pole are connected so that the B pole level of the third transistor [T8] is connected to a low level, so that the third transistor E is connected. The conduction between the pole and the pole C makes the pole C become a high level. At this time, the pole G of the PMOS of the two-bus code sending circuit is connected to the pole C of the third transistor [T8], which will also become high level;

根据PMOS工作特性可知,此时PMOS的S极与D极处于截止状态,停止BUS+电平输出;According to the working characteristics of the PMOS, the S pole and the D pole of the PMOS are in the off state at this time, and the BUS+ level output is stopped;

综合以上步聚所述:当无短路时,由单片机控制所述的二总线驱动发码电路模块输出大电流的BUS+电平,为后续电路提供驱动供电;当有短路时,由电路处理短路电平信号并及时关停PMOS的输出,停止供电输出,以防止在短路的情况下大电流供电会烧毁电路,达到保护的目的。Based on the above steps: when there is no short circuit, the single-chip microcomputer controls the two-bus-driven code-transmitting circuit module to output a large current BUS+ level to provide driving power for the subsequent circuits; when there is a short circuit, the circuit handles the short-circuit power supply. Level the signal and shut down the output of the PMOS in time to stop the power supply output, so as to prevent the circuit from being burned by the high current power supply in the case of a short circuit, and achieve the purpose of protection.

参照图2-4,示出了本发明的一种具有保护控制功能的二总线发码电路装置实施例的电路图。2-4, there is shown a circuit diagram of an embodiment of a two-bus code sending circuit device with a protection control function of the present invention.

本发明实施例的核心构思之一,在于一种具有保护控制功能的二总线发码电路装置,包括:One of the core concepts of the embodiments of the present invention is a two-bus code sending circuit device with a protection control function, including:

所述二总线发码驱动电路的PMOS[T11]的S极连接输出BUSP的位置,所述二总线发码驱动电路模块的PMOS[T11]的G极连接在所述电平信号转换电路模块的第三三极管[T8]的C极,通过改变C极电平控制PMOS的导通或截止;NMOS[T13]的G极连接在所述电平信号转换电路模块的第四三极管[T14]的C极,通过控制C极电平来控制NMOS的截止或导通;所述PMOS[T11]和所述NMOS[T13]的G极串联第7电阻[R41];所述二总线发码驱动电路模块的PMOS的D极与NMOS的D极连接,并作为BUS+电平的输出端;The S pole of the PMOS[T11] of the two-bus code sending drive circuit is connected to the position of the output BUSP, and the G pole of the PMOS[T11] of the two-bus code sending drive circuit module is connected to the level signal conversion circuit module. The C pole of the third transistor [T8] controls the on or off of the PMOS by changing the level of the C pole; the G pole of the NMOS [T13] is connected to the fourth transistor [ The C pole of T14] is controlled by controlling the level of the C pole to control the cut-off or conduction of the NMOS; the PMOS[T11] and the G pole of the NMOS[T13] are connected in series with the seventh resistor [R41]; The D pole of the PMOS of the code driving circuit module is connected to the D pole of the NMOS, and is used as the output terminal of the BUS+ level;

所述电平信号转换电路模块的第一三极管[T12]的C级连接第二三极管[T15]的C极和第六电阻[R40]的一端,第一三极管[T12]的B极并联第一电阻[R45]和第二电阻[R49]两个电阻,其中第一电阻[R45]连接单片机QDL电平输出端,第二电阻[R49]连接所述电平翻转电路模块[74HC00]的第一翻转模块[U7A]的输出端;所述电平信号转换电路模块的第四三极管[T14]的B极并联第三电阻[R47]和第四电阻[R50],其中第三电阻[R47]的另一端连接单片机QDH电平输出端,第四电阻[R50]的另一端在回路中接地,第四三极管[T14]的E极在回路中接地,第四三极管[T14]的C极连接所述总线发码驱动电路模块的NMOS[T13]的G极;第三三极管[T8]的E极DC36V电源的输出,并且与第三三极管[T8]的B级并联第五电阻[R33],第三三极管[T8]的B极连接第6电阻[R40],所述第6电阻另一端连接所述第一三极管的C极和第二三极管的C级;所述第8电阻[R46]一端连接在所述NMOS的G极,另一端连接在第二三极管[T15]的B级,第二三极管[T15]的E极在回路中接地;The C level of the first transistor [T12] of the level signal conversion circuit module is connected to the C pole of the second transistor [T15] and one end of the sixth resistor [R40], the first transistor [T12] The B pole is connected in parallel with two resistors, the first resistor [R45] and the second resistor [R49], wherein the first resistor [R45] is connected to the QDL level output terminal of the microcontroller, and the second resistor [R49] is connected to the level inversion circuit module. The output end of the first inversion module [U7A] of [74HC00]; the B pole of the fourth transistor [T14] of the level signal conversion circuit module is connected in parallel with the third resistor [R47] and the fourth resistor [R50], The other end of the third resistor [R47] is connected to the QDH level output end of the microcontroller, the other end of the fourth resistor [R50] is grounded in the loop, the E pole of the fourth transistor [T14] is grounded in the loop, and the fourth The C pole of the transistor [T14] is connected to the G pole of the NMOS [T13] of the bus code sending drive circuit module; the E pole of the third transistor [T8] is the output of the DC36V power supply, and is connected with the third transistor [T8]. The B stage of [T8] is connected in parallel with the fifth resistor [R33], the B pole of the third transistor [T8] is connected to the sixth resistor [R40], and the other end of the sixth resistor is connected to the C of the first transistor. pole and the C level of the second transistor; one end of the eighth resistor [R46] is connected to the G pole of the NMOS, and the other end is connected to the B level of the second transistor [T15], the second transistor The E pole of [T15] is grounded in the loop;

所述电平信号翻转电路模块所述第一翻转模块[U7A]的第3引脚输出端连接到所述第二翻转模块[U7B]的第5引脚输入端并与第二电阻[R49]连接,所述第一翻转模块[U7A]的第1引脚输入端连接外部电路的短路检测信号SHORT-CHECK的输出端;所述第二翻转模块[U7B]的第6引脚输出端连接到所述第一翻转模块[U7A]的第2引脚输入端,并连接第9电阻[R53],所述第9电阻[R53]连接到单片机接收SHORT电平端,所述第二翻转模块[U7B]的第4引脚输入端连接单片机START电平信号输端。The level signal inversion circuit module The third pin output end of the first inversion module [U7A] is connected to the fifth pin input end of the second inversion module [U7B] and is connected with the second resistor [R49] Connect, the 1st pin input end of the described first inversion module [U7A] is connected to the output end of the short-circuit detection signal SHORT-CHECK of the external circuit; the 6th pin output end of the second inversion module [U7B] is connected to The second pin input end of the first flip module [U7A] is connected to the ninth resistor [R53], and the ninth resistor [R53] is connected to the SHORT level terminal of the single-chip microcomputer, and the second flip module [U7B] The 4th pin input end of ] is connected to the START level signal input end of the microcontroller.

所述二总线发码驱动电路模块是一种大电流供电电路,所述二总线发码驱动电路模块包含:大功率、低内阻的PMOS晶体管和NMOS晶体管,在大电流输出时可以大幅度降低因元件本身的原因造成的压降;所述PMOS的S极连接BUSP位置,PMOS的D极和NMOS的D极连接作为BUS+电平的输出端,NMOS的S在回路中接地。The two-bus code-transmitting drive circuit module is a high-current power supply circuit, and the two-bus code-transmitting drive circuit module includes: high-power, low-resistance PMOS transistors and NMOS transistors, which can be greatly reduced when outputting high currents. The voltage drop caused by the element itself; the S pole of the PMOS is connected to the BUSP position, the D pole of the PMOS and the D pole of the NMOS are connected as the output terminal of the BUS+ level, and the S of the NMOS is grounded in the loop.

所述电平信号翻转电路模块是一种74HC00门电路芯片,其内部至少4个独立模块,包括:第1引脚输入端、第2引脚输入端及第3引脚输出端的第一翻转模块[U7A],第4引脚输入端、第5引脚输入端及第6引脚输出端的第二翻转模块[U7B];所述第一路输出包括:第一翻转模块的输出端,所述第二路输出包括:第二翻转模块的输出端,所述第3引脚输出端连接第5引脚输入端,所述第6引脚输出端连接第2引脚输入端,此方式的连接可以提高电平信号翻转模块的工作效率,所述74HC00门电路芯片的第14引脚为芯片供电端连接VCC5V电源,第7引脚为接地端。The level signal inversion circuit module is a 74HC00 gate circuit chip with at least 4 independent modules inside, including: the first inversion module of the first pin input end, the second pin input end and the third pin output end [U7A], the second inversion module [U7B] of the 4th pin input end, the 5th pin input end and the 6th pin output end; the first output includes: the output end of the first inversion module, the The second output includes: the output end of the second flip module, the third pin output end is connected to the fifth pin input end, the sixth pin output end is connected to the second pin input end, the connection in this way The working efficiency of the level signal inversion module can be improved, the 14th pin of the 74HC00 gate circuit chip is the chip power supply terminal connected to the VCC5V power supply, and the 7th pin is the ground terminal.

所述电平信号转换电路模块包括:第一转换子模块、第二转换子模块和钳位电路模块;其中第一转换模块包含:第一三极管、第二三极管和第三三极管,第二转换模块包含:第四三极管;钳位电路包括:第一二极管和第二二极管。The level signal conversion circuit module includes: a first conversion sub-module, a second conversion sub-module and a clamping circuit module; wherein the first conversion module includes: a first triode, a second triode and a third triode The second conversion module includes: a fourth transistor; the clamping circuit includes: a first diode and a second diode.

所述第一三极管、第二三极管和第四三极管为NPN型三极管,第三三极管为PNP型三极管,根据三极管的工作特性,所述的NPN型三极管的E极在回路中均为接地;所述第一转换模块其特征在于:第一三极管的B极连接QDL电平输出端并与所述第一翻转模块的输出端连接,第一三极管的C极与第二三极管的C极并联,并连接到第三三极管的B极,第三三极管的E极连接回路中的供电端DC36V,第三三极管的C极与所述PMOS管的G极,第四三极管的C极连接到所述NMOS的G极以及第二三极管的B极;所述第四三极管的B极连接QDH电平输出端。The first triode, the second triode and the fourth triode are NPN triodes, and the third triode is a PNP triode. According to the working characteristics of the triodes, the E pole of the NPN triode is at The loops are all grounded; the first conversion module is characterized in that: the B pole of the first transistor is connected to the QDL level output terminal and is connected to the output terminal of the first flip module, and the C pole of the first transistor is connected to the output terminal of the QDL level. The pole is connected in parallel with the C pole of the second transistor, and is connected to the B pole of the third transistor, the E pole of the third transistor is connected to the power supply terminal DC36V in the loop, and the C pole of the third transistor is connected to the The G pole of the PMOS transistor and the C pole of the fourth transistor are connected to the G pole of the NMOS and the B pole of the second transistor; the B pole of the fourth transistor is connected to the QDH level output terminal.

所述QDL电平和QDH电平由外部单片机提供。The QDL level and the QDH level are provided by an external microcontroller.

所述钳位电路模块包括:连接在回路中的第一二极管[D7]和第二极管[D11];第一二极管[D7]负极连接回路中的DC36V正极连接所述二总线发码驱动电路的PMOS的G极连接,第二二极管[D11]的负极与所述二总线发码驱动电路的NMOS的G极连接,第二二极管[D11]的正极接地,由所述第一二极管[D7]和第二二极管[D11]组成的钳位电路可保护所述PMOS的G极和NMOS的G极的电平值不会超出供电回路0-DC36V(不考虑二极管导通的压降)。The clamping circuit module includes: a first diode [D7] and a second diode [D11] connected in the loop; the first diode [D7] cathode is connected to the DC36V anode in the loop to connect the two bus lines to send codes The G pole of the PMOS of the driving circuit is connected, the negative pole of the second diode [D11] is connected to the G pole of the NMOS of the two-bus code transmitting driving circuit, and the positive pole of the second diode [D11] is grounded, and the The clamp circuit composed of the first diode [D7] and the second diode [D11] can protect the level value of the G pole of the PMOS and the G pole of the NMOS from exceeding the power supply loop 0-DC36V (regardless of the diode conduction voltage drop).

需要说明的是,对于装置实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者并序进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simple description, the device embodiments are expressed as a series of action combinations, but those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because According to the embodiments of the present invention, certain steps may be performed in other sequences or in parallel sequences. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

本实施例除了能够为发码电路提供大电流的驱动电平外,还能够及时发现电路中的故障,检测有无短路情况,以便于及时有效的保护发码电路不会被烧坏。This embodiment can not only provide a large current driving level for the code sending circuit, but also can detect faults in the circuit in time and detect whether there is a short circuit, so as to timely and effectively protect the code sending circuit from being burned out.

对于电路实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the circuit embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the partial description of the method embodiment.

本说明书中的实施例采用递进的方式描述,但其执行过程和时序与并不完全等同于说明动作的顺序,实施例中所描述的顺序只是说明其实现原理并未限定各动作的执行顺序。The embodiments in this specification are described in a progressive manner, but the execution process and sequence are not completely equivalent to the sequence of actions. The sequence described in the embodiments is only to illustrate the principle of its implementation and does not limit the execution sequence of each action. .

本领域内的技术人员应明白,本发明实施例的实施例可提供为电路产品。本发明实施例是参照根据本发明实施例的方法、电路和电路图描述的。这些元器件、功能模块和基本电路图的描述,本领域技术人员参照这些描述可实现指定的功能。It should be understood by those skilled in the art that embodiments of the embodiments of the present invention may be provided as circuit products. Embodiments of the present invention are described with reference to methods, circuits, and circuit diagrams according to embodiments of the present invention. The descriptions of these components, functional modules and basic circuit diagrams, those skilled in the art can realize the specified functions with reference to these descriptions.

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although preferred embodiments of the embodiments of the present invention have been described, additional changes and modifications to these embodiments may be made by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiments as well as all changes and modifications that fall within the scope of the embodiments of the present invention.

最后,还需要说明的是,在本文中,诸如电平信号从第一模块或元器件发送到第二模块或元器等之类的关系术语仅仅用来表述信号电平传递关系,而不一定要求或者暗示这些模块或元器件之间存在任何直接的连接关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should also be noted that in this article, the relational terms such as the level signal sent from the first module or component to the second module or component are only used to express the signal level transfer relationship, not necessarily Any direct connection or sequence between these modules or components is required or implied. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or terminal device comprising a list of elements includes not only those elements, but also a non-exclusive list of elements. other elements, or also include elements inherent to such a process, method, article or terminal equipment. Without further limitation, an element defined by the phrase "comprises a..." does not preclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上对本发明所提供的具有保护控制功能的二总线发码电路,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The two-bus code sending circuit with protection and control function provided by the present invention has been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementations of the present invention. The descriptions of the above embodiments are only used to help understanding The method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be It is construed as a limitation of the present invention.

参照图3和图4是为了结合图2,让人更容易理解电路图的实施,并不作为他用。3 and 4 are used in conjunction with FIG. 2 to make it easier to understand the implementation of the circuit diagram, and are not used for other purposes.

Claims (7)

1. A bus driver code transmitting circuit, comprising:
the two buses transmit a code driving circuit module, a level signal conversion circuit module and a level signal turnover circuit module;
the two-BUS code sending driving circuit module is connected to the output end of the BUSP, receives a control signal and converts the control signal into a preset level through the level signal conversion circuit module, and controls the two-BUS code sending driving circuit module to output a BUS + level;
the level signal conversion circuit module receives a QDL level and a QDH level, converts the QDL level and the QDH level into a low level and a high level or a high level and a low level through the level signal conversion circuit module, and is connected to the control end of the two-bus driving code sending circuit module;
the level signal turning circuit module receives a START level sent by an external single chip microcomputer and a SHORT-CHECK level sent by an external SHORT circuit detection circuit; the second output of the level signal turnover circuit module is connected to the SHORT level position of the single chip microcomputer and is connected with the input end of the first turnover module of the level signal turnover circuit module, and the first output of the level signal turnover circuit module is connected to the level signal conversion circuit module and is connected with the input end of the second turnover module.
2. The bus driver code transmitting circuit of claim 1, wherein the two-bus code transmitting driver circuit module is a high current power supply circuit, the two-bus code transmitting driver circuit module comprising: PMOS transistor (PMOS) and NMOS transistor (NMOS), PMOS 'S S utmost point connection BUSP position, PMOS' S D utmost point and NMOS 'S D utmost point connect as the output of BUS + level, NMOS' S S ground connection in the return circuit, BUSP provides for external circuit, the control end of two BUS drive code sending circuit module includes: and the G pole of the PMOS and the G pole of the NMOS are connected.
3. The bus driving code transmitting circuit as claimed in claim 1, wherein the level signal flipping circuit module is a 74HC00 gate chip with at least 4 independent modules inside, comprising: the first overturning module is arranged at the input end of the No. 1 pin, the input end of the No. 2 pin and the output end of the No. 3 pin, and the second overturning module is arranged at the input end of the No. 4 pin, the input end of the No. 5 pin and the output end of the No. 6 pin; the first output comprises: the output end of the first flipping module, the second output includes: the output end of the second overturning module; the output end of the 3 rd pin is connected with the input end of the 5 th pin, and the output end of the 6 th pin is connected with the input end of the 2 nd pin.
4. The bus driving code sending circuit of claim 1, wherein the level signal converting circuit module comprises: the circuit comprises a first conversion module, a second conversion module and a clamping circuit module; wherein the first conversion module comprises: the first triode, second triode and third triode, the second conversion module contain: a fourth triode; the clamping circuit comprises: a first diode and a second diode.
5. The bus driving code transmitting circuit according to claims 1, 2, 3 and 4, wherein the first, second and fourth transistors are NPN transistors, the third transistor is PNP transistor, and according to the operating characteristics of the transistors, the E poles of the NPN transistors are all grounded in the loop; the first conversion module includes: the B pole of the first triode is connected with the QDL level output end and is connected with the output end of the first overturning module; the C electrode of the first triode is connected with the C electrode of the second triode in parallel and is connected to the B electrode of the third triode; the E pole of the third triode is connected with a power supply terminal DC36V in a loop, the C pole of the third triode is connected with the G pole of the PMOS tube, and the C pole of the fourth triode is connected with the G pole of the NMOS and the B pole of the second triode; the B pole of the fourth triode is connected with the QDH level output end, and the DC36V is a loop power supply end provided by the outside.
6. The bus driver code sending circuit of claim 1, wherein the QDL level and the QDH level are provided by an external single chip.
7. The bus driving code sending circuit of claim 4, wherein the cathode of the first diode of the clamping circuit module is connected to the DC36V power supply terminal in the loop, the anode of the first diode is connected to the cathode of the second diode, and the anode of the second diode is grounded in the loop.
CN202010260588.XA 2020-04-03 2020-04-03 Two-bus code sending drive circuit with protection control function Pending CN111342836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010260588.XA CN111342836A (en) 2020-04-03 2020-04-03 Two-bus code sending drive circuit with protection control function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010260588.XA CN111342836A (en) 2020-04-03 2020-04-03 Two-bus code sending drive circuit with protection control function

Publications (1)

Publication Number Publication Date
CN111342836A true CN111342836A (en) 2020-06-26

Family

ID=71186337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010260588.XA Pending CN111342836A (en) 2020-04-03 2020-04-03 Two-bus code sending drive circuit with protection control function

Country Status (1)

Country Link
CN (1) CN111342836A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491444A (en) * 2020-11-16 2021-03-12 广州保得威尔电子科技股份有限公司 Two bus signal repeaters

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477604A (en) * 2002-08-23 2004-02-25 海湾安全技术股份有限公司 Alarm information transmission method and two-wire system communication bus equipment
CN202759462U (en) * 2012-09-21 2013-02-27 阎伟 A high-power power supply communication bus using a two-wire system
CN103530997A (en) * 2013-11-01 2014-01-22 浙江爱德电子有限公司 Fire alarm control system and control method thereof
CN207853865U (en) * 2017-12-21 2018-09-11 深圳市泛海三江电子股份有限公司 A kind of two lines bus isolator
CN211656124U (en) * 2020-04-03 2020-10-09 深圳市泰和安科技有限公司 Two bus drive code sending circuits

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1477604A (en) * 2002-08-23 2004-02-25 海湾安全技术股份有限公司 Alarm information transmission method and two-wire system communication bus equipment
CN202759462U (en) * 2012-09-21 2013-02-27 阎伟 A high-power power supply communication bus using a two-wire system
CN103530997A (en) * 2013-11-01 2014-01-22 浙江爱德电子有限公司 Fire alarm control system and control method thereof
CN207853865U (en) * 2017-12-21 2018-09-11 深圳市泛海三江电子股份有限公司 A kind of two lines bus isolator
CN211656124U (en) * 2020-04-03 2020-10-09 深圳市泰和安科技有限公司 Two bus drive code sending circuits

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112491444A (en) * 2020-11-16 2021-03-12 广州保得威尔电子科技股份有限公司 Two bus signal repeaters
CN112491444B (en) * 2020-11-16 2022-03-11 广州保得威尔电子科技股份有限公司 Two bus signal repeaters

Similar Documents

Publication Publication Date Title
CN203850812U (en) Load short circuit protection circuit
CN106569015A (en) AC load detection circuit
KR20210120092A (en) Charging circuits and electronics
US20140313620A1 (en) Voltage protection circuit
CN111342836A (en) Two-bus code sending drive circuit with protection control function
CN211656124U (en) Two bus drive code sending circuits
CN107872912B (en) Control circuit/method, dimming control system and electronic equipment
CN117269851B (en) Terminal grafting detection device
CN205231727U (en) Switching power supply output connects battery to join conversely protection automatic control circuit
CN205265649U (en) Control circuit based on triode switching action
TW202101854A (en) Power control circuit and power control method
CN116707508A (en) Standby optocoupler switching circuit, method and device, storage medium and electronic equipment
CN201937236U (en) Locking type short-circuit protection circuit in vehicle electronic system
CN215731499U (en) Solid relay based on energy delay discrimination circuit
CN211959188U (en) High-speed signal isolation module with wide voltage input
CN113991599A (en) Protection circuit, control method and computer readable storage medium
CN213240454U (en) A star-shaped three-phase load short-circuit detection device
CN103441656A (en) IGBT driving circuit with undersaturated protection function
CN104238539B (en) The method of intelligent load box, vehicle start-stop analogue means and simulating vehicle start-stop
CN221842368U (en) Intelligent circuit breaker
CN109546616B (en) Overcurrent self-protection safety output circuit, use method thereof and laser radar
CN206727632U (en) Diagnostic signal short-circuit detecting circuit
CN220985689U (en) Test circuit and electronic equipment
CN219811956U (en) Power port protection circuit
CN210273478U (en) Short circuit cutting circuit of parallel power supply

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