CN104881392A - Multiplexing RS485 circuit - Google Patents

Multiplexing RS485 circuit Download PDF

Info

Publication number
CN104881392A
CN104881392A CN201510342818.6A CN201510342818A CN104881392A CN 104881392 A CN104881392 A CN 104881392A CN 201510342818 A CN201510342818 A CN 201510342818A CN 104881392 A CN104881392 A CN 104881392A
Authority
CN
China
Prior art keywords
circuit
pin
shift register
register group
controller
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
CN201510342818.6A
Other languages
Chinese (zh)
Other versions
CN104881392B (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.)
FUJIAN JUNPENG COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
FUJIAN JUNPENG COMMUNICATION 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 FUJIAN JUNPENG COMMUNICATION TECHNOLOGY Co Ltd filed Critical FUJIAN JUNPENG COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201510342818.6A priority Critical patent/CN104881392B/en
Publication of CN104881392A publication Critical patent/CN104881392A/en
Application granted granted Critical
Publication of CN104881392B publication Critical patent/CN104881392B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0004Parallel ports, e.g. centronics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a multiplexing RS485 circuit. The multiplexing RS485 circuit comprises a controller, a serial-in parallel-out shifting register group and an RS485 circuit; the controller is provided with a UART interface and three I/O ports; the I/O ports are connected with the input end of the serial-in parallel-out shifting register group, respectively; the output end of the serial-in parallel-out shifting register group is connected with more than two RS485 circuits, respectively, and enables each RS485 circuit; the RXD pin and the TXD pin of the UART interface of the controller are correspondingly connected with RO pin and the DI pin of an RS485 communication circuit, respectively. The multiplexing RS485 circuit has high efficiency, high systematicness and higher practical value, and is especially suitable for application in the DMX512 communication protocol.

Description

