CN209328020U - A kind of serial ports for realizing multi-computer communication - Google Patents
A kind of serial ports for realizing multi-computer communication Download PDFInfo
- Publication number
- CN209328020U CN209328020U CN201920152861.XU CN201920152861U CN209328020U CN 209328020 U CN209328020 U CN 209328020U CN 201920152861 U CN201920152861 U CN 201920152861U CN 209328020 U CN209328020 U CN 209328020U
- Authority
- CN
- China
- Prior art keywords
- uart
- connect
- pin
- triode
- host side
- 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.)
- Active
Links
Landscapes
- Bidirectional Digital Transmission (AREA)
Abstract
The utility model relates to a kind of serial ports for realizing multi-computer communication, comprising: host side and from generator terminal, the host side and include a UART_TX and a UART_RX from generator terminal, wherein there are two triodes for the UART_TX setting, for signal to be carried out reverse phase variation;The UART_RX is provided with a triode, for signal to be carried out reverse phase variation;The UART_TX of the host side is connect with described from the UART_RX of generator terminal, and the UART_RX of the host side is connect with described from the UART_TX of generator terminal;It when multi-computer communication, connect after multiple UART_RX from generator terminal are in parallel with the UART_TX of the host side, is connect after multiple UART_TX from generator terminal are in parallel with the UART_RX of the host side.The utility model realizes the function of serial ports multi-computer communication by driving circuit, reaches reduction cost, simplifies design, convenient for the purpose of extension.
Description
Technical field
The utility model belongs to field of communication technology, and in particular to a kind of serial ports for realizing multi-computer communication.
Background technique
Single-chip microcontroller: single-chip microcontroller (Microcontrollers) is a kind of IC chip, is using ultra-large integrated
Circuit engineering is central processor CPU, random access memory ram, read only memory ROM, a variety of I/O with data-handling capacity
The functions such as mouth and interruption system, timer/counter are integrated into the small and perfect miniature calculating of one constituted on one piece of silicon wafer
Machine system.Serial ports: refer to UART(Universal Asynchronous Receiver/Transmitter) asynchronous serial communication.
Multi-computer communication: information exchange is carried out between multiple devices.
Single-chip microcontroller is integrated with various functional modules at present, and performance is very powerful, application it is very extensive.In various applied fields
Jing Zhong, the exchange of unavoidable information, so just having various communication modes and agreement, serial communication uses letter because of it
It is single reliable, thus it is very universal;It is typically all to be communicated using serial ports and host computer in industry control and measuring device, Er Qieshi
One-to-one communication.The equipment of connection is more, and the serial ports quantity needed is more, and the single-chip microcontroller pin resource of occupancy is more.Cause
Can this, use a serial ports to realize that the function of multi-computer communication just has practical significance.
Utility model content
In view of the shortcomings of the prior art, the utility model provides a kind of serial ports for realizing multi-computer communication, using two NPN types
The driving circuit that triode builds the transmission of a signal not only increases the driving capability of serial ports by this driving circuit, and
And single-chip microcontroller and external equipment has been isolated, there is certain protective capability, reach reduction cost, simplify design, convenient for extension
Purpose.
To solve the above problems, the technical solution adopted in the utility model are as follows:
A kind of serial ports for realizing multi-computer communication, comprising: host side and include one from generator terminal, the host side and from generator terminal
A UART_TX and UART_RX, wherein
There are two triodes for the UART_TX setting, for signal to be carried out reverse phase variation;
The UART_RX is provided with a triode, for signal to be carried out reverse phase variation;
The UART_TX of the host side is connect with described from the UART_RX of generator terminal, the UART_RX of the host side and institute
State the UART_TX connection from generator terminal;
When multi-computer communication, it is connect after multiple UART_RX from generator terminal are in parallel with the UART_TX of the host side, it is more
It is connect after a UART_TX from generator terminal is in parallel with the UART_RX of the host side.
Further, the UART_TX includes: the first triode, the second triode, wherein
First pin of first triode is connect by a resistance with single-chip microcontroller, the second pipe of first triode
Foot is connect with VCC, and the third pin of first triode is connect by a resistance with VDD;
First pin of second triode is connect with the third pin of first triode;Second triode
The second pin connect with VCC by a resistance, the third pin of the third transistor is connect with VDD, the two or three pole
Second pin of pipe is connect with delivery outlet.
Further, the UART_RX includes: third transistor, wherein
First pin of the third transistor is connect by a resistance with receiving port, the second pipe of the third transistor
Foot is connect with VCC, and the third pin of the third transistor is connect by a resistance with VDD.
Further, the voltage of VDD is adjusted according to communication distance.
The utility model has the beneficial effects that: the utility model realizes the function of serial ports multi-computer communication by driving circuit
Can, reach reduction cost, simplifies design, convenient for the purpose of extension.
Detailed description of the invention
Fig. 1 is the host side structural schematic diagram of the utility model.
Fig. 2 is the utility model slave end structure schematic diagram.
Fig. 3 is the utility model multimachine connection schematic diagram.
Specific embodiment
In order to enable those skilled in the art to better understand the technical solutions of the present invention, combined with specific embodiments below
The utility model is described in further detail.It note that the embodiments described below is exemplary, be only used for explaining this
Utility model, and should not be understood as limiting the present invention.Particular technique or condition are not specified in embodiment, according to this
Technology or conditions described in document in field are carried out according to product description.Production is not specified in agents useful for same or instrument
Manufacturer person, being can be with conventional products that are commercially available.
Existing serial communication is typically all one-to-one communication, seldom the interface as multi-computer communication, and signal electricity
It is flat generally 0 between 3.3V, when remote transmission, probably due to leading to signal attenuation distortion the reason of transmission cable.
One aspect according to the present utility model, the utility model provide a kind of serial ports for realizing multi-computer communication, and Fig. 1 is
The host side structural schematic diagram of the utility model.Fig. 2 is the utility model slave end structure schematic diagram.As shown, this is practical
Novel includes: host side and from generator terminal, which is characterized in that the host side and include a UART_TX and a UART_ from generator terminal
RX, wherein there are two triodes for the UART_TX setting, for signal to be carried out reverse phase variation;The UART_RX is provided with
One triode, for signal to be carried out reverse phase variation;The UART_TX of the host side connects with described from the UART_RX of generator terminal
It connects, the UART_RX of the host side is connect with described from the UART_TX of generator terminal;Fig. 3 is the utility model multimachine connection signal
Figure, as shown in figure 3, connecting after multiple UART_RX from generator terminal are in parallel with the UART_TX of the host side when multi-computer communication
It connects, is connect after multiple UART_TX from generator terminal are in parallel with the UART_RX of the host side.
Specific embodiment according to the present utility model, the UART_TX include: the first triode, the second triode,
In, the first pin of first triode is connect by a resistance with single-chip microcontroller, the second pin of first triode and
The third pin of VCC connection, first triode is connect by a resistance with VDD;First pin of second triode
It is connect with the third pin of first triode;Second pin of second triode is connect by a resistance with VCC, institute
The third pin for stating third transistor is connect with VDD, and the second pin of second triode is connect with delivery outlet.
Specific embodiment according to the present utility model, the UART_RX include: third transistor, wherein the described 3rd 3
First pin of pole pipe is connect by a resistance with receiving port, and the second pin of the third transistor is connect with VCC, and described the
The third pin of three triodes is connect by a resistance with VDD.
The voltage of specific embodiment according to the present utility model, VDD is adjusted according to communication distance.
Embodiment 1
As shown in Figure 1, have the variation of a reverse phase after the transmitting terminal UART_TX of serial ports passes through triode Q1, Q2, when
When UART_TX exports high level, Q1 conducting, Q2 is closed, and the voltage at the end TX_M is 0V;When exporting low level, Q1 is closed, and Q2 is led
Logical, the voltage at the end TX_M is VDD;The voltage swing of VDD can be adjusted according to communication distance, if apart from distant, Ke Yizeng
The voltage of big VDD, anti-stop signal attenuation distortion on transmission cable.
As shown in Fig. 2, the TX_M of host side is connected to the end RX_S of slave because the signal of host sending end have one it is anti-
The process of phase, so before the receiving end UART_RX of slave, also have a NPN type triode Q6 to the signal received into
Row reverse phase, in this way, the signal that the receiving end of slave receives is only correctly, voltage VCC is according to slave chip pin operating voltage
To select.
As shown in figure 3, the end RX_S of all slaves is connected in parallel, it is then attached to the end TX_M of host;Similarly, own
The end TX_S of slave is connected in parallel, and is connected to the end RX_M of host.It is as needed from generator terminal, it is more to can also continue to connection
Equipment.It is however noted that slave in parallel is more, the pull down resistor equivalent resistance from the end generator terminal TX_S is smaller, institute
To need to pay attention to according to slave quantity, the resistance value of pull down resistor R5 is adjusted.
Under normal circumstances, the information that host is sent, all slaves can be received by, after slave receives information, according to information
In include particular value judge whether this information is that host issues oneself, if it is then slave executes phase according to order
The operation answered, and specific information is returned to host;If it is not, so slave is just failure to actuate, and also do not returned to host
Information.For host by way of poll, accessible all slaves realize the purpose of multi-computer communication.
The utility model utilizes simple driving circuit and communication mode in summary, realizes serial ports multi-computer communication
Function, and it is low in cost, and design is simple and has good scalability.
In the description of the present invention, it should be understood that term " first ", " second " are used for description purposes only, and
It cannot be understood as indicating or implying relative importance or implicitly indicate the quantity of indicated technical characteristic.It defines as a result,
The feature of " first ", " second " can explicitly or implicitly include one or more of the features.
In the present invention unless specifically defined or limited otherwise, term " installation ", " connected ", " connection ", " Gu
It is fixed " etc. terms shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or integral;It can be
Mechanical connection, is also possible to be electrically connected;It can be directly connected, two can also be can be indirectly connected through an intermediary
The interaction relationship of connection or two elements inside element.It for the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term in the present invention.
In the present invention unless specifically defined or limited otherwise, fisrt feature is in the second feature " on " or " down "
It can be that the first and second features directly contact or the first and second features are by intermediary mediate contact.Moreover, first is special
Sign can be fisrt feature above the second feature " above ", " above " and " above " and be directly above or diagonally above the second feature, or only
Indicate that first feature horizontal height is higher than second feature.Fisrt feature under the second feature " below ", " below " and " below " can be with
It is that fisrt feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the utility model.In the present specification, to the schematic table of above-mentioned term
Identical embodiment or example need not be directed to by stating.Moreover, particular features, structures, materials, or characteristics described can be
It can be combined in any suitable manner in any one or more embodiment or examples.In addition, without conflicting with each other, this field
Technical staff can by the feature of different embodiments or examples described in this specification and different embodiments or examples into
Row combination and combination.
Although the embodiments of the present invention have been shown and described above, it is to be understood that above-described embodiment is
Illustratively, it should not be understood as limiting the present invention, those skilled in the art are in the scope of the utility model
It inside can make changes, modifications, alterations, and variations to the above described embodiments, at the same time, for those skilled in the art, foundation
The thought of the application, there will be changes in the specific implementation manner and application range.
Claims (4)
1. a kind of serial ports for realizing multi-computer communication, comprising: host side and from generator terminal, which is characterized in that the host side and slave
End includes an a UART_TX and UART_RX, wherein
There are two triodes for the UART_TX setting, for signal to be carried out reverse phase variation;
The UART_RX is provided with a triode, for signal to be carried out reverse phase variation;
The UART_TX of the host side is connect with described from the UART_RX of generator terminal, the UART_RX of the host side and it is described from
The UART_TX connection of generator terminal;
When multi-computer communication, it is connect after multiple UART_RX from generator terminal are in parallel with the UART_TX of the host side, Duo Gesuo
It states and is connect after the UART_TX parallel connection of generator terminal with the UART_RX of the host side.
2. serial ports according to claim 1, which is characterized in that the UART_TX includes: the first triode, the two or three pole
Pipe, wherein
First pin of first triode is connect by a resistance with single-chip microcontroller, the second pin of first triode and
The third pin of VCC connection, first triode is connect by a resistance with VDD;
First pin of second triode is connect with the third pin of first triode;The of second triode
Two pins are connect by a resistance with VCC, and the third pin of the third transistor is connect with VDD, second triode
Second pin is connect with delivery outlet.
3. serial ports according to claim 1, which is characterized in that the UART_RX includes: third transistor, wherein
First pin of the third transistor is connect by a resistance with receiving port, the second pin of the third transistor and
The third pin of VCC connection, the third transistor is connect by a resistance with VDD.
4. the serial ports according to any one of claim 2,3, which is characterized in that the voltage of VDD is adjusted according to communication distance.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920152861.XU CN209328020U (en) | 2019-01-29 | 2019-01-29 | A kind of serial ports for realizing multi-computer communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201920152861.XU CN209328020U (en) | 2019-01-29 | 2019-01-29 | A kind of serial ports for realizing multi-computer communication |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209328020U true CN209328020U (en) | 2019-08-30 |
Family
ID=67732018
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201920152861.XU Active CN209328020U (en) | 2019-01-29 | 2019-01-29 | A kind of serial ports for realizing multi-computer communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209328020U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114726494A (en) * | 2022-03-04 | 2022-07-08 | 深圳拓邦股份有限公司 | uart interface circuit, uart communication method and apparatus |
-
2019
- 2019-01-29 CN CN201920152861.XU patent/CN209328020U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114726494A (en) * | 2022-03-04 | 2022-07-08 | 深圳拓邦股份有限公司 | uart interface circuit, uart communication method and apparatus |
CN114726494B (en) * | 2022-03-04 | 2024-03-29 | 深圳拓邦股份有限公司 | UART interface circuit, UART communication method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN209030353U (en) | Interface circuit and device | |
CN209328020U (en) | A kind of serial ports for realizing multi-computer communication | |
CN103684407A (en) | Otg device | |
CN202798652U (en) | Signal conversion circuit and interface switching equipment | |
CN206878840U (en) | A kind of USB turns RS485 communication adapters | |
US20070075754A1 (en) | System state monitoring circuit | |
CN207457318U (en) | A kind of modular electric energy meter | |
CN206686217U (en) | A kind of multiserver network share framework | |
CN203658990U (en) | Debugging device for central processing unit | |
CN108494889B (en) | Communication circuit based on I2C bus and debugging method | |
CN108683577A (en) | Interface conversion circuit and double nip device | |
CN114661646A (en) | Serial port switching control circuit | |
CN201774527U (en) | Wireless transceiving module connected with USB interface and based on virtual COM interface | |
CN113111021A (en) | UART master-slave line communication control circuit and method | |
CN207427205U (en) | Intelligent appliance wireless universal control circuit board | |
CN209525609U (en) | A kind of micro control unit based on RISC-V | |
CN110516486A (en) | A kind of wireless timesharing RFID terminal of Internet of Things | |
CN205193738U (en) | Support PS2 and USB double nip keyboard of special function key | |
CN201199349Y (en) | Serial port level changer | |
CN212061145U (en) | USB-COM port conversion circuit and industrial control equipment | |
CN105512066B (en) | Soft starter communication protocol conversion device and method based on profibus | |
CN220730802U (en) | Multiplexing full duplex UART's USB Type-C interface circuit | |
CN220210463U (en) | Asynchronous receiving and transmitting serial system and computer equipment | |
CN117560594A (en) | Ethernet communication module and ammeter | |
CN216286654U (en) | Hardware module for converting single-path USB into multi-path UART |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant |