CN103176942A - Expandable multi-microprocessor synchronous control operation method - Google Patents

Expandable multi-microprocessor synchronous control operation method Download PDF

Info

Publication number
CN103176942A
CN103176942A CN2011104286697A CN201110428669A CN103176942A CN 103176942 A CN103176942 A CN 103176942A CN 2011104286697 A CN2011104286697 A CN 2011104286697A CN 201110428669 A CN201110428669 A CN 201110428669A CN 103176942 A CN103176942 A CN 103176942A
Authority
CN
China
Prior art keywords
chip microcomputer
microprocessor
control operation
instruction
terminal device
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
CN2011104286697A
Other languages
Chinese (zh)
Other versions
CN103176942B (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.)
709th Research Institute of CSIC
Original Assignee
709th Research Institute of CSIC
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 709th Research Institute of CSIC filed Critical 709th Research Institute of CSIC
Priority to CN201110428669.7A priority Critical patent/CN103176942B/en
Priority claimed from CN201110428669.7A external-priority patent/CN103176942B/en
Publication of CN103176942A publication Critical patent/CN103176942A/en
Application granted granted Critical
Publication of CN103176942B publication Critical patent/CN103176942B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Control By Computers (AREA)

Abstract

The invention discloses an expandable multi-microprocessor synchronous control operation method. The method mainly refers to a method for arbitrarily expanding the number of microprocessors based on a serial interface parallel control operation framework and different microprocessors synchronously controlling respective input/output (IO). Through RS232 serial interfaces or RS422 serial interfaces, the number of the microprocessors based on the operation framework can be determined by a user according to the IO total number of actual demand and IO number provided by each microprocessor. In theory, the total quantity is unlimited and can be infinitely expanded. Different microprocessors synchronously control respective IO through a mode of combining a terminal device instruction and a local clock, so that different microprocessors are enabled to synchronously send instructions to control a state of each IO.

Description

A kind of multimicroprocessor synchro control operation method of expanding
Technical field
The present invention relates to multimicroprocessor synchro control running technology field, particularly based on the expansion technique of microcontroller serial port.
Background technology
Usually simulating signal indication product is that some are comprised of signal lamp, hummer, relay etc., usually as the accessory constituent of certain equipment, be used to refer to current device running status, carry out sound and light alarm or control the functions such as output level.Each device is controlled by the IO signal of a special use, the signal of indicating when needs is many, during state complex, connecting line will be very many, when simulation shows that massaging device is distant to main frame, and a large amount of signal designation lines, easily decay of signal long-distance transmission, easily disturbed by other signal, be unfavorable for very much Systems balanth, be unfavorable for the application under strong electromagnetic interference environment.The control of main frame to IO class external unit in addition adopts apolegamy to realize based on the universal I/O module of pci bus usually.This scheme hardware cost is high, the software configuration is relatively complicated.Along with the fast development of infotech, all kinds of device requirements take single-chip microcomputer as primary processor are also more and more.Serial line interface is due to its standardization, interface is simple, adaptable, the reliability high becomes a large amount of electronic products universal data interface.This type interface is convenient to the communication of computer peripheral equipment and main frame very much.Because line between serial line interface and periphery is minimum, thus very economical, be particularly suitable for long distance communication.Single-chip microcomputer is a kind of microprocessor commonly used, ripe of supporting serial communication, and it relies on powerful programmability and high performance-price ratio, has become a kind of microprocessor of widespread use.Adopt cheap single-chip microcomputer, grow Distance Transmission by its serial line interface, expand a large amount of IO interfaces by parallel connection and control numerous IO class peripheral hardwares such as pilot lamp, the software that this mode is controlled is realized relatively simply, hardware cost is low, and reliability is high.
Usually more existing analog display devices, once can only show a small amount of signal, and the signal condition of simulation is more single, does not possess the function of customizable communication protocol, more do not possess a large amount of status signal indications synchronously or the function of Alternation Display.
In the application scenario of many rugged surroundings such as high temperature, high humidity, vibratory impulse, electromagnetic interference (EMI) etc., it is very important that the reliability of computing machine and peripheral hardware thereof just seems.Therefore, analog display unit need adopt certain congenital reinforcement measure, satisfies under rugged surroundings the adaptability requirement to every environment such as high temperature, high humidity, vibratory impulse, electromagnetic interference (EMI).
The present invention is directed to above-mentioned situation, proposed the solution of novelty, developed the device of multimicroprocessor synchronous operation.
Summary of the invention
Purpose of the present invention proposes a kind of extendible multi-microprocessor synchronous operation method of controlling based on serial line interface.Method of the present invention is to realize far distance controlled, but and be arbitrary extension microprocessor number based on synchro control between serial line interface parallel control operation framework and different microprocessor separately IO realize the IO peripheral hardware that Long-distance Control is a large amount of.
A kind of multimicroprocessor synchro control operation method of expanding: but described arbitrary extension microprocessor number based on serial line interface parallel control operation framework refer to microprocessor by auxiliary circuit with serial line interface and link up, receive simultaneously instruction, the number of microprocessor is jointly to be determined by user the IO total quantity that need to control and the IO quantity that each single-chip microcomputer can provide self, and the IO demand more user can freely expand according to actual conditions.
Between described different microprocessor synchro control separately IO be the mode that combines by terminal device instruction and local clock, can make different microprocessors send simultaneously identical instruction and control the state of IO separately.Specific implementation is to send at regular intervals heartbeat message by terminal device, each single-chip microcomputer is received the timer of the single-chip microcomputer that will again reset after its instruction, and then each single-chip microcomputer is controlled the state of each synchronous IO of this single-chip microcomputer needs according to the clock of self again.The local clock error of each single-chip microcomputer accumulative total is just passed through the reset signal realization elimination of the timed sending of terminal device like this, and externally the indicator signals such as the pilot lamp of show state or hummer feel it is Complete Synchronization when observing.
Use the method, developed a kind of analog display unit that can a large amount of IO class of Long-distance Control peripheral hardware.
Described analog display unit is comprised of a RS232 or RS422 interface, level transferring chip, extendible auxiliary circuit, a plurality of single-chip microcomputers, driving circuit and a large amount of pilot lamp in parallel, hummer, relay etc.
Analog display unit provides one tunnel serial external interface to be connected with computing machine that perhaps other possesses the terminal device of identical serial ports) serial ports connects, and realized the IO class peripheral hardware that far distance controlled is a large amount of.Analog display unit receives the command signal of sending from terminal device, after this signal is carried out level conversion, strengthens the driving force of this signal by auxiliary circuit, and instruction is distributed to each single-chip microcomputer simultaneously.
After single-chip microcomputer was received instruction, at first each single-chip microcomputer judged that whether this instruction is the instruction to oneself, carries out in this way instruction, controls the state of corresponding I/O.Then IO controls the state of pilot lamp etc. by driving circuit.
This device all circuit parts except pilot lamp and hummer all are installed in the metal shell of sealing.Satisfy under rugged surroundings all-environment adaptability requirements such as high temperature, high humidity, vibratory impulse, electromagnetic interference (EMI).
This device is supported the customization communications protocol.The user can revise according to the needs of self content, form etc. of agreement.Realized that same program has difference in functionality.All Single Chip Microcomputer (SCM) program are identical, and each single-chip microcomputer determines according to the numbering of self IO whether received instruction is carried out.Realized that numerous single-chip microcomputers is by the disposable program burn writing of completing of online programming software.Using method and the required time of a single-chip microcomputer of programming and a plurality of single-chip microcomputers are identical.
A kind of advantage of expanding multimicroprocessor synchro control operation method of the present invention is by adopting the method for multimicroprocessor parallel control operation, the terminal device that can allow to possess RS232 or RS422 serial line interface is grown distance, the synchro control of complex state to a large amount of IO class external units.This invention can under rugged surroundings, require the various states of quantity of parameters is carried out the occasion performance key effect of real-time sound and light alarm and control.
Description of drawings
Fig. 1 is a plurality of single-chip microcomputers synchronous working Organization Charts in parallel.
Fig. 2 is serial ports level converting section theory diagram.
Fig. 3 is the driving circuit section theory diagram.
Fig. 4 is analog display unit internal module splicing design structure diagram.
Fig. 5 is driver module electricity theory diagram.
Fig. 6 is main control module electricity theory diagram.
Fig. 7 is the Single Chip Microcomputer (SCM) program process flow diagram.
Embodiment
Hardware structure as shown in Figure 1.Terminal device sends data to analog display unit by serial ports.Whether analog display unit is distributed to each single-chip microcomputer with after data signals of serial conversion by auxiliary circuit, and single-chip microcomputer is by judging whether this instruction is the instruction of oneself, determine corresponding IO level state to be set response instruction.Driving circuit is according to the corresponding LED of IO state-driven of single-chip microcomputer, hummer, relay etc.
The level converting section circuit theory diagrams as shown in Figure 2.This circuit is supported RS232 form or RS422 form.By being the Transistor-Transistor Logic level signal after level conversion, select a kind of communication modes by the method for cross-over connection.
Auxiliary circuit partly adopts signal driver to strengthen chip SN74LVC8T245 to the input/output signal increase driving force of main control computer output.As needs, more single-chip microcomputer is controlled, can be carried out by cascade.
It is the state that at first reads four IO pins after powering up by single-chip microcomputer that the numbering of single-chip microcomputer realizes, charges in the memory block of single-chip microcomputer inside.Pin status is opened definite by the plucking number sign switch of outside.After receiving external instruction, single-chip microcomputer is the decoding instruction bag at first, and whether detect this instruction bag is the instruction of oneself, then determines whether to carry out.
Because the IO driving force of single-chip microcomputer is limited, can't directly drive when the devices such as some powerful pilot lamp of driving, relay, therefore increased by a stage drive circuit, schematic diagram is as shown in Figure 3.The pilot lamp drive part adopts the ULN2003A chip, and input pin needs the working current of 1.3MA under 5V after tested, will be lower under 3.3V, and the output of ULN2003A drives can reach 150MA, and the drive current that needs when each lamp is bright is 20MA.In upper figure, driver module is a printed board, and its power is 13W approximately.The heat conduction processing that drives chip is undertaken by rear cabinet.Lamp plate adopts connector to the connection of driver module.
In order to control cost, consider the situation that the single chip part circuit is identical, adopt little printed board design when design.As shown in Figure 4.8 identical driver modules are placed on around main control module, the method can dynamic expansion the IO quantity of design output.
Driver module is mainly to be correct serial ports instruction transformation IO indication output, when receiving wrong data check code, is left intact, and when receiving correct data, address date is converted to corresponding IO state.Whether the corresponding coding of parse addresses is the data that this plate is processed, and as no, does not process, and in this way, gives corresponding pin the corresponding State-output of data.For the integrated alarm pilot lamp, it shows that indicating status has 4 kinds, is respectively Chang Liang, quick flashing (3 times/second), sudden strain of a muscle (1 time/2 seconds) slowly, goes out, and need to synchronize with hummer, so need two bit data, is used for representing four kinds of states.Figure below is that level transferring chip is used when being debugging single board.The theory diagram of driver module as shown in Figure 5.
Main control module is mainly after the data receiver that sends from the serial ports of terminal device, judge through verification whether code value is correct, as correctly, rigidly connects receipts and processing instruction.When the check code mistake, notify upper terminal device to resend this bag.Its theory diagram as shown in Figure 6.
The software of all single-chip microcomputers is identical, judges whether to carry out according to command content and self No. ID and sends instruction here.Communication protocol can be according to the user's request real time modifying.It is that terminal device sends a heartbeat message at regular intervals that IO between different single-chip microcomputers controls synchronous implementation, each single-chip microcomputer is received the timer of the single-chip microcomputer that will again reset after its instruction, and then each single-chip microcomputer will be controlled the state of each synchronous IO of the needs of this single-chip microcomputer according to the clock of self.Like this error of each single-chip microcomputer accumulative total just the reset signal of the timed sending by terminal device carry out synchronously, the indicator signals such as the pilot lamp of external show state or hummer feel it is identical when the people observes.Its program flow diagram as shown in Figure 7.

