CN209248280U - Simple general use circuit based on RS-485 communication - Google Patents

Simple general use circuit based on RS-485 communication Download PDF

Info

Publication number
CN209248280U
CN209248280U CN201822093357.5U CN201822093357U CN209248280U CN 209248280 U CN209248280 U CN 209248280U CN 201822093357 U CN201822093357 U CN 201822093357U CN 209248280 U CN209248280 U CN 209248280U
Authority
CN
China
Prior art keywords
resistance
optocoupler
circuit
resistor
pin
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
Application number
CN201822093357.5U
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.)
ZHUHAI PILOT TECHNOLOGY Co Ltd
Original Assignee
ZHUHAI PILOT 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 ZHUHAI PILOT TECHNOLOGY Co Ltd filed Critical ZHUHAI PILOT TECHNOLOGY Co Ltd
Priority to CN201822093357.5U priority Critical patent/CN209248280U/en
Application granted granted Critical
Publication of CN209248280U publication Critical patent/CN209248280U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Interface Circuits In Exchanges (AREA)

Abstract

The utility model discloses the simple general use circuits communicated based on RS-485, including logic conversion unit, MCU and RS-485 communication unit, logic conversion unit includes logical transition circuit, RS-485 communication unit include communication chip and with RS-485 telecommunication circuit, logical transition circuit includes first resistor, second resistance, 3rd resistor, triode, one end of first resistor and one end of second resistance are connected to MCU, the other end of second resistance and one end of 3rd resistor are connected to the base stage of triode, the emitter of triode and the other end of 3rd resistor are grounded, the collector of triode and the other end of first resistor are connected to RS-485 telecommunication circuit, RS-485 telecommunication circuit connection communication chip.The utility model, which welds several components by selection, can realize the compatibility of signal procedure Yu RS-485 communication module circuitry, and practicability is higher.

Description