A kind of multiplexed RS485 circuit
Technical field
The present invention relates to circuit engineering field, particularly relate to a kind of multiplexed RS485 circuit.
Background technology
The present invention comes from RS485 Control and Application, has two parts in the circuit, two parts circuit be respectively minimum system circuit you, be called for short: MCU; Some is telecommunication circuit, is called for short: RS485.How to solve MCU when only having the UART Universal Asynchronous Receiver Transmitter interface of 1 and multiple common I/O port, hardware handles is passed through with 1 UART Universal Asynchronous Receiver Transmitter interface and common I/O port and multiple RS485, can be made with selective communication, Ru Yilu, multichannel, all (in circuit) RS485 communicate.
This circuit has only used 1 UART Universal Asynchronous Receiver Transmitter interface to communicate with the RS485 of multichannel (more than 1 tunnel) in other circuit present unlike this circuit, having MCU to come can to any road in multichannel or multichannel and whole RS485 circuit controls and the transmission of information, and be all employing 1 UART Universal Asynchronous Receiver Transmitter Interface Controller 1 RS485 circuit in circuit in the past, or adopt special MCU to control the RS485 circuit of multichannel, so improve the cost of circuit; Now have employed new control mode and decrease demand to UART Universal Asynchronous Receiver Transmitter interface quantity.
A prior art [1], sees " between a kind of elevator outer-office calling plate and master control board synchronous communication device " (Shanghai: CN2815986,2006-09-13, author Jiang Zhijun, Wu Zuojin, Liu Ming).As shown in Figure 1, it is characterized in that in this communication device: 1 UART Universal Asynchronous Receiver Transmitter interface of MCU drives separately 1 RS485 circuit to receive and sends data thus control the transmitting-receiving of multiple RS485 circuit.In prior art [1], this bus multiplex communication mode efficiency comparison is low, needs repeatedly to return answer signal, and the time causing transmission data used is longer, thus the ageing of whole system lowers greatly.
A prior art [2], sees " Multipath general purpose asynchronous transceiver " (Sichuan: CN2645348,2004-09-29, author Yang Shouping).As shown in Figure 2, it is characterized in that in this kind of DLT asynchronous communication: expand two or more UART Universal Asynchronous Receiver Transmitter by a UART Universal Asynchronous Receiver Transmitter, and expansion UART Universal Asynchronous Receiver Transmitter baud rate out can be arranged by software or control line.In prior art [2], large to the dependence of universal asynchronous serial interface, internal circuit is complicated, and does not make full use of processor resource.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, providing a kind of can carry out to the signal of Control Console the lighting system that forward process realizes multidiameter delay control.
The technical solution used in the present invention is:
A kind of multiplexed RS485 circuit, it comprises controller, SI PO shift register group and RS485 circuit, described controller has a UART interface and three I/O mouths, three described I/O mouths connect the input end of SI PO shift register group respectively, the output terminal of described SI PO shift register group connects the RS485 circuit of more than two-way respectively, and the RS485 circuit controlling each road is enable; The RXD pin of the UART interface of described controller and TXD pin are respectively with the RO pin of RS485 telecommunication circuit with DI pin is corresponding is connected.
Described SI PO shift register group comprises the SI PO shift register of two or more cascade; The nRE pin of each road RS485 circuit is connected with a delivery outlet of SI PO shift register respectively with DE pin, and described controller is by SI PO shift register each road enable RS485 circuit.
Described controller is arm processor.
The present invention adopts above technical scheme, under the state not using special IC, by the UART interface of controller be connected at controller by three I/O mouths realize the control to RS485 circuit more than two-way by the SI PO shift register group that controls.It is strong that the present invention controls dirigibility, when not needing software programming, and can the circuit sending signal of any road wherein, multichannel or whole RS485 separately simultaneously; Also the signal that each RS485 circuit returns can be received at times.The present invention also reduces the dependence to special chip, reduces the cost of development of product and the production cost of product.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further details;
The theory diagram of Fig. 1 prior art [1];
The theory diagram of Fig. 2 prior art [2];
The system chart of a kind of multiplexed RS485 circuit of Fig. 3 the present invention.
Embodiment
As shown in Figure 3, the present invention it comprise controller, SI PO shift register group and RS485 circuit, described controller has a UART interface and three I/O mouths, three described I/O mouths connect the input end of SI PO shift register group respectively, the output terminal of described SI PO shift register group connects the RS485 circuit of more than two-way respectively, and the RS485 circuit controlling each road is enable; The RXD pin of the UART interface of described controller and TXD pin are respectively with the RO pin of RS485 telecommunication circuit with DI pin is corresponding is connected.
Described SI PO shift register group comprises the SI PO shift register of two or more cascade; The nRE pin of each road RS485 circuit is connected with a delivery outlet of SI PO shift register respectively with DE pin, and described controller is by SI PO shift register each road enable RS485 circuit.
Described controller is arm processor.
The present invention adopts above technical scheme, under the state not using special IC, by the UART interface of controller be connected at controller by three I/O mouths realize the control to RS485 circuit more than two-way by the SI PO shift register group that controls.It is strong that the present invention controls dirigibility, when not needing software programming, and can the circuit sending signal of any road wherein, multichannel or whole RS485 separately simultaneously; Also the signal that each RS485 circuit returns can be received at times.The present invention also reduces the dependence to special chip, reduces the cost of development of product and the production cost of product.
In sum, a kind of multiplexed RS485 circuit set forth in the present invention, has high efficiency, systematicness and higher practical value, is particularly suitable for the application in DMX512 communication protocol.

Claims (3)

1. a multiplexed RS485 circuit, it is characterized in that: it comprises controller, SI PO shift register group and RS485 circuit, described controller has a UART interface and three I/O mouths, three described I/O mouths connect the input end of SI PO shift register group respectively, the output terminal of described SI PO shift register group connects the RS485 circuit of more than two-way respectively, and the RS485 circuit controlling each road is enable; The RXD pin of the UART interface of described controller and TXD pin are respectively with the RO pin of RS485 telecommunication circuit with DI pin is corresponding is connected.
2. a kind of multiplexed RS485 circuit according to claim 1, is characterized in that: described SI PO shift register group comprises the SI PO shift register of two or more cascade; The nRE pin of each road RS485 circuit is connected with a delivery outlet of SI PO shift register respectively with DE pin, and described controller is by SI PO shift register each road enable RS485 circuit.
3. a kind of multiplexed RS485 circuit according to claim 1, is characterized in that: described controller is arm processor.
CN201510342818.6A 2015-06-19 2015-06-19 A kind of RS485 circuits of multiplexing Active CN104881392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510342818.6A CN104881392B (en) 2015-06-19 2015-06-19 A kind of RS485 circuits of multiplexing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510342818.6A CN104881392B (en) 2015-06-19 2015-06-19 A kind of RS485 circuits of multiplexing

Publications (2)

Publication Number Publication Date
CN104881392A true CN104881392A (en) 2015-09-02
CN104881392B CN104881392B (en) 2018-10-16

Family

ID=53948887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510342818.6A Active CN104881392B (en) 2015-06-19 2015-06-19 A kind of RS485 circuits of multiplexing

Country Status (1)

Country Link
CN (1) CN104881392B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396505A (en) * 2017-09-20 2017-11-24 上海乐野网络科技有限公司 A kind of circuit for driving multigroup LED to show

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184543A1 (en) * 2001-05-31 2002-12-05 Philips Semiconductor, Inc. Power and frequency adjustable UART device
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN204117139U (en) * 2014-09-04 2015-01-21 特变电工西安电气科技有限公司 The directional control circuit of a kind of RS485

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184543A1 (en) * 2001-05-31 2002-12-05 Philips Semiconductor, Inc. Power and frequency adjustable UART device
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN204117139U (en) * 2014-09-04 2015-01-21 特变电工西安电气科技有限公司 The directional control circuit of a kind of RS485

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396505A (en) * 2017-09-20 2017-11-24 上海乐野网络科技有限公司 A kind of circuit for driving multigroup LED to show

Also Published As

Publication number Publication date
CN104881392B (en) 2018-10-16

Similar Documents

Publication Publication Date Title
CN102088386B (en) Universal serial bus (USB) for master-slave interconnection module of circuit system
CN100561457C (en) A kind of system of RS232/RS485 compatibility interface and method thereof
CN203658996U (en) Chip interface multiplex circuit and mobile terminal
CN106021152A (en) Master-slave serial device concentrator and asynchronous duplex one-to-many serial communication method
CN101005427A (en) 485 bus system and method for transmitting data
CN103838700A (en) level multiplexing control serial communication device and communication method thereof
CN103814367A (en) Communications assembly comprising multi-channel logic communication via physical transmission path, for serial interchip data transmission
CN104301191A (en) Bus system
CN101847135B (en) Series-connected communication system and communication method thereof
CN110708324A (en) Method and system for realizing point-to-point communication between FPGA (field programmable Gate array) board cards
CN207896980U (en) Communication structure and communication system
CN103067240A (en) Switching circuit of four-channel serial bus and four-channel controller area network (CAN) bus
CN104881392A (en) Multiplexing RS485 circuit
CN101577732B (en) Multi-node communication link and asynchronous serial communication method thereof
CN203982366U (en) Based on ARM and FPGA serial port device flexibly at a high speed
CN103268301A (en) Automatic-flowing half-duplex UART interface circuit
CN207817688U (en) A kind of serial communication bus interface circuit of compatible different agreement
CN201936300U (en) Device for expanding USB (Universal Serial Bus) into multi-path serial ports
CN214376432U (en) Terminal RS485 and RS232 switching circuit are fused to platform district intelligence
CN209860929U (en) Communication bus structure
CN203606824U (en) Circuit achieving intelligent serial port multiplexing through multi-way switch
CN106506304B (en) Expansible communication system and method
CN203086596U (en) Pluggable household pick-up head card employing specific definition
CN203149567U (en) Multi-node communication circuit based on RS232C standard
CN207148827U (en) A kind of device that RS232 and RS485 interface standard group equipment is supported based on SoC

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant