CN109614358A - A kind of implementation method of PCB signal control circuit - Google Patents

A kind of implementation method of PCB signal control circuit Download PDF

Info

Publication number
CN109614358A
CN109614358A CN201811600181.6A CN201811600181A CN109614358A CN 109614358 A CN109614358 A CN 109614358A CN 201811600181 A CN201811600181 A CN 201811600181A CN 109614358 A CN109614358 A CN 109614358A
Authority
CN
China
Prior art keywords
mcu
controller
master controller
control circuit
signal 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.)
Pending
Application number
CN201811600181.6A
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.)
SUZHOU YIMEIXINSI NEW ENERGY TECHNOLOGY Co Ltd
Original Assignee
SUZHOU YIMEIXINSI NEW ENERGY 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 SUZHOU YIMEIXINSI NEW ENERGY TECHNOLOGY Co Ltd filed Critical SUZHOU YIMEIXINSI NEW ENERGY TECHNOLOGY Co Ltd
Priority to CN201811600181.6A priority Critical patent/CN109614358A/en
Publication of CN109614358A publication Critical patent/CN109614358A/en
Pending legal-status Critical Current

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/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • 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/40Bus structure
    • G06F13/4063Device-to-bus coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Systems (AREA)

Abstract

The present invention relates to a kind of implementation method of PCB signal control circuit, signal control circuit includes MCU master controller, isolation element, MCU from controller and MCU from the external interface of controller;MCU master controller and each MCU are respectively provided with 1 transmission channel and 1 receiving channel from controller;MCU master controller is issued broadcast singal by isolation element, and MCU passes through isolation element after being respectively received broadcast singal from controller and data are successively sent to MCU master controller;MCU master controller and MCU are transmitted from controller using UART asynchronous communication;PCB signal control circuit of the present invention is respectively provided with 1 optocoupler in MCU master controller and each MCU from the transmitting and receiving channel between controller, transmits without using data line, reduces production cost;1 pair of 1 transmitting and the receiving channel flexible cord connection mode for abandoning standard, realize 1 pair of multi-channel mode on pcb board.

Description

A kind of implementation method of PCB signal control circuit
Technical field
The present invention relates to a kind of signal control circuit, the realization side of the asynchronous communication control circuit of especially a kind of pcb board Method.
Background technique
The Principle of Communication of SPI (Serial Peripheral interface) Serial Peripheral Interface (SPI) is very simple, it is with principal and subordinate Mode works, and this mode usually has a main equipment and one or more from equipment, needs at least 4 lines and all bases Shared in the equipment of SPI, they are SDI (SerialData In) serial date transfer, SDO (SerialData Out) string The output of row data, SCLK (Serial Clock) clock signal are generated by main equipment, and CS (Chip Select) is enabled from equipment Signal is controlled by main equipment;The production cost of product can be improved using data line;It is logical that it is often used 1 pair 1 of standard currently on the market Road, number of channels are limited;Some is in same transmitting and receiving channel and sets two optocouplers, increases cost;Thus we The implementation method for having developed a kind of PCB signal control circuit passes through UART (Universal Asynchronous Receiver/ Transmitter) universal asynchronous receiving-transmitting transmitter communicates, and transmitting and receive capabilities are integrated on pcb board, reduces and is produced into This, realizes the communication channel on pcb board more than 1 pair.
Summary of the invention
A kind of realization side of PCB signal control circuit is provided the invention aims to overcome the deficiencies in the prior art Method.
In order to achieve the above objectives, the technical solution adopted by the present invention is that: a kind of implementation method of PCB signal control circuit, It is characterized by comprising following steps,
Step 1: MCU master controller and each MCU on pcb board are from the transmitting and receiving channel difference between controller It is directly connected to by single isolation element;
Step 2: MCU master controller issues broadcast singal;
Step 3: MCU receives the broadcast singal that MCU master controller issues from controller one, and by collected signal number It is issued according to 1;
Step 4: MCU master controller, which receives signal data 1, to be terminated, and step 5 is gone to;
Step 5: MCU receives the broadcast singal that MCU master controller issues from controller two, and by collected signal number It is issued according to 2;
Step 6: MCU master controller, which receives signal data 2, to be terminated, and step 7 is gone to;
Step 7: MCU receives the broadcast singal that MCU master controller issues from controller three, and by collected signal number It is issued according to 3;
Step 8: MCU master controller, which receives signal data 3, to be terminated.
Preferably, MCU described in step 1 is equipped with external interface from controller from controller at least two, each MCU, MCU acquires signal by external interface from controller;The isolation element is optocoupler.
Preferably, MCU master controller described in step 2 passes through UART format receiving and transmitting signal, MCU master controller acquisition letter Number time be TC, TCUnit be millisecond.
Preferably, Step 3: MCU in step 5 and step 7 is from controller one, MCU from controller two and MCU from control Device three processed is same or different, and the transmission time slot of signal is respectively T1, T2 and T3.
Preferably, Step 4: time slot is T0 in step 6 and step 8.
Preferably, the time sequencing of signal transmission is TC, T1, T0, T2, T0, T3 and T0.
Preferably, TCLess than or equal to TC, the sum of T1, T0, T2, T0, T3 and T0 1/10.
Due to the application of the above technical scheme, compared with the prior art, the invention has the following advantages:
The implementation method of PCB signal control circuit of the present invention, the integrated circuit on PCB pass through UART asynchronous communication Mode is respectively provided with 1 optocoupler in MCU master controller and each MCU from the transmitting and receiving channel between controller, does not use The data line of SPI Serial Peripheral Interface (SPI) communication, reduces production cost, improves labor productivity;Abandon 1 pair of 1 hair of standard Flexible cord interface channel mode is penetrated and received, realizes 1 pair of multi-channel mode on pcb board.
Detailed description of the invention
Attached drawing 1 is the implementation method flow chart of PCB signal control circuit of the present invention;
Specific embodiment
Below in conjunction with the accompanying drawings and specific embodiment, the present invention is described in further details.
In attached drawing 1, a kind of PCB signal control circuit, including MCU master controller, isolation element, MCU are from controller and MCU From the external interface of controller, MCU master controller corresponds to several MCU from controller, i.e. MCU can be extended from controller and MCU from controller can with it is identical can be different, MCU master controller and MCU are from being respectively provided with a transmitting and 1 connects between controller Channel is received, external interface is connected to the outer member of pcb board, and the MCU passes through external interface of the MCU from controller from controller Collecting data information, MCU from controller may include MCU from controller one, MCU from controller two and MCU from controller three, MCU is respectively equipped with external interface one, external interface two and external from controller one, MCU from controller two and MCU from controller three Interface three;MCU master controller, MCU are respectively provided with 1 transmitting from controller three from controller two and MCU from controller one, MCU and lead to Road and 1 receiving channel.
The MCU master controller and MCU of UART asynchronous communication from 1 pair of multi transmission channel between controller according to the following steps into Row:
Step 1: MCU master controller and each MCU on pcb board are from the transmitting and receiving channel difference between controller It is directly connected to by single isolation element;The MCU connects from controller equipped with outside from controller at least two, each MCU Mouthful, MCU acquires signal by external interface from controller;The isolation element is optocoupler;
Step 2: MCU master controller issues broadcast singal;The MCU master controller passes through UART format receiving and transmitting signal, The time that MCU master controller acquires signal is TC, the unit of TC is millisecond;
Step 3: MCU receives the broadcast singal that MCU master controller issues from controller one, and by collected signal number It is issued according to 1;The transmission time slot of signal data is T1;
Step 4: MCU master controller, which receives signal data 1, to be terminated;Time slot is T0;
Step 5: MCU receives the broadcast singal that MCU master controller issues from controller two, and by collected signal number It is issued according to 2;The transmission time slot of signal data is T2;
Step 6: MCU master controller, which receives signal data 2, to be terminated;Time slot is T0;
Step 7: MCU receives the broadcast singal that MCU master controller issues from controller three, and by collected signal number It is issued according to 3;The transmission time slot of signal data is T3;
Step 8: MCU master controller, which receives signal data 3, to be terminated;Time slot is T0.
The time sequencing of signal transmission is TC, T1, T0, T2, T0, T3 and T0;TC is less than or equal to TC, T1, T0, T2, T0, T3 With the 1/10 of the sum of T0;When total time-consuming is 1s, the time of data acquisition is less than or equal to 100ms.
The rest may be inferred, has several MCU from controller, the MCU is from controller with regard to several groups of data informations of serial transmission.
The above is only specific application examples of the invention, are not limited in any way to protection scope of the present invention.All uses Equivalent transformation or equivalent replacement and the technical solution formed, all fall within rights protection scope of the present invention.

Claims (7)

1. a kind of implementation method of PCB signal control circuit, it is characterised in that: include the following steps,
Step 1: MCU master controller and each MCU on pcb board between controller transmitting and receiving channel pass through respectively Single isolation element is directly connected to;
Step 2: MCU master controller issues broadcast singal;
Step 3: MCU receives the broadcast singal that MCU master controller issues from controller one, and collected signal data 1 is sent out Out;
Step 4: MCU master controller, which receives signal data 1, to be terminated, and step 5 is gone to;
Step 5: MCU receives the broadcast singal that MCU master controller issues from controller two, and collected signal data 2 is sent out Out;
Step 6: MCU master controller, which receives signal data 2, to be terminated, and step 7 is gone to;
Step 7: MCU receives the broadcast singal that MCU master controller issues from controller three, and collected signal data 3 is sent out Out;
Step 8: MCU master controller, which receives signal data 3, to be terminated.
2. the implementation method of PCB signal control circuit according to claim 1, it is characterised in that: MCU described in step 1 from Controller at least two, each MCU are equipped with external interface from controller, and MCU acquires signal by external interface from controller; The isolation element is optocoupler.
3. the implementation method of PCB signal control circuit according to claim 1, it is characterised in that: MCU master described in step 2 For controller by UART format receiving and transmitting signal, the time that MCU master controller acquires signal is TC, TCUnit be millisecond.
4. the implementation method of PCB signal control circuit according to claim 1, it is characterised in that: Step 3: step 5 and step MCU in rapid seven is same or different from controller two and MCU from controller three from controller one, MCU, and when the transmission of signal Gap is respectively T1, T2 and T3.
5. the implementation method of PCB signal control circuit according to claim 1, it is characterised in that: Step 4: step 6 and step Time slot is T0 in rapid eight.
6. the implementation method of PCB signal control circuit according to claim 1, it is characterised in that: the time of signal transmission is suitable Sequence is TC, T1, T0, T2, T0, T3 and T0.
7. the implementation method of PCB signal control circuit according to claim 6, it is characterised in that: TCLess than or equal to TC、T1、 The 1/10 of the sum of T0, T2, T0, T3 and T0.
CN201811600181.6A 2018-12-26 2018-12-26 A kind of implementation method of PCB signal control circuit Pending CN109614358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811600181.6A CN109614358A (en) 2018-12-26 2018-12-26 A kind of implementation method of PCB signal control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811600181.6A CN109614358A (en) 2018-12-26 2018-12-26 A kind of implementation method of PCB signal control circuit