Claims (3)

1. can expand multimicroprocessor synchro control operation method for one kind, it is characterized in that: but arbitrary extension microprocessor number based on the IO separately of synchro control between serial line interface parallel control operation framework and different microprocessor.
2. a kind of multimicroprocessor synchro control operation method of expanding according to claim 1, it is characterized in that: but described arbitrary extension microprocessor number based on serial line interface parallel control operation framework refer to microprocessor by auxiliary circuit with serial line interface and link up, receive simultaneously instruction, the number of microprocessor is jointly to be determined by user the IO total quantity that need to control and the IO quantity that each single-chip microcomputer can provide self, and the IO demand more user can freely expand according to actual conditions.
3. a kind of multimicroprocessor synchro control operation method of expanding according to claim 1, it is characterized in that: between described different microprocessors synchro control separately IO be the mode that combines by terminal device instruction and local clock, can make different microprocessors send simultaneously identical instruction and control the state of IO separately, specific implementation is to send at regular intervals heartbeat message by terminal device, each single-chip microcomputer is received the timer of the single-chip microcomputer that will again reset after its instruction, then each single-chip microcomputer is controlled the state of each synchronous IO of this single-chip microcomputer needs according to the clock of self again, the local clock error of each single-chip microcomputer accumulative total is just passed through the reset signal realization elimination of the timed sending of terminal device like this, externally the indicator signals such as the pilot lamp of show state or hummer sensation when observing is Complete Synchronization.
CN201110428669.7A 2011-12-20 A kind of expansible multimicroprocessor Synchronization Control operation method Expired - Fee Related CN103176942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110428669.7A CN103176942B (en) 2011-12-20 A kind of expansible multimicroprocessor Synchronization Control operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110428669.7A CN103176942B (en) 2011-12-20 A kind of expansible multimicroprocessor Synchronization Control operation method

Publications (2)

Publication Number Publication Date
CN103176942A true CN103176942A (en) 2013-06-26
CN103176942B CN103176942B (en) 2016-12-14

Family

ID=

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107300876A (en) * 2017-07-25 2017-10-27 郑州云海信息技术有限公司 A kind of method, management module and the device of LED multi-path management

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040123018A1 (en) * 2002-09-30 2004-06-24 Martin Miller Method and apparatus for analyzing serial data streams
CN101026528A (en) * 2007-04-05 2007-08-29 中兴通讯股份有限公司 Synchronous serial interface device
CN200987228Y (en) * 2006-06-09 2007-12-05 浙江大学 Intelligent lighting system
CN101488016A (en) * 2009-02-13 2009-07-22 国网电力科学研究院 PLC module-grade time-setting method based on GPS

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040123018A1 (en) * 2002-09-30 2004-06-24 Martin Miller Method and apparatus for analyzing serial data streams
CN200987228Y (en) * 2006-06-09 2007-12-05 浙江大学 Intelligent lighting system
CN101026528A (en) * 2007-04-05 2007-08-29 中兴通讯股份有限公司 Synchronous serial interface device
CN101488016A (en) * 2009-02-13 2009-07-22 国网电力科学研究院 PLC module-grade time-setting method based on GPS

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107300876A (en) * 2017-07-25 2017-10-27 郑州云海信息技术有限公司 A kind of method, management module and the device of LED multi-path management

Similar Documents

Publication Publication Date Title
CN101876928B (en) Synchronization method and device of double 2-vote-2 system
CN102508533B (en) Reset control device and method
CN104966538B (en) A kind of nuclear power plant instrument control system based on FPGA technology
CN101876825B (en) Human-computer interface device of small PLC
CN102279827A (en) Multifunctional communication transit box
CN104156333A (en) FPGA-based UART multi-interface extension system and method
CN102279826A (en) Serial port multiplexing device
CN102445981B (en) Data transmission system and data transmission method
CN103838670B (en) Simulation testing device based on EPOS and system
CN103176942A (en) Expandable multi-microprocessor synchronous control operation method
CN114745257B (en) Data frame debugging method, device, equipment and storage medium
CN109993951B (en) Doorplate system and control method and device thereof
CN103176942B (en) A kind of expansible multimicroprocessor Synchronization Control operation method
CN208271171U (en) A kind of server debugging apparatus and server
CN204116881U (en) There is the supervisory system of easily extensible I/O interface
CN204089864U (en) A kind of gateway for connecting MVB and CAN
CN204480512U (en) A kind of Armored Vehicle Driving person's terminal emulator
CN105718231A (en) KVM (Keyboard Video Mouse) redundancy management system and management method of blade server
CN102608994A (en) Running state simulation circuit for transformer cooling device
CN202486768U (en) Automatic computer failure checkout equipment
CN101621549B (en) LonWorks node multi-I/O device based on nerve cell chip
CN109739695B (en) ARM and FPGA dissimilar redundancy communication method in unmanned aerial vehicle controller
CN218768136U (en) Device for switching I2C bus by using programmable logic device
CN103019995A (en) Interface board card based on 1553B bus
CN203191971U (en) Port board card based on 1553B bus and control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
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: 20161214

Termination date: 20191220