CN217113060U - A control circuit for real-time communication - Google Patents
A control circuit for real-time communication Download PDFInfo
- Publication number
- CN217113060U CN217113060U CN202122983872.2U CN202122983872U CN217113060U CN 217113060 U CN217113060 U CN 217113060U CN 202122983872 U CN202122983872 U CN 202122983872U CN 217113060 U CN217113060 U CN 217113060U
- Authority
- CN
- China
- Prior art keywords
- circuit
- interface
- control circuit
- pin
- main control
- 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.)
- Expired - Fee Related
Links
- ZRKLEAHGBNDKHM-UHFFFAOYSA-N N,n'-diallyl-2,3-dihydroxysuccinamide Chemical group C=CCNC(=O)C(O)C(O)C(=O)NCC=C ZRKLEAHGBNDKHM-UHFFFAOYSA-N 0.000 claims abstract description 7
- 239000003990 capacitor Substances 0.000 claims description 6
- 230000001568 sexual effect Effects 0.000 claims 1
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Images
Landscapes
- Communication Control (AREA)
Abstract
本实用新型涉及硬件通讯控制技术领域,具体为一种实时通讯的控制电路,包括:主控电路,所述主控电路用于输出CLK信号、输入DATA信号,及给下级电路提供电源;通讯电路,所述通讯电路包括:第一接口电路,所述第一接口电路用于连接主控电路的CLK信号、DATD信号、电源,第二接口电路,所述第二接口电路用于连接外部的霍尔信号,移位寄存器,所述移位寄存器分别与第一接口电路、第二接口电路电性连接,所述移位寄存器经第一接口电路与主控电路进行通讯,所述移位寄存器经第二接口电路检测霍尔信号。
The utility model relates to the technical field of hardware communication control, in particular to a control circuit for real-time communication. , the communication circuit includes: a first interface circuit, which is used to connect the CLK signal, DATD signal, and power supply of the main control circuit, and a second interface circuit, which is used to connect an external HU er signal, a shift register, the shift register is electrically connected to the first interface circuit and the second interface circuit, respectively, the shift register communicates with the main control circuit through the first interface circuit, and the shift register communicates with the main control circuit through the first interface circuit. The second interface circuit detects the Hall signal.
Description
技术领域technical field
本实用新型涉及硬件通讯控制技术领域,具体为一种实时通讯的控制电路。The utility model relates to the technical field of hardware communication control, in particular to a control circuit for real-time communication.
背景技术Background technique
现有技术中,工具类产品几乎都含有主板(大板)和通讯板(大板),两板通过连接线相连;为了解决通讯线异常(压断或线短路等),大小板常规采用两个单片机通讯,包括串口或PWM通讯;但是由于采用了单片机,通常单片机的价格高昂,而且还需要编写软件,在信号的实时性方面也存在很大不足。In the prior art, almost all tool products contain a main board (large board) and a communication board (large board), and the two boards are connected by a connecting line; in order to solve the abnormality of the communication line (pressure break or line short circuit, etc.), the large and small boards are conventionally used. A single-chip communication, including serial port or PWM communication; but because of the use of a single-chip, the price of the single-chip is usually high, and the software needs to be written, and there is a big shortage in the real-time performance of the signal.
实用新型内容Utility model content
本实用新型的目的在于提供一种实时通讯的控制电路,以克服采用了单片机,通常单片机的价格高昂,而且还需要编写软件,在信号的实时性方面也存在很大不足的问题。The purpose of the utility model is to provide a control circuit for real-time communication to overcome the problem of using a single-chip microcomputer, which is usually expensive and needs to write software, and there is also a great lack of real-time signal performance.
为实现上述目的,本实用新型广泛应用于硬件通讯控制技术方案,特别是提供如下技术方案:一种实时通讯的控制电路,包括;In order to achieve the above purpose, the utility model is widely used in the technical scheme of hardware communication control, and especially provides the following technical scheme: a control circuit for real-time communication, comprising;
主控电路,所述主控电路用于输出CLK信号、输入DATA信号,及给下级电路提供电源;a main control circuit, the main control circuit is used for outputting the CLK signal, inputting the DATA signal, and providing power to the subordinate circuit;
通讯电路,所述通讯电路包括:A communication circuit, the communication circuit includes:
第一接口电路,所述第一接口电路用于连接主控电路的CLK信号、DATD 信号、电源,a first interface circuit, the first interface circuit is used to connect the CLK signal, the DATD signal, and the power supply of the main control circuit,
第二接口电路,所述第二接口电路用于连接外部的霍尔信号,a second interface circuit, the second interface circuit is used to connect an external Hall signal,
移位寄存器,所述移位寄存器分别与第一接口电路、第二接口电路电性连接,所述移位寄存器经第一接口电路与主控电路进行通讯,所述移位寄存器经第二接口电路检测霍尔信号;a shift register, the shift register is electrically connected to the first interface circuit and the second interface circuit respectively, the shift register communicates with the main control circuit through the first interface circuit, and the shift register communicates with the main control circuit through the second interface The circuit detects the Hall signal;
编码电路,所述编码电路用于扩展通讯电路,或用于判断移位寄存器与主控电路通讯是否正常。The encoding circuit is used for expanding the communication circuit, or for judging whether the communication between the shift register and the main control circuit is normal.
优选的,所述主控电路包括MCU芯片、电阻R1、三极管Q1、第一CON1 接口;所述MCU芯片的LD端口经电阻R1与三极管Q1基极电性连接,所述三极管Q1的集电极外接5V电源,所述三极管Q1发射极与第一CON1接口的一端连接,所述第一CON1接口另外端口分别与MCU芯片的CLK信号端、DATD信端电性连接。Preferably, the main control circuit includes an MCU chip, a resistor R1, a transistor Q1, and a first CON1 interface; the LD port of the MCU chip is electrically connected to the base of the transistor Q1 via the resistor R1, and the collector of the transistor Q1 is connected to an external 5V power supply, the emitter of the transistor Q1 is connected to one end of the first CON1 interface, and the other ports of the first CON1 interface are respectively electrically connected to the CLK signal terminal and the DATD signal terminal of the MCU chip.
优选的,所述第一接口电路包括第二CON1接口、二极管D1、RC滤波电路;所述第二接口电路分别与第一CON1接口的相应端口一一对应连接,所述二极管D1的一端与第二CON1接口对应端连接,所述二极管D1的另一端与RC 滤波电路连接,所述RC滤波电路的一端与第二CON1接口对应端连接。Preferably, the first interface circuit includes a second CON1 interface, a diode D1, and an RC filter circuit; the second interface circuit is respectively connected with the corresponding ports of the first CON1 interface in a one-to-one correspondence, and one end of the diode D1 is connected to the first CON1 interface. The corresponding ends of the two CON1 interfaces are connected, the other end of the diode D1 is connected to the RC filter circuit, and one end of the RC filter circuit is connected to the corresponding end of the second CON1 interface.
优选的,所述RC滤波电路包括电容C1、电容C2、电阻R5组成的电路。Preferably, the RC filter circuit includes a circuit composed of a capacitor C1, a capacitor C2, and a resistor R5.
优选的,所述移位寄存器设为74HC165芯片。Preferably, the shift register is set as a 74HC165 chip.
优选的,所述第二接口电路分别与74HC165芯片的E引脚、F引脚、G引脚、H引脚电性连接。Preferably, the second interface circuit is electrically connected to the E pin, the F pin, the G pin and the H pin of the 74HC165 chip, respectively.
优选的,所述编码电路分别与74HC165芯片的SET引脚、A引脚、B引脚、 D引脚、C引脚电性连接。Preferably, the encoding circuit is electrically connected to the SET pin, the A pin, the B pin, the D pin and the C pin of the 74HC165 chip, respectively.
与现有技术相比,本实用新型的有益效果是:Compared with the prior art, the beneficial effects of the present utility model are:
本实用新型在当MCU芯片的LD端为低电平时,则经三极管Q4、第一CON1 接口、第二CON1接口给74HC165芯片进行供电;The utility model supplies power to the 74HC165 chip through the transistor Q4, the first CON1 interface and the second CON1 interface when the LD end of the MCU chip is at a low level;
当MCU芯片需要进行信号采集时,MCU芯片的LD端为高电平时,即为高电平为2us时,74HC165芯片通过第二接口电路对霍尔信号进行采集,并将采集好的霍尔信号输入给MCU芯片When the MCU chip needs to collect signals, when the LD terminal of the MCU chip is at a high level, that is, when the high level is 2us, the 74HC165 chip collects the Hall signal through the second interface circuit, and collects the collected Hall signal. Input to MCU chip
当为了74HC165芯片的SET引脚、A引脚、B引脚、D引脚、C引脚,可以进行编码时,编码电路编码信号时,要求不能是全0或全1,因为74HC165 芯片与MCU芯片的数据线只有一根,如果此根线的信号有高有低,说明通讯是正常,利用此特性主控电路可以检测通讯是否异常;When coding is possible for the SET pin, A pin, B pin, D pin, and C pin of the 74HC165 chip, when the coding circuit encodes the signal, it is not required to be all 0 or all 1, because the 74HC165 chip and the MCU There is only one data line of the chip. If the signal of this line is high or low, it means that the communication is normal. Using this feature, the main control circuit can detect whether the communication is abnormal;
当主控电路要求连接多个通讯电路时,则编码电路可以是地址编码,相当于下位机是唯一的,则主控电路至少可以连接十几个通讯电路;当然也可以将此编码信号定义为产品编号等;因此本实用新型通过位移寄存器取代单片机,则电路的成本低,且电路不需软件编写和烧程序,同时采集所需信号, 循环通讯周期可以设置在100-300Us,达到实时性大大增强的有益效果。When the main control circuit requires to connect multiple communication circuits, the encoding circuit can be an address code, which is equivalent to the uniqueness of the lower computer, then the main control circuit can be connected to at least a dozen communication circuits; of course, the encoding signal can also be defined as Therefore, the utility model replaces the single-chip microcomputer through the displacement register, the cost of the circuit is low, and the circuit does not need software writing and programming, and the required signals are collected at the same time. Enhanced beneficial effects.
附图说明Description of drawings
图1为本实用新型的主控电路原理示意图;Fig. 1 is the main control circuit principle schematic diagram of the present utility model;
图2为本实用新型的通讯电路、移位寄存器、编码电路原理图。FIG. 2 is a schematic diagram of a communication circuit, a shift register and an encoding circuit of the present invention.
具体实施方式Detailed ways
下面将结合本实用新型实施例中的附图,对本实用新型实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本实用新型一部分实施例,而不是全部的实施例。基于本实用新型中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本实用新型保护的范围。The technical solutions in the embodiments of the present utility model will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present utility model. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all the implementations. example. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present invention.
请参阅图1、图2所示,本实用新型提供的一种实施例:Please refer to Figure 1 and Figure 2, an embodiment provided by the present invention:
一种实时通讯的控制电路,包括;A control circuit for real-time communication, comprising;
主控电路1,所述主控电路1用于输出CLK信号、输入DATA信号,及给下级电路提供电源;a
通讯电路,所述通讯电路包括:A communication circuit, the communication circuit includes:
第一接口电路2,所述第一接口电路2用于连接主控电路1的CLK信号、 DATD信号、电源,The
第二接口电路3,所述第二接口电路3用于连接外部的霍尔信号,The
移位寄存器,所述移位寄存器分别与第一接口电路2、第二接口电路3电性连接,所述移位寄存器经第一接口电路2与主控电路1进行通讯,所述移位寄存器经第一接口电路2检测霍尔信号;a shift register, the shift register is electrically connected to the
编码电路4,所述编码电路4用于扩展通讯电路,或用于判断移位寄存器与主控电路1通讯是否正常。The
进一步的,所述主控电路1包括MCU芯片、电阻R1、三极管Q1、第一CON1 接口;所述MCU芯片的LD端口经电阻R1与三极管Q1基极电性连接,所述三极管Q1的集电极外接5V电源,所述三极管Q1发射极与第一CON1接口的一端连接,所述第一CON1接口另外端口分别与MCU芯片的CLK信号端、DATD信端电性连接。Further, the
进一步的,所述第一接口电路2包括第二CON1接口、二极管D1、RC滤波电路;所述第二接口电路3分别与第一CON1接口的相应端口一一对应连接,所述二极管D1的一端与第二CON1接口对应端连接,所述二极管D1的另一端与RC滤波电路连接,所述RC滤波电路的一端与第二CON1接口对应端连接。Further, the
进一步的,所述RC滤波电路包括电容C1、电容C2、电阻R5组成的电路。Further, the RC filter circuit includes a circuit composed of a capacitor C1, a capacitor C2, and a resistor R5.
进一步的,所述移位寄存器设为74HC165芯片。Further, the shift register is set as a 74HC165 chip.
进一步的,所述第二接口电路3分别与74HC165芯片的E引脚、F引脚、 G引脚、H引脚电性连接。Further, the
进一步的,所述编码电路4分别与74HC165芯片的SET引脚、A引脚、B 引脚、D引脚、C引脚电性连接。Further, the
本实用新型的工作原理如下:The working principle of the present utility model is as follows:
当MCU芯片的LD端为低电平时,则经三极管Q4、第一CON1接口、第二 CON1接口给74HC165芯片进行供电;When the LD terminal of the MCU chip is at a low level, power is supplied to the 74HC165 chip through the transistor Q4, the first CON1 interface, and the second CON1 interface;
当MCU芯片需要进行信号采集时,MCU芯片的LD端为高电平时,即为高电平为2us时,74HC165芯片通过第二接口电路对霍尔信号进行采集,并将采集好的霍尔信号输入给MCU芯片When the MCU chip needs to collect signals, when the LD terminal of the MCU chip is at a high level, that is, when the high level is 2us, the 74HC165 chip collects the Hall signal through the second interface circuit, and collects the collected Hall signal. Input to MCU chip
当为了74HC165芯片的SET引脚、A引脚、B引脚、D引脚、C引脚,可以进行编码时,编码电路编码信号时,要求不能是全0或全1,因为74HC165 芯片与MCU芯片的数据线只有一根,如果此根线的信号有高有低,说明通讯是正常,利用此特性主控电路1可以检测通讯是否异常;When coding is possible for the SET pin, A pin, B pin, D pin, and C pin of the 74HC165 chip, when the coding circuit encodes the signal, it is not required to be all 0 or all 1, because the 74HC165 chip and the MCU There is only one data line of the chip. If the signal of this line is high or low, it means that the communication is normal. Using this feature, the
当主控电路1要求连接多个通讯电路时,则编码电路可以是地址编码,相当于下位机是唯一的,则主控电路1至少可以连接十几个通讯电路;当然也可以将此编码信号定义为产品编号等。When the
对于本领域技术人员而言,显然本实用新型不限于上述示范性实施例的细节,而且在不背离本实用新型的精神或基本特征的情况下,能够以其他的具体形式实现本实用新型。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本实用新型的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本实用新型内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, and that the present invention may be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention. Therefore, the embodiments are to be considered in all respects as exemplary and not restrictive, and the scope of the present invention is defined by the appended claims rather than the foregoing description, and it is therefore intended that the All changes within the meaning and range of the required equivalents are embraced within the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202122983872.2U CN217113060U (en) | 2021-11-30 | 2021-11-30 | A control circuit for real-time communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202122983872.2U CN217113060U (en) | 2021-11-30 | 2021-11-30 | A control circuit for real-time communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN217113060U true CN217113060U (en) | 2022-08-02 |
Family
ID=82589331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202122983872.2U Expired - Fee Related CN217113060U (en) | 2021-11-30 | 2021-11-30 | A control circuit for real-time communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN217113060U (en) |
-
2021
- 2021-11-30 CN CN202122983872.2U patent/CN217113060U/en not_active Expired - Fee Related
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102169468B (en) | Identification method for external module and device | |
CN104298575B (en) | Mainboard debug circuit | |
CN110928823A (en) | Level conversion circuit | |
CN203930612U (en) | A kind of multi-functional PCIE IO card extender | |
CN217113060U (en) | A control circuit for real-time communication | |
CN201562270U (en) | Server configuration identification device | |
CN203785804U (en) | Three-wire remote temperature measuring circuit based on digital temperature sensor | |
CN114355815A (en) | Controller, control system and communication method of controller | |
CN104965468B (en) | A kind of common interface module suitable for the multi-functional acquisition control devices of CPCI | |
CN203241752U (en) | Digital analog conversion CAN bus control transmit-receive system connected with multipath-sensor | |
CN106484588A (en) | Serial communication monitoring system and method | |
CN116028409A (en) | Adapter card, mainboard, computer, data transmission method, equipment and medium | |
CN212850272U (en) | Temperature drift prevention high-speed communication voltage conversion circuit | |
CN207123835U (en) | Versatile interface integrated box | |
CN203338347U (en) | An interface circuit of a fault detection device for a computer motherboard | |
CN211264315U (en) | Card reader | |
CN113055755A (en) | Modbus mode conversion device | |
CN114595174B (en) | Conversion circuit of PCIE interface and serial port parallel port | |
CN207657438U (en) | Protecting equipment for printing head for self-help terminal equipment | |
CN202586934U (en) | Read-write control circuit of touch button detection chip | |
CN101345524A (en) | Adapter for standard serial ports | |
CN119053021B (en) | Circuit board assembly and circuit motherboard for interface expansion based on Slimsas interfaces | |
CN204442339U (en) | A kind of transducer connecting circuit | |
CN204406377U (en) | A kind of resistive touch screen driving circuit | |
CN204693726U (en) | Air-conditioning equipment and circuit board thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220802 |