[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101067804A - A high-speed configurable extended SPI bus and working method thereof - Google Patents

A high-speed configurable extended SPI bus and working method thereof Download PDF

Info

Publication number
CN101067804A
CN101067804A CNA2007100157277A CN200710015727A CN101067804A CN 101067804 A CN101067804 A CN 101067804A CN A2007100157277 A CNA2007100157277 A CN A2007100157277A CN 200710015727 A CN200710015727 A CN 200710015727A CN 101067804 A CN101067804 A CN 101067804A
Authority
CN
China
Prior art keywords
data
message
module
configuration
bus
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
CNA2007100157277A
Other languages
Chinese (zh)
Other versions
CN101067804B (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.)
Shandong University
Original Assignee
Shandong University
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 Shandong University filed Critical Shandong University
Priority to CN2007100157277A priority Critical patent/CN101067804B/en
Publication of CN101067804A publication Critical patent/CN101067804A/en
Application granted granted Critical
Publication of CN101067804B publication Critical patent/CN101067804B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Small-Scale Networks (AREA)

Abstract

This invention discloses a high speed SPI bus and its working method including at least one master module, a slave module, a SCLK clock output signal line in SPI, MOSI data line, MISO data line, SS gating signal line and configured signal line SCFG, in which, a variable bus T/R device FPGA/CPLD set in the master module, and a bus R/T device FPGA/CPLD in the slave module compose a bus configured transceiver, the FPGA/CPLD of the master module is connected with the FPGA/CPLD of one of the slave modules by serial-cascading configured signal line SCFG, and said FPGA/CPLD of the slave module are serial to those of other slave modules by the SCFG, at the same time, the SPI of the master module is connected with other slave modules via STP and carries out difference process to the SPI bus signals.

Description

A kind of high-speed configurable extended SPI bus and method of work thereof
Technical field
Patent of the present invention relates to a kind of industrial control technology, relates in particular to a kind of high-speed configurable extended SPI bus and method of work thereof.
Background technology
In industry automatic control, Automatic Production System need carry out the collection and the operation of a large amount of digital signals and simulating signal.Fieldbus can be realized the distribution control of signal as a kind of communication means, and it is used more and more widely.The existing most traffic rate of bussing technique is not high, and flexible relatively poor, is not easy to realize the synchro control of each module on the bus.
The spi bus technology is the serial interface technologies of transmitting between a kind of IC of being used for, and can realize the full duplex synchronous transmission of data.Its physics realization is shown in Fig. 4-1.Wherein SCLK (Serial Clock) is that the clock output mos I (MasterOutput, Slave Input) of primary module exports to clock cable from module for primary module.MISO (Master Input, Slave Output) is a data signal line of giving primary module from module.SS (Slave Select) gives gating signal line from module for primary module.SPI only is fit to the short distance high-speed communication between chip and the chip, and the transfer rate of bus can reach more than tens Mbps, but but can't satisfy long Distance Transmission and many expanded configuration needs from module of industry spot.
Summary of the invention
Purpose of the present invention is exactly not high in order to solve present fieldbus structure traffic rate, flexible poor, be not easy to realize the problems such as synchro control of each module on the bus, provide a kind of have rational in infrastructure, easy to use, the research and development of improvement and communication protocol on the spi bus technical foundation, the long Distance Transmission of high speed between principal and subordinate's module and the synchro control of submodule have been realized, can carry out ONLINE RECOGNITION and configuration to the expansion and the change of any submodule, and coordinate the high-speed configurable extended SPI bus and the collocation method thereof of advantages such as each module synchronization action.
For achieving the above object, the present invention adopts following technical scheme:
A kind of high-speed configurable extended SPI bus, it has at least one primary module and at least one from module, and the SCLK clock output signal line in the spi bus, MOSI data line, MISO data line, SS gating signal line and configuration signal line SCFG, be provided with variable length bus transmission/receiver FPGA/CPLD in the described primary module, be provided with bus reception/transmitter FPGA/CPLD in module, they form the bus configuration transceiver jointly; Primary module variable length bus transmission/receiver FPGA/CPLD is connected with one of them bus reception/transmitter FPGA/CPLD from module by serially concatenated configuration signal line SCFG, should then connect mutually from module bus reception/transmitter FPGA/CPLD with other from module bus receptions/transmitter FPGA/CPLD by configuration signal line SCFG, the variable-length of carrying out data message by communication protocol and FPGA (Field Programmable Gate Array) design is transmitted and from the flexible Configuration Online of module; The spi bus of primary module also is connected from module with other by Shielded Twisted Pair simultaneously, and the spi bus signal is carried out difference processing, and a master of the long distance of high speed of realization packet is many from communication.
Described variable length bus transmission/receiver FPGA/CPLD comprises message length register, transmitting counter, transmitting counter receives and sends enable signal and counting clock signal, message length register, transmitting counter output termination comparer, comparator output terminal connects SCLK clock output signal line, counting clock signal also divides two-way, one the tunnel connects SCLK clock output signal line, and another road connects the serial transmitter input end, its output termination MOSI data line.
Described bus reception/transmitter FPGA/CPLD comprises control information receiver and data information receiver; Mainboard and each daughter board respectively have at least one control information receiver and a data information receiver.
A kind of method of work of high-speed configurable extended SPI bus, its method be,
1) system's power-on self-test;
2) primary module is to automatic identification and configuration from module, to realize main many transmission from pattern, process is: the configuration signal high level that primary module sends by communication protocol make be attached thereto first put height from the CFG_EN signal of module receiver, should prepare from module, receive primary module configuration data bag and return oneself information; First after the block configuration end, forbids self configuration module work, simultaneously the CFG_OE signal is put height, and this moment, next CFG_EN from module of series connection was put height with it, should be triggered from the modules configured operation, and triggering is gone down successively; When last no configuration information returned, configuration finished, thereby realized the software Configuration Online, with the data packet transmission that satisfies different length and the online expansion and the configuration of submodule;
3) enter normal manipulation mode; Bus address divides broadcast address and common address, if broadcast address, all submodules receive the primary module order synchronously; If common address, submodule receive only the packet with self matching addresses, when receiving, corresponding data is sent to primary module; Cooperate message protocol, realize position control, I/O control and other function that is provided with.
Described step 2) communication protocol comprises main to from communication message M2S with to main communication message S2M in; They are again respectively by configuration message: C message and data message: the D message is formed, by the most significant digit MSB sign of message.
Described master is that M2S C message format is from the configuration message C of communication message M2S extremely: be labeled as flag C/D, be command message, 0 bit data message if be labeled as 1; The message data length DL that closelys follow later of primary module address bit BA, the 3bits of 4bits; Data message DATA, its length is determined by data message length DL; Check bit VR;
From the configuration message C to main communication data message S2M is that S2M C message format is, daughter board associated description information DATA; Check bit VR;
The master is that M2S D message format is to the data message D from communication data message M2S, and flag C/D is command message if be labeled as 1, and 0 is data message; The message transfer address BS of 4bits; Submodule address MS in the plate of 4bits; The data control bit DC that comes into force; Data message position DATA, its length is determined by the DL in when configuration; Check bit VR;
From the data message D to main communication data message S2M is that S2M D message format is, flag C/D is command message if be labeled as 1, and 0 is data message; Data qualifier bit DC, 0 expression data are instant data, the synchrodata that latchs in the 1 expression buffer zone; Data message DATA, length is determined by the DL in when configuration; Check bit VR.
Described step 2) at primary module to from block configuration the time, behind the configuration signal high level, extract M2SC message BA from module monitors, BA press in the DL position, the information of DL position sends to primary module with S2M C message, the transmission of S2M C message is synchronous with the reception of M2S C message; Meanwhile extract relevant information configuration message transmission length among the M2S, write down self address; Submodule with the control of SCLK counting, realizes that by the control information receiver information extraction is to relevant register by counter in the layoutprocedure.
The position is controlled to be in the described step 3) normal manipulation mode, when primary module sends data M2S D message identification position DC is put 1, adopt common address to send, temporarily leave in the buffer zone after making each module receive data, put 1 broadcasting packet by DC then the data sync output that cushions in each submodule is realized each synchro control; And in synchronous output data, each submodule can latch the peripheral hardware sampled data synchronously, is read successively by primary module when sending order data for each submodule in the next cycle then;
If I/O is controlled to be the no synchronous requirement of each I/O point, can make M2S D message put 0, the data instant that reaches submodule is come into force and the instant data of the peripheral hardware of sampling reach primary module; If synchronous requirement is arranged, but the method for reference bit control function realizes synchronous output and sampling between each module.
In the described step 3), for common address, the control information receiver is with data dash receiver address at first; When the address receives,, this plate transmission output terminal is put high resistant forbid that data of this plate communication this time send to prevent many drivings of MISO data line if not judge this plate address; If receiver module address and DC position are continued in this plate address; After receiving the DC position data information receiver of module's address correspondence is opened the reception data; Data information receiver receives data and there is send buffer in it; After pending data finishes receiving, if the DC position be high, use then that the SS signal sends data on the bus from buffering, if low, wait broadcasting command and other plates send synchronously;
For broadcast address, the control information receiver is with data receiver address at first; If broadcast address, and the DC position is 0 o'clock, enables all module data message recipients and receives public broadcasting data; If it is 1 that DC receives the position, keep all data information receiver to forbid, after finishing, the pending data transmission utilize the SS signal that the data in all module send buffers are sent.
The present invention mainly comprises primary module, SS from module and SPI communication bus, SCFG, MOSI, MISO, SCLK signal wire formation has increased layout line on the basis of SPI (Serial Peripheral Interface) and with the signal differential processing, how a master of the long distance of high speed of realization packet is from communication.Realize the variable-length transmission of data message and the flexible Configuration Online of submodule by message protocol and the design of FPGA/CPLD FPGA (Field Programmable Gate Array).
The present invention is by increasing a SCFG serially concatenated layout line, and the system that makes has from the modules configured function.By difference processing, solved the anti-interference transmission problem of long distance of signal to bus signals.Its communication protocol adopts addressing mechanism and FPGA/CPLD programmable configuration information extraction logical design, has realized the ONLINE RECOGNITION configuration and the expansion of submodule.Communication protocol adopts synchronization mechanism to realize the synchronizing function logical design that respectively corresponding order sends the synchronous and FPGA/CPLD of data acquisition between module.Variable length bus transmission/receiver by communication protocol variable length collocation method and FPGA/CPLD, realized the variable length transmission of data message and the Configuration Online of data packet length, so realized one main more than from framework and from the flexible Configuration Online and the expansion of module.
The invention has the beneficial effects as follows:
A transmission speed height, transmission range is long
Improve by differencing, can realize the long Distance Transmission of high speed of signal spi bus.
B message data packet length configurable
By configuration, can realize transmission for the different message lengths of different submodules, can improve the flexibility of system greatly.
The Configuration Online of c submodule and functions of modules
By configuration, can realize the combination in any between the different submodules.Make the module expansion convenient, development and maintenance is simple.
The Configuration Online of d module number
By configuration, can realize the random increase and decrease of module.System flexibility is improved greatly.
The synchronous coordination of e intermodule
The synchronous coordination between each submodule be can realize, position control and other control field needs satisfied with synchronous requirement.
Transmission medium of the present invention adopts Shielded Twisted Pair, and the gordian technique of principal and subordinate's module realizes by advanced FPGA/CPLD technology, and is with low cost, reliable.
Description of drawings
Fig. 1 is traditional spi bus structural representation;
Fig. 2 is a bus physical implementation structure synoptic diagram;
Fig. 3 is a primary module bus transmitter structural representation;
Fig. 4 is a bus configuration line connection diagram;
Fig. 5 is a bus configuration information extraction functional schematic;
Fig. 6 is the proper communication structural representation;
Fig. 7 is the serial bus structure design drawing.
Wherein, 1, primary module, 2, from module, 3, spi bus, 4, serially concatenated layout line SCFG, 5, the message length register, 6, transmitting counter, 7, comparer, 8, serial transmitter, 9, serial received device.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
Content of the present invention mainly comprises physics realization and software protocol two parts.Bus can realize the transmission of at a high speed long distance by the transformation to the SPI Physical layer.And can realize respectively being affiliated on the bus the online software arrangements of module.Be implemented as follows.
Fig. 1 is existing spi bus structural drawing.
Among Fig. 2, the present invention carries out difference processing to suppress interference with signal, increases the reliability of transmission, and transmission range is increased.Increase a serially concatenated configuration signal, can realize, to realize main many transmission from pattern to automatic identification and configuration from module.Transceiver is realized with FPGA/CPLD, and the available software Configuration Online is to realize the data packet transmission of different length.
It has at least one primary module 1 and at least one from module 2, and the SCLK clock output signal line in the spi bus 3, MOSI data line, MISO data line, SS gating signal line, SCFG configuration signal line, be provided with variable length bus transmission/receiver FPGA/CPLD in the primary module 1, be provided with bus reception/transmitter FPGA/CPLD in module 2, they form the bus configuration device jointly; Primary module 1 variable length bus transmission/receiver FPGA/CPLD is connected with one of them bus reception/transmitter FPGA/CPLD from module 2 by serially concatenated layout line SCFG 4, should then connect mutually from module 2 bus reception/transmitter FPGA/CPLD with other from module 2 bus receptions/transmitter FPGA/CPLD by serially concatenated layout line SCFG 4, the variable-length of carrying out data message by communication protocol and FPGA (Field Programmable Gate Array) design is transmitted and from the flexible Configuration Online of module; The spi bus 3 of primary module also is connected from module with other by Shielded Twisted Pair simultaneously, and the spi bus signal is carried out difference processing, and a master of the long distance of high speed of realization packet is many from communication.
Among Fig. 3, variable length bus transmission/receiver FPGA/CPLD comprises message length register 5, transmitting counter 6, transmitting counter 6 receives and sends enable signal and counting clock signal, message length register 5, transmitting counter 6 output termination comparers 7, comparer 7 output termination SCLK clock output signal lines, counting clock signal also divides two-way, and one the tunnel connects SCLK clock output signal line, another road connects serial transmitter 8 input ends, its output termination MOSI data line.
Bus receiver comprises control information receiver 8 and data information receiver among the CPLD; Each daughter board has a control information receiver, and each submodule is to there being a data information receiver on the daughter board.
The communication data message divides Master to Slave (M2S) data message and Slave to Master (S2M) data message.Wherein each is made up of configuration message (C message) and data message (D message) again for M2S and S2M data message, by most significant digit (MSB) sign of message.
M2S C message format is defined as follows:
C/ D BA(4bits) DL(3bits) - DATA VR
1 BA3 BA2 BA1 BA0 DL2 DL1 DL0 - 1/0
MSB LSB
Being described below shown in the table of each data bit:
Title Figure place Describe
C/ D 1 The Command/Data flag, 1 is command message, 0 bit data message
BA 4 Board Address, 0~15
DL 4 Data length, the length of the message data of closelying follow later. 000:2bits 001:4bits 010:8bits 011:16bits 100:24bits 101:32bits 110:64bits 111:128bits
DATA DL Data message, length is determined by DL.Can pass to the relevant information of daughter board about mainboard.
VR 1 Check bit
S2M C message format is defined as follows:
- - - - DATA VR
1 1 1 1 1 1 1 1 - 1/0
MSB LSB
Being described below shown in the table of each data bit:
Title Figure place Describe
DATA DL The daughter board associated description information
VR
1 Check bit
M2S D message format is defined as follows:
C/ D BS(4bits) MS(4bits) DC DATA VR
1 BS3 BS2 BS1 BS0 MS2 MS1 MS0 1/0 1/0
MSB LSB
Each data bit is described below
Title Figure place Describe
C/ D 1 The Command/Data flag, 1 is command message, 0 bit data message
BS 4 Board Select, 0~15 this message transfer address of sign
MS 4 Module Select, the submodule address
DC 1 The data control bit that comes into force.If common address, 1 for to come into force the DATA data in this message in submodule, make the peripheral data information of submodule to the instant sampling of primary module synchronized transmission simultaneously.0 for temporarily to be kept at the DATA data in this message in the send buffer of submodule.Make the data of submodule in primary module synchronized transmission submodule transmission buffering simultaneously.If broadcast address, 1 is with the output of the data sync of all submodule send buffers, and makes each submodule synchronous acquisition peripheral data and be latched in and send in the buffer zone.0 comes into force for data in the M2S broadcast data packet are directly delivered to each submodule, and makes each submodule synchronous acquisition peripheral data and be latched in and send in the buffer zone.
DATA DL Data message, length is determined by the DL in when configuration.
VR 1 Check bit
S2M D message format is defined as follows:
C/D - - DC DATA VR
1 - - - - - - - 1/0 1/0
MSB LSB
Each data bit is described below
Title Figure place Describe
DC 1 Data type.0 expression data are instant data, the synchrodata that latchs in the 1 expression buffer zone.
DATA DL Data message, length is determined by the DL in when configuration.
VR 1 Check bit
Serially concatenated layout line SCFG is used for the triggering system configuration operation, and detailed process is as follows:
Among Fig. 4, the configuration signal high level that primary module 1 sends makes first to put height from module 2 inner CFG_EN signals, and first prepares from module 2, receives primary module 1 configuration data bag and returns oneself information.First after module 2 configuration end, forbid self configuration module work, simultaneously the CFG_OE signal are put height, and this moment, next CFG_EN from module 2 was put height, should be triggered from the configuration operation of module 2.Go down successively.When last no configuration information returns, think that configuration finishes.Change normal manipulation mode over to.
The layoutprocedure of individual module is:
Module monitors is extracted M2S C message BA behind the configuration signal high level, BA is pressed in the DL position, and the information of DL position sends to primary module with the S2MC message, and the transmission of S2M C message and M2S C message receive synchronously.Meanwhile extract relevant information configuration message transmission length among the M2S, write down self address.Submodule with the control of SCLK counting, realizes that by the control information receiver information extraction is to relevant register, as shown in Figure 5 by counter in the layoutprocedure.
Normal mode of operation is used the D message, and the address is divided into broadcast address and common address in the message.If the message address that receives is a broadcast address, all submodules receive primary module order or synchrodata synchronously.If common address, submodule receives only the packet with self matching addresses, when receiving corresponding data is sent to primary module, if message address and self address do not match, then self and being connected of MISO are put high resistant and prevent the MISO generations that drive more, as Fig. 6.
Cooperate the use of DC position in agreement M2S message and the S2M message, can realize position control, the I/O control function.
A. the position controls function for example
In the position control, the position command that needs to send to each comes into force synchronously and needs to obtain each synchrodata.But each might be assigned in the different daughter boards or the different submodules of identical daughter board in.Can when sending data, will use primary module the M2S D message DC of common address transfer to put 1 in such cases, temporarily leave in the buffer zone after making each module receive data, the broadcasting packet of putting the transmission of 1 broadcast address by DC is realized each synchro control with the data sync output that cushions in each submodule then.And and in synchronous output data, each submodule can latch peripheral data synchronously, read successively by primary module when sending order data for each submodule in the next cycle then.(referring to M2S D message structure.)
The b.I/O control function for example
Be used for I/O when control,, data instant come into force and the instant data of the peripheral hardware of sampling if the no synchronous requirement of each I/O point can make M2S D message put 0.If synchronous requirement is arranged, but the method for reference bit control function realizes synchronous output and sampling between each module.
Daughter board bus receiver of the present invention can be realized based on the serial received device in CPLD.Be divided into control information receiver and data information receiver.Each daughter board has a control information receiver, and each submodule is to there being a data information receiver on the daughter board.As follows with concrete receiving course design.
A. the general data bag receives
The control information receiver is with data dash receiver address at first.When the address receives,, this plate is sent output terminal put the reception that high resistant is forbidden this packet of this plate if not judge this plate address.If receiver module address and DC position are continued in this plate address.After receiving the DC position data information receiver of module's address correspondence is opened the reception data.Data information receiver receives data and there is send buffer in it.After pending data finishes receiving, if the DC position be high, use then that the SS signal sends data on the bus from buffering, if low, wait broadcasting command and other plates send synchronously.
B. broadcast data packet receives
The control information receiver is with data receiver address at first.If broadcast address, and the DC position is 0 o'clock, enables all module data message recipients and receives public broadcasting data.If it is 1 that DC receives the position, keep all data information receiver to forbid, after finishing, the pending data transmission utilize the SS signal that the data in all module send buffers are sent.
Primary module variable length bus transmitter can be realized the transmission of different length message.In the motherboard design, the message length of setting is stored in the message length register, counter will send the data bits counting, and count value and message length relatively come control data to send length, as shown in Figure 3.
The design of serial transmitter as shown in Figure 7, wherein the SS signal is as the reset signal and the enable signal of counter.SS arrival hour counter reset and begin the counting, counter inhibit during the SS signal ended.Control the channel selecting of multiway intersection switch by the count value of counter, the number that data send in the buffer zone is sent in step-by-step.Wherein, the SS signal is as the reset signal and the enable signal of counter.SS arrival hour counter reset and begin the counting, counter inhibit during the SS signal ended.Control the channel selecting of multiway intersection switch by the count value of counter, the number that data send in the buffer zone is sent in step-by-step.

Claims (9)

1, a kind of high-speed configurable extended SPI bus, it has at least one primary module and at least one from module, and the SCLK clock output signal line in the spi bus, MOSI data line, MISO data line, SS gating signal line and configuration signal line SCFG, it is characterized in that: be provided with variable length bus transmission/receiver device FPGA/CPLD in the described primary module, be provided with bus reception/transmitter FPGA/CPLD in module, they form the bus configuration transceiver jointly; Primary module variable length bus transmission/receiver FPGA/CPLD is connected with one of them bus reception/transmitter FPGA/CPLD from module by serially concatenated configuration signal line SCFG, should then connect mutually from module bus reception/transmitter FPGA/CPLD with other from module bus receptions/transmitter FPGA/CPLD by configuration signal line SCFG, the variable-length of carrying out data message by communication protocol and FPGA (Field Programmable Gate Array) design is transmitted and from the flexible Configuration Online of module; The spi bus of primary module also is connected from module with other by Shielded Twisted Pair simultaneously, and the spi bus signal is carried out difference processing, and a master of the long distance of high speed of realization packet is many from communication.
2, high-speed configurable extended SPI bus according to claim 1, it is characterized in that: described variable length bus transmission/receiver FPGA/CPLD comprises message length register, transmitting counter, transmitting counter receives and sends enable signal and counting clock signal, message length register, transmitting counter output termination comparer, comparator output terminal connects SCLK clock output signal line, counting clock signal also divides two-way, one the tunnel connects SCLK clock output signal line, another road connects the serial transmitter input end, its output termination MOSI data line.
3, high-speed configurable extended SPI bus according to claim 1 is characterized in that: described bus reception/transmitter FPGA/CPLD comprises control information receiver and data information receiver; Mainboard and each daughter board respectively have at least one control information receiver and a data information receiver.
4, the method for work of the described high-speed configurable extended SPI bus of a kind of claim 1 is characterized in that: its method is,
1) system's power-on self-test;
2) primary module is to automatic identification and configuration from module, to realize main many transmission from pattern, process is: the configuration signal high level that primary module sends by communication protocol make be attached thereto first put height from the CFG_EN signal of module receiver, should prepare from module, receive primary module configuration data bag and return oneself information; First after the block configuration end, forbids self configuration module work, simultaneously the CFG_OE signal is put height, and this moment, next CFG_EN from module of series connection was put height with it, should be triggered from the modules configured operation, and triggering is gone down successively; When last no configuration information returned, configuration finished, thereby realized the software Configuration Online, with the data packet transmission that satisfies different length and the online expansion and the configuration of submodule;
3) enter normal manipulation mode; Bus address divides broadcast address and common address, if broadcast address, all submodules receive the primary module order synchronously; If common address, submodule receive only the packet with self matching addresses, when receiving, corresponding data is sent to primary module; Cooperate message protocol, realize position control, I/O control and other function that is provided with.
5, the collocation method of high-speed configurable extended SPI bus according to claim 4 is characterized in that: communication protocol comprises main to from communication message M2S with to main communication message S2M described step 2); They are again respectively by configuration message: C message and data message: the D message is formed, by the most significant digit MSB sign of message.
6, the collocation method of high-speed configurable extended SPI bus according to claim 5, it is characterized in that: described master is that M2S C message format is from the configuration message C of communication message M2S extremely: be labeled as flag C/D, be command message, 0 bit data message if be labeled as 1; The message data length DL that closelys follow later of primary module address bit BA, the 3bits of 4bits; Data message DATA, its length is determined by data message length DL; Check bit VR;
From the configuration message C to main communication data message S2M is that S2M C message format is, daughter board associated description information DATA; Check bit VR;
The master is that M2S D message format is to the data message D from communication data message M2S, and flag C/D is command message if be labeled as 1, and 0 is data message; The message transfer address BS of 4bits; Submodule address MS in the plate of 4bits; The data control bit DC that comes into force; Data message position DATA, its length is determined by the DL in when configuration; Check bit VR;
From the data message D to main communication data message S2M is that S2M D message format is, flag C/D is command message if be labeled as 1, and 0 is data message; Data qualifier bit DC, 0 expression data are instant data, the synchrodata that latchs in the 1 expression buffer zone; Data message DATA, length is determined by the DL in when configuration; Check bit VR.
7, according to claim 4 or 6 described high-speed configurable extended SPI bus, it is characterized in that: described step 2) at primary module to from block configuration the time, from module monitors behind the configuration signal high level, extract M2S C message BA, the DL position, press BA, the information of DL position sends to primary module with S2M C message, and the transmission of S2M C message and M2S C message receive synchronously; Meanwhile extract relevant information configuration message transmission length among the M2S, write down self address; Submodule with the control of SCLK counting, realizes that by the control information receiver information extraction is to relevant register by counter in the layoutprocedure.
8, according to claim 4 or 6 described high-speed configurable extended SPI bus, it is characterized in that: the position is controlled to be in the described step 3) normal manipulation mode, when primary module sends data M2S D message identification position DC is put 1, adopt common address to send, temporarily leave in the buffer zone after making each module receive data, put 1 broadcasting packet by DC then the data sync output that cushions in each submodule is realized each synchro control; And in synchronous output data, each submodule can latch the peripheral hardware sampled data synchronously, is read successively by primary module when sending order data for each submodule in the next cycle then;
If I/O is controlled to be the no synchronous requirement of each I/O point, can make M2S D message put 0, the data instant that reaches submodule is come into force and the instant data of the peripheral hardware of sampling reach primary module; If synchronous requirement is arranged, but the method for reference bit control function realizes synchronous output and sampling between each module.
9, according to claim 4 or 6 described high-speed configurable extended SPI bus, it is characterized in that: in the described step 3), for common address, the control information receiver is with data dash receiver address at first; When the address receives,, this plate transmission output terminal is put high resistant forbid that data of this plate communication this time send to prevent many drivings of MISO data line if not judge this plate address; If receiver module address and DC position are continued in this plate address; After receiving the DC position data information receiver of module's address correspondence is opened the reception data; Data information receiver receives data and there is send buffer in it; After pending data finishes receiving, if the DC position be high, use then that the SS signal sends data on the bus from buffering, if low, wait broadcasting command and other plates send synchronously;
For broadcast address, the control information receiver is with data receiver address at first; If broadcast address, and the DC position is 0 o'clock, enables all module data message recipients and receives public broadcasting data; If it is 1 that DC receives the position, keep all data information receiver to forbid, after finishing, the pending data transmission utilize the SS signal that the data in all module send buffers are sent.
CN2007100157277A 2007-05-29 2007-05-29 A high-speed configurable extended SPI bus and working method thereof Expired - Fee Related CN101067804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007100157277A CN101067804B (en) 2007-05-29 2007-05-29 A high-speed configurable extended SPI bus and working method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007100157277A CN101067804B (en) 2007-05-29 2007-05-29 A high-speed configurable extended SPI bus and working method thereof

Publications (2)

Publication Number Publication Date
CN101067804A true CN101067804A (en) 2007-11-07
CN101067804B CN101067804B (en) 2010-04-14

Family

ID=38880366

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007100157277A Expired - Fee Related CN101067804B (en) 2007-05-29 2007-05-29 A high-speed configurable extended SPI bus and working method thereof

Country Status (1)

Country Link
CN (1) CN101067804B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101847135A (en) * 2009-03-26 2010-09-29 杭州士兰微电子股份有限公司 Series-connected communication system and communication method thereof
CN101859288A (en) * 2010-03-18 2010-10-13 成都优博创技术有限公司 PCB jointed board of onboard ISP memory chip and burning method thereof
CN101615169B (en) * 2008-06-26 2011-05-18 上海工程技术大学 Platform and method for two-way identification recognition and information interaction based on SPI structural models
CN102135948A (en) * 2010-01-25 2011-07-27 安国国际科技股份有限公司 Inter-integrated circuit/serial peripheral interface master control interface circuit structure
CN102262604A (en) * 2011-07-25 2011-11-30 中兴通讯股份有限公司 Concurrent access method, system and interface device
CN102768650A (en) * 2011-05-03 2012-11-07 财团法人工业技术研究院 Master-slave full duplex serial transmission system and master-slave full duplex serial transmission method
CN103259738A (en) * 2013-04-27 2013-08-21 华为技术有限公司 Data transmission method, data generator and initiative flow control system
CN103678209A (en) * 2012-09-18 2014-03-26 格科微电子(上海)有限公司 Method and system for transmitting data on basis of serial peripheral interface buses
CN103810130A (en) * 2012-11-13 2014-05-21 亚旭电脑股份有限公司 Data transmission selection circuit and data transmission selection method
CN104486208A (en) * 2014-12-11 2015-04-01 中国人民解放军国防科学技术大学 Message boundary positioning method and device oriented to plate-grade multi-channel parallel bus
CN104518934A (en) * 2013-09-26 2015-04-15 西门子公司 Bus interconnection method, apparatus and system
CN104794093A (en) * 2015-03-31 2015-07-22 南通艾利特自动化有限公司 SPI bus expander circuit with ID recognition function
CN106444535A (en) * 2016-11-18 2017-02-22 威科达(东莞)智能控制有限公司 Motion controller and control method
CN109164745A (en) * 2018-11-05 2019-01-08 郑州轻工业学院 Vehicle-mounted input-output control unit, method and vehicle
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller
CN110880998A (en) * 2019-12-03 2020-03-13 锐捷网络股份有限公司 Message transmission method and device based on programmable device
CN113545011A (en) * 2018-12-17 2021-10-22 固瑞克明尼苏达有限公司 Large data packet daisy chain serial bus
US11704257B1 (en) 2022-04-15 2023-07-18 Graco Minnesota Inc. System provisioning using virtual peripherals

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446930A (en) * 2015-12-25 2016-03-30 吉林大学 Single selection end SPI (Serial Peripheral Interface) master-slave multi-machine bidirectional communication method

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615169B (en) * 2008-06-26 2011-05-18 上海工程技术大学 Platform and method for two-way identification recognition and information interaction based on SPI structural models
CN101847135B (en) * 2009-03-26 2014-06-18 杭州士兰微电子股份有限公司 Series-connected communication system and communication method thereof
CN101847135A (en) * 2009-03-26 2010-09-29 杭州士兰微电子股份有限公司 Series-connected communication system and communication method thereof
CN102135948A (en) * 2010-01-25 2011-07-27 安国国际科技股份有限公司 Inter-integrated circuit/serial peripheral interface master control interface circuit structure
CN101859288A (en) * 2010-03-18 2010-10-13 成都优博创技术有限公司 PCB jointed board of onboard ISP memory chip and burning method thereof
CN102768650B (en) * 2011-05-03 2015-06-17 财团法人工业技术研究院 Master-slave full duplex serial transmission system and master-slave full duplex serial transmission method
CN102768650A (en) * 2011-05-03 2012-11-07 财团法人工业技术研究院 Master-slave full duplex serial transmission system and master-slave full duplex serial transmission method
CN102262604A (en) * 2011-07-25 2011-11-30 中兴通讯股份有限公司 Concurrent access method, system and interface device
CN102262604B (en) * 2011-07-25 2017-04-26 中兴通讯股份有限公司 Concurrent access method, system and interface device
CN103678209A (en) * 2012-09-18 2014-03-26 格科微电子(上海)有限公司 Method and system for transmitting data on basis of serial peripheral interface buses
CN103678209B (en) * 2012-09-18 2017-03-15 格科微电子(上海)有限公司 Data transmission method and system based on serial peripheral equipment interface bus
CN103810130B (en) * 2012-11-13 2016-11-02 亚旭电脑股份有限公司 Data transmission selection circuit and method
CN103810130A (en) * 2012-11-13 2014-05-21 亚旭电脑股份有限公司 Data transmission selection circuit and data transmission selection method
CN103259738B (en) * 2013-04-27 2017-06-06 华为技术有限公司 A kind of data transmission method for uplink, data producer and active flow control system
CN103259738A (en) * 2013-04-27 2013-08-21 华为技术有限公司 Data transmission method, data generator and initiative flow control system
CN104518934A (en) * 2013-09-26 2015-04-15 西门子公司 Bus interconnection method, apparatus and system
CN104486208B (en) * 2014-12-11 2017-08-04 中国人民解放军国防科学技术大学 Towards the message boundaries localization method and device of plate level multi-channel parallel bus
CN104486208A (en) * 2014-12-11 2015-04-01 中国人民解放军国防科学技术大学 Message boundary positioning method and device oriented to plate-grade multi-channel parallel bus
CN104794093B (en) * 2015-03-31 2017-06-30 南通艾利特自动化有限公司 A kind of spi bus expanded circuit with ID identification functions
CN104794093A (en) * 2015-03-31 2015-07-22 南通艾利特自动化有限公司 SPI bus expander circuit with ID recognition function
CN106444535A (en) * 2016-11-18 2017-02-22 威科达(东莞)智能控制有限公司 Motion controller and control method
CN106444535B (en) * 2016-11-18 2019-12-03 威科达(东莞)智能控制有限公司 A kind of motion controller and control method
CN109902053A (en) * 2017-12-07 2019-06-18 厦门雅迅网络股份有限公司 A kind of SPI communication method, terminal device and storage medium based on dual controller
CN109902053B (en) * 2017-12-07 2022-07-05 厦门雅迅网络股份有限公司 SPI communication method based on double controllers, terminal equipment and storage medium
CN109359073A (en) * 2018-09-18 2019-02-19 深圳吉迪思电子科技有限公司 A kind of communication between devices method and apparatus topological structure based on spi bus
CN109164745A (en) * 2018-11-05 2019-01-08 郑州轻工业学院 Vehicle-mounted input-output control unit, method and vehicle
CN113545011A (en) * 2018-12-17 2021-10-22 固瑞克明尼苏达有限公司 Large data packet daisy chain serial bus
CN113545011B (en) * 2018-12-17 2023-05-23 固瑞克明尼苏达有限公司 Big data packet daisy chain serial bus
CN110880998A (en) * 2019-12-03 2020-03-13 锐捷网络股份有限公司 Message transmission method and device based on programmable device
CN110880998B (en) * 2019-12-03 2022-09-20 锐捷网络股份有限公司 Message transmission method and device based on programmable device
US11704257B1 (en) 2022-04-15 2023-07-18 Graco Minnesota Inc. System provisioning using virtual peripherals