Simple general use circuit based on RS-485 communication
Technical field
The utility model relates to a kind of RS-485 field of communication technology more particularly to it is a kind of based on RS-485 communication it is simple Universal circuit.
Background technique
Currently, nineteen eighty-three electronic industries alliance is formulated on the basis of RS-422 and has issued RS-485 standard.And by communicating TIA/EIA-485-A is named as after Industry Association revision, habit is referred to as RS-485 agreement.RS-485 normal data signals use Differential transfer, also referred to as balance transmission, due to the remote of RS-485, multinode and transmission line characteristic at low cost, so that It is widely used in industrial automation and automatic data collection field (including various intelligence instruments, such as ammeter, water meter, gas meter Remote data acquisition).
Although with the progress of technology, inter-disciplinary talent is increasingly badly in need of in society, but the presence of the professional talent has Its necessity, generality.This has also been doomed most enterprise software engineers and Hardware Engineer and the status deposited.For software Engineer and Hardware Engineer and the enterprise deposited, most Hardware Engineers only need design schematic diagram, PCB both can, without grasp Relative program writes work.Therefore if hardware and software is incompatible, hardware can not just need software work in the case where time update Cheng Shi assists modification program, causes the increase of task amount, and there are software engineer similarly can not time update software feelings Condition is delayed project process.
Utility model content
For overcome the deficiencies in the prior art, simple logical the purpose of this utility model is to provide being communicated based on RS-485 With circuit, it can overcome the problems, such as that the prior art is incompatible to RS-485 communication module hardware and MCU programmed logic sequence.
The utility model adopts the following technical solution realizes:
Based on the simple general use circuit of RS-485 communication, including logic conversion unit, MCU and RS-485 communication unit, institute Stating logic conversion unit includes at least one set of logical transition circuit, and the RS-485 communication unit includes communication chip and is used for It sends, receive, three road RS-485 telecommunication circuits of transmitting-receiving control, logical transition circuit described in each group includes first resistor, the One end of two resistance, 3rd resistor, triode, one end of the first resistor and the second resistance is connected to the MCU I/O mouthfuls of correspondence, one end of the other end of the second resistance and the 3rd resistor is connected to the base stage of the triode, The emitter of the triode and the other end of the 3rd resistor with connecing the first direct current, the collector of the triode and institute The other end for stating first resistor is connected to the corresponding RS-485 telecommunication circuit, described in the RS-485 telecommunication circuit connection Communication chip.
Further, the quantity of the logical transition circuit and the quantity of RS-485 telecommunication circuit are three groups.
Further, the RS-485 telecommunication circuit include the 4th resistance, the 5th resistance, optocoupler and capacitor, described three groups RS-485 telecommunication circuit includes two group of the first RS-485 telecommunication circuit and one group of the 2nd RS-485 telecommunication circuit, the first RS- One end of 4th resistance of 485 telecommunication circuits connects the other end of the first resistor, the other end connection of the 4th resistance The second pin of the optocoupler, the first pin of the optocoupler connect the first DC power supply, the 5th pin of the optocoupler, described One end of 5th resistance and one end of the capacitor are all connected with the second DC power supply, described in the other end connection of the 5th resistance 4th pin of optocoupler, the other end of the capacitor, the optocoupler third pin with connecing the second direct current;The of the optocoupler Four pins are also connected with I/O mouthfuls of correspondence of communication chip;4th pin of the optocoupler of the 2nd RS-485 telecommunication circuit, the 4th electricity One end of resistance connects the other end of the first resistor, the 5th pin of the optocoupler, the other end of the 4th resistance and institute The one end for stating capacitor is all connected with first via DC power supply, and the third pin of the optocoupler, the other end of the capacitor connect first Direct current, the first pin of the optocoupler connects the second DC power supply, and the second pin of the optocoupler connects the one of the 5th resistance End, I/O mouthfuls of correspondence of the other end connection communication chip of the 5th resistance.
Further, the model SN75176 of the communication chip.
Further, the model TPL2309 of the optocoupler.
Further, first DC power supply is 3.3V, and the second DC power supply is 5V.
Compared with prior art, the utility model has the beneficial effects that:
The utility model does not need Hardware Engineer or Test Engineer understands internal communication signal logic sequence, also without Software engineer is needed to modify programmed logic sequence, it is several by selection welding as long as ensuring that RS-485 signal procedure can work Component can realize the compatibility of signal procedure Yu RS-485 communication module circuitry, and practicability is higher.
Detailed description of the invention
Fig. 1 is the function structure chart of the simple general use circuit based on RS-485 communication of the utility model;
Fig. 2 is the circuit structure diagram of first group of logical transition circuit of the utility model;
Fig. 3 is the circuit structure diagram of second group of logical transition circuit of the utility model;
Fig. 4 is the circuit structure diagram of the third group logical transition circuit of the utility model;
Fig. 5 is the circuit structure diagram of the RS-485 communication unit of the utility model.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the utility model, it should be noted that Under the premise of not colliding, it can be formed in any combination between various embodiments described below or between each technical characteristic new Embodiment.
As shown in Figure 1, the utility model provides the simple general use circuit communicated based on RS-485, including logical transition list Member, MCU and RS-485 communication unit.Logic conversion unit includes at least one set of logical transition circuit, RS-485 communication unit packet Include communication chip and the three road RS-485 telecommunication circuits for sending, receiving, receiving and dispatching control, each group of logical transition circuit packet First resistor, second resistance, 3rd resistor, triode are included, one end of first resistor and one end of second resistance are connected to MCU I/O mouthfuls of correspondence, the other end of the second resistance and one end of 3rd resistor are connected to the base stage of triode, triode With connecing the first direct current, the collector of triode and the other end of first resistor are all connected with for emitter and the other end of 3rd resistor To corresponding RS-485 telecommunication circuit, RS-485 telecommunication circuit connects the communication chip.
RS-485 telecommunication circuit includes the 4th resistance, the 5th resistance, optocoupler and capacitor.Three groups of RS-485 telecommunication circuits include Two group of the first RS-485 telecommunication circuit and one group of the 2nd RS-485 telecommunication circuit, the first RS-485 telecommunication circuit is for receiving signal (TXD1) control signal (RTS1) with transmitting-receiving: one end of the 4th resistance connects the other end of the first resistor, the 4th resistance The other end connects the second pin of optocoupler, and the first pin of optocoupler connects the first DC power supply, the 5th pin of optocoupler, the 5th electricity One end of resistance and one end of capacitor are all connected with the second DC power supply, the 4th pin of the other end connection optocoupler of the 5th resistance, electricity The other end of appearance, the third pin of optocoupler are with connecing the second direct current;4th pin of optocoupler is also connected with the correspondence I/O of communication chip Mouthful;For the 2nd RS-485 telecommunication circuit, for sending signal (RXD1): the 4th pin of optocoupler, one end of the 4th resistance connect The other end of first resistor is connect, it is straight that the 5th pin, the other end of the 4th resistance and one end of capacitor of optocoupler are all connected with the first via Galvanic electricity source, with connecing the first direct current, the first pin of optocoupler connects the second direct current for the third pin of optocoupler, the other end of capacitor Source, one end of second pin the 5th resistance of connection of optocoupler, I/O mouthfuls of correspondence of the other end connection communication chip of the 5th resistance.
As the utility model preferred embodiment, the quantity of logical transition circuit is preferably three in the utility model Group.In conjunction with Fig. 2 to Fig. 5, first group of logical transition circuit includes resistance R11, resistance R12, resistance R17 and triode Q1, resistance One end of R11 and one end of resistance R12 are connected to I/O mouthfuls of correspondence of MCU, the other end of resistance R12 and one end of resistance R17 Be connected to the base stage of triode Q1, the emitter of triode Q1 and the other end of resistance R17 with connecing the first direct current, triode The collector of Q1 and the other end of resistance R11 are connected to corresponding RS-485 telecommunication circuit, and the connection of RS-485 telecommunication circuit is logical Believe chip.Second group of logical transition circuit includes resistance R9, resistance R13, resistance R15 and triode Q2, one end of resistance R9 and One end of resistance R13 is connected to I/O mouthfuls of correspondence of MCU, and the other end of resistance R13 and one end of resistance R15 are connected to three The base stage of pole pipe Q2, the emitter of triode Q2 and the other end of resistance R15 with connecing the first direct current, the collector of triode Q2 Corresponding RS-485 telecommunication circuit, RS-485 telecommunication circuit connection communication chip are connected to the other end of resistance R9.Third Group logical transition circuit includes resistance R10, resistance R14, resistance R16 and triode Q3, one end of resistance R10 and resistance R14's One end is connected to I/O mouthfuls of correspondence of MCU, and the other end of resistance R14 and one end of resistance R16 are connected to the base of triode Q3 Pole, the emitter of triode Q3 and the other end of resistance R16 with connecing the first direct current, the collector and resistance R10 of triode Q3 The other end be connected to corresponding RS-485 telecommunication circuit, RS-485 telecommunication circuit connection communication chip U3.
RS-485 telecommunication circuit for receiving and dispatching control signal includes resistance R7, resistance R6, optocoupler U4 and capacitor C4, resistance The other end of one end connection resistance R11 of R7, the second pin of the other end connection optocoupler U4 of resistance R7, the first of optocoupler U4 are drawn Foot connects the first DC power supply, and the 5th pin, one end of resistance R6 and one end of capacitor C4 of optocoupler U4 is all connected with the second direct current Power supply, the 4th pin of the other end connection optocoupler of resistance R6, the other end of capacitor C4, the third pin of optocoupler U4 connect second Direct current;The 4th pin of optocoupler U4 is also connected with transmitting-receiving control the pin DE and RE of communication chip U3.
RS-485 telecommunication circuit for receiving signal includes resistance R3, resistance R2, optocoupler U1 and capacitor C1, resistance R3's One end connects the other end of resistance R9, the second pin of the other end connection optocoupler U1 of resistance R3, and the first pin of optocoupler U1 connects The first DC power supply is connect, the 5th pin, one end of resistance R2 and one end of capacitor C1 of optocoupler U1 is all connected with the second DC power supply, 4th pin of the other end connection optocoupler of resistance R2, the other end of capacitor C1, the third pin of optocoupler U1 connect the second direct current Ground;The 4th pin of optocoupler U1 is also connected with the reception pin DI of communication chip U3.
RS-485 telecommunication circuit for sending signal includes resistance R4, resistance R1, optocoupler U2 and capacitor C2, resistance R1's One end connects the other end of resistance R10 and the 4th pin of optocoupler U2, and the first pin of optocoupler U2 connects the second DC power supply, The 5th pin, the other end of resistance R1 and one end of capacitor C2 of optocoupler U2 is all connected with the first DC power supply, and capacitor C2's is another End, optocoupler U2 third pin with connecing the first direct current;The second pin of one end connection optocoupler U2 of resistance R4, resistance R4's is another The transmission pin RO of one end connection communication chip U3.
First DC power supply is 3.3V, and the second DC power supply is 5V.
In the utility model, the model of optocoupler is preferably but not limited to TPL2309, and the model of communication chip U3 is preferred but unlimited In SN75176.
For logic conversion unit, three signals of communication are controlled using three duplicate circuits, use principle phase Together, be illustrated by taking first group of logical transition circuit as an example below: first group of logical transition circuit is for controlling RS-485 communication Unit transmitting-receiving control RTX1 signal.When 0 ohm of resistance R11 is welded in selection, the leg signal USART1_CTR of MCU directly connects Hair control signal RTX1 is received, MCU module leg signal output state is consistent with RTX1 signal condition namely leg signal When USART1_CTR is high level, transmitting-receiving control signal RTX1 is also high level;When 0 ohm of resistance R11 is not welded in selection, When welding R12, R17 and Q1, when the leg signal USART1_CTR for connecting MCU is high level, the signal of transmitting-receiving control at this time RTX1 is low level, with signal USART1_CTR on the contrary, to realize the logical transition of leg signal.
MCU is needed to carry out signal in order to realize that RS-485 telecommunication circuit works normally for RS-485 communication unit Transmitting-receiving controls, and in actual use, interferes in order to prevent, guarantees the steady operation of RS-485 communication unit, logical in MCU and RS-485 Believe that the signal of communication of the communication chip U3 of module needs to be converted by optocoupler (U1, U2 and U4).Under normal conditions, MCU mould Signal of communication line between block and RS-485 communication module is three, and one is used as signal and receives, and one is used as signal and sends, most The latter is used as transmitting-receiving control.For RS-485 telecommunication circuit, three signal wires must satisfy certain timing and logic sequence Column, just can guarantee the steady operation of RS-485 telecommunication circuit, such as: the transmitting-receiving control of the integrated chip for RS-485 telecommunication circuit Signal RTS1 processed, is for for optocoupler U4, and when RTX1 is low level, RTS1 is low level;When RTX1 is high level, RTS1 For high level.When RS-485 telecommunication circuit is directly connected with MCU, the low and high level of RTX1 comes from MCU internal processes logical zero Or 1 digital signal control.In the case where three signal meet demand timing of RS-485 telecommunication circuit, when for receiving and dispatching control When the signal RTS1 of system meets the logic sequence of data receiver and transmission, RS-485 telecommunication circuit is worked normally;When for receiving When the signal RTS1 of hair control violates the logic sequence of data receiver and transmission, RS-485 telecommunication circuit can not work, such In the case of, logical transition module can carry out Selective Soldering component as needed to complete turning for requirement logic sequence It changes, and then realizes the normal work of RS-485 telecommunication circuit.What the communication chip of the utility model RS-485 communication unit used It is SN75176 integrated chip, but is actually not limited to the integrated chip.
Above embodiment is only preferred embodiments of the present invention, cannot be protected with this to limit the utility model Range, the variation of any unsubstantiality that those skilled in the art is done on the basis of the utility model and replacement belong to In the utility model range claimed.