Publications (1)

Publication Number Publication Date
CN109614358A true CN109614358A (en) 2019-04-12

Family

ID=66011488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811600181.6A Pending CN109614358A (en) 2018-12-26 2018-12-26 A kind of implementation method of PCB signal control circuit

Country Status (1)

Country Link
CN (1) CN109614358A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099660A1 (en) * 2010-10-20 2012-04-26 Lg Electronics Inc. Receiving system and method for processing digital broadcast signal in the receiving system
CN103425611A (en) * 2013-05-20 2013-12-04 万高(杭州)科技有限公司 Serial communication method for field of metering
CN105871672A (en) * 2016-03-22 2016-08-17 佛山市顺德区美的洗涤电器制造有限公司 One-host multi-slave communication system and data transmission method thereof
CN106453383A (en) * 2016-11-07 2017-02-22 深圳拓邦股份有限公司 UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
CN108647180A (en) * 2018-05-28 2018-10-12 北京比特大陆科技有限公司 A kind of arithmetic system and corresponding electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099660A1 (en) * 2010-10-20 2012-04-26 Lg Electronics Inc. Receiving system and method for processing digital broadcast signal in the receiving system
CN103425611A (en) * 2013-05-20 2013-12-04 万高(杭州)科技有限公司 Serial communication method for field of metering
CN105871672A (en) * 2016-03-22 2016-08-17 佛山市顺德区美的洗涤电器制造有限公司 One-host multi-slave communication system and data transmission method thereof
CN106453383A (en) * 2016-11-07 2017-02-22 深圳拓邦股份有限公司 UART (universal asynchronous receiver/transmitter)-based master-slave multi-processor communication system and method
CN108647180A (en) * 2018-05-28 2018-10-12 北京比特大陆科技有限公司 A kind of arithmetic system and corresponding electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
辛惠娟等: "基于UART的多机通信***的设计", 《航空维修与工程》 *

Similar Documents

Publication Publication Date Title
CN104199796B (en) IIC communication means and the embedded system for realizing IIC communications
CN104317765B (en) A kind of one-to-many communication system and implementation method based on serial communication
CN107612612B (en) Satellite measurement and control communication system
CN207718364U (en) A kind of multichannel RS-422 serial ports expansion interfaces based on FPGA
CN101399791A (en) Method for transferring data
EP1764704A3 (en) Information processing system, data transfer method, and computer product
CN105099844B (en) Media releasing method, media data acquisition methods and media issuing system
CN107015507A (en) A kind of central controller integrates extension system
CN201601798U (en) High-speed cable data-voice synchronous transmission device capable of flexibly configuring service bandwidths
CN109614358A (en) A kind of implementation method of PCB signal control circuit
CN106685782A (en) Profibus active terminal resistance device with DP bus data acquisition function
CN209086744U (en) A kind of control circuit of signal control
CN211908853U (en) Communication system of production equipment
EP2192723A3 (en) Optical burst transmission/reception control system, host station and slave station apparatus to be used therein, and optical burst transmission/reception control method
CN216357332U (en) Use wireless two-way U section microphone automatic pairing system that realizes of BLE
CN106338920A (en) Plug-in driving system for intelligent home
CN105307109A (en) USB (Universal Serial Bus) wireless connector, wireless connection system and USB wireless communication method
CN110069430A (en) A kind of data collection system and adaptive transmission method of daisy chain structure
CN102111297B (en) Method, system, device and equipment for controlling serial device
CN108332831B (en) Data fusion method for multi-channel weighing system
CN107911288A (en) Train Communication Adapter and Train Control management system
CN108668091A (en) Signal switching apparatus, whistle control system and signal control method
CN111600892A (en) Distributed data acquisition system and method
CN214704372U (en) Acquisition circuit of communication is taken to multichannel small signal
CN205792596U (en) A kind of high definition information having network management function issues optical transmitter and receiver

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190412