Also Published As

Publication number Publication date
CN101067804B (en) 2010-04-14

Similar Documents

Publication Publication Date Title
CN101067804A (en) A high-speed configurable extended SPI bus and working method thereof
CN201060487Y (en) High speed configurable extension SPI bus
JP6433973B2 (en) Multi-wire single-ended push-pull link with data symbol transition-based clocking
CN204857144U (en) Led display screen control system and sending card
CN101060457A (en) Optical fiber-based high speed serial industrial real-time communication bus system and its control method
CN1851682A (en) Method for realizing serial peripheral unit interface
CN105208034A (en) SPI bus and CAN bus protocol converting circuit and method
CN1905558A (en) Individualized ethernet exchange plate and data exchanging method
CN104836989B (en) A kind of high-speed multiple channel Quick view images are as circuit
CN101814269A (en) Method and device for simultaneously displaying multiple images in real time on full color LED dot matrix
CN2710264Y (en) Time-division multiple real-time communication bus
CN1588337A (en) Serial communiction bus external equipment interface
CN101047447A (en) Point-to-point industrial series real-time communication system based on optical fibre and its control method
CN103186310A (en) Electronic white board with multiple common-frequency pens
CN1622067A (en) Method for high speed SATA interface data recovery and serial-parallel conversion and circuit module
CN1179660A (en) Loop back device of packet communication T1 network
CN202472619U (en) Common-frequency multi-pen electronic whiteboard
CN102123275B (en) Video component data information acquiring and extracting method
CN102780598B (en) A kind of bus communication, bus communication unit and system
CN1734545A (en) LED display screen signal interconnection method
CN1564506A (en) Following route clock transmitter of high speed serial data
CN1619518A (en) Half duplex series communication bus external device interface
CN1151626C (en) Circuit and method for frame location search and code stream conversion
CN1292362C (en) Serial port extended chip
CN106782295B (en) LED box

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: 20100414

Termination date: 20170529