Claims (6)

1. the simple general use circuit based on RS-485 communication, which is characterized in that logical including logic conversion unit, MCU and RS-485 Believe that unit, the logic conversion unit include at least one set of logical transition circuit, the RS-485 communication unit includes communication core Piece and quantity identical as the logical transition circuit and one-to-one RS-485 telecommunication circuit, logical transition described in each group Circuit includes first resistor, second resistance, 3rd resistor, triode, one end of the first resistor and the second resistance One end is connected to I/O mouthfuls of correspondence of the MCU, and one end of the other end of the second resistance and the 3rd resistor is all connected with To the base stage of the triode, the other end of the emitter of the triode and the 3rd resistor with connecing the first direct current, institute The other end of the collector and the first resistor of stating triode is connected to the corresponding RS-485 telecommunication circuit, described RS-485 telecommunication circuit connects the communication chip.
2. simple general use circuit as described in claim 1, which is characterized in that the quantity and RS-485 of the logical transition circuit The quantity of telecommunication circuit is three groups.
3. simple general use circuit as claimed in claim 2, which is characterized in that the RS-485 telecommunication circuit includes the 4th electricity Resistance, the 5th resistance, optocoupler and capacitor, three groups of RS-485 telecommunication circuits include two group of the first RS-485 telecommunication circuit and one group One end of 2nd RS-485 telecommunication circuit, the 4th resistance of the first RS-485 telecommunication circuit connects the another of the first resistor One end, the other end of the 4th resistance connect the second pin of the optocoupler, and the first pin connection first of the optocoupler is straight Galvanic electricity source, the 5th pin, one end of the 5th resistance and one end of the capacitor of the optocoupler are all connected with the second direct current The other end in source, the 5th resistance connects the 4th pin of the optocoupler, the third of the other end of the capacitor, the optocoupler Pin is with connecing the second direct current;4th pin of the optocoupler is also connected with I/O mouthfuls of correspondence of communication chip;2nd RS-485 communication 4th pin of the optocoupler of circuit, one end of the 4th resistance connect the other end of the first resistor, and the of the optocoupler Five pins, the other end of the 4th resistance and one end of the capacitor are all connected with first via DC power supply, and the of the optocoupler Three pins, the capacitor the other end with connecing the first direct current, the first pin of the optocoupler connects the second DC power supply, described One end of second pin the 5th resistance of connection of optocoupler, I/O mouthfuls of correspondence of the other end connection communication chip of the 5th resistance.
4. simple general use circuit as claimed in claim 3, which is characterized in that the model SN75176 of the communication chip.
5. simple general use circuit as claimed in claim 3, which is characterized in that the model TPL2309 of the optocoupler.
6. simple general use circuit as claimed in claim 5, which is characterized in that first DC power supply is 3.3V, and second is straight Galvanic electricity source is 5V.
CN201822093357.5U 2018-12-13 2018-12-13 Simple general use circuit based on RS-485 communication Active CN209248280U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201822093357.5U CN209248280U (en) 2018-12-13 2018-12-13 Simple general use circuit based on RS-485 communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201822093357.5U CN209248280U (en) 2018-12-13 2018-12-13 Simple general use circuit based on RS-485 communication

Publications (1)

Publication Number Publication Date
CN209248280U true CN209248280U (en) 2019-08-13

Family

ID=67532914

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201822093357.5U Active CN209248280U (en) 2018-12-13 2018-12-13 Simple general use circuit based on RS-485 communication

Country Status (1)

Country Link
CN (1) CN209248280U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557859A (en) * 2018-12-13 2019-04-02 珠海派诺科技股份有限公司 Simple general use circuit based on RS-485 communication

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109557859A (en) * 2018-12-13 2019-04-02 珠海派诺科技股份有限公司 Simple general use circuit based on RS-485 communication

Similar Documents

Publication Publication Date Title
CN201113972Y (en) Level switching circuit
CN201788434U (en) Multipath bidirectional digital controlled constant current source
CN106533873A (en) CAN bus node chip including transceiver and controller
CN209248280U (en) Simple general use circuit based on RS-485 communication
CN106598897A (en) Industry bus system self-adaptive to three industry bus protocols and conversion method
CN208477523U (en) A kind of arithmetic system and corresponding electronic equipment
CN103926862B (en) The means of communication of micro energy lose M-bus slave terminal circuits for intelligence instrument communication
CN109557859A (en) Simple general use circuit based on RS-485 communication
CN105607546A (en) MBUS calorimeter data acquisition controller receiving circuit
CN204256738U (en) The data line of S7-200PLC and I/A Series
CN201490999U (en) Modbus protocol-based current output system
CN202261414U (en) GPIB/CAN interface conversion device
CN211124035U (en) PAM4 optical module I2C communication system
CN203658838U (en) Labview-based testing system of RS485 bus structure DCS system I/O slave station
CN207264051U (en) A kind of LCD screen ageing management system
CN201985886U (en) Two-wire slave machine circuit
CN202094919U (en) Slave machine circuit device with remote power supply function for instrument bus
CN206584190U (en) Agriculture cloud service data acquisition device
CN204437452U (en) Intelligent electric valve positioning device
CN206517440U (en) A kind of wireless adapter of sensor
CN212367268U (en) M-BUS host transceiver circuit based on current transformer
CN112363964B (en) MBUS host circuit with high reliability
CN110186524B (en) Fluid ultrasonic metering system and method
CN104750093A (en) Labview based RS485 bus structure DCS system I/O slave station testing system
CN221042892U (en) Digital bus communication equipment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant