CN101246462B - Periphery communication interface extension device and method - Google Patents
Periphery communication interface extension device and method Download PDFInfo
- Publication number
- CN101246462B CN101246462B CN2008100863636A CN200810086363A CN101246462B CN 101246462 B CN101246462 B CN 101246462B CN 2008100863636 A CN2008100863636 A CN 2008100863636A CN 200810086363 A CN200810086363 A CN 200810086363A CN 101246462 B CN101246462 B CN 101246462B
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- data
- interface
- main control
- control processor
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Information Transfer Systems (AREA)
- Communication Control (AREA)
Abstract
Provided is an expansion apparatus and method of external communication interface. The apparatus includes a master control processor and a single chip microcomputer connected to SPI external interface of the master control processor with which the single chip microcomputer communicates via the SPI external interface by SPI communication mode. The invention proves an effective cost-saving expansion, a decrease in the number of used devices and an improvement in system design flexibility.
Description
Technical field
The present invention relates to communication, system peripherals communication peripheral hardware is resource-constrained in the control field, needs the field of expansion, particularly, relates to the expanding unit and the method for periphery communication interface.
Background technology
Along with the raising day by day of system constructing complexity and reliability requirement, need to control, the system peripheral of communication and monitoring is also corresponding increases suddenly.
The main control processor of main flow on the market is (like ARM ((Advanced RISCMachines; Senior reduced instruction set computer equipment) processor) overwhelming majority all is equipped with function and comparatively complete control and the PORT COM of classification; Like standard modem (Modem) interface, serial 485 interfaces, serial 232 interfaces, USB (Universal SerialBus; Abbreviation USB) interface, universal serial bus (Inter-Integrated Circuit; Abbreviation IIC) interface, Ethernet media address control (Media Access Control is called for short MAC) interface etc., quantity required is slightly variant according to system requirements.But, for the main control processor of relative low side,, it is used in comparatively complicated, as can't to satisfy the system peripheral structure when needing monitoring peripheral hardware system with more usually requirement in order to practice thrift cost.In this case; Usually the method that adopts is the proprietary extensions chip that increases the corresponding interface; Like many serial ports expansion chip; Can realize that universal asynchronous receiving-transmitting (UniversalAsynchronous Receiver/Transmitter the abbreviates UART as) serial ports expansion with a higher baud rate is several lower UART serial ports.
But the said method cost is higher, and the proprietary extensions chip price is expensive, and therefore, taking cost into account, method used in the prior art is not suitable for the too much occasion of PORT COM classification that needs expansion.
Summary of the invention
The objective of the invention is to propose a kind of device and method of expanding system periphery communication interface, to reduce the expansion cost, to reduce the device usage quantity to the higher defective of expansion periphery communication interface cost in the correlation technique.
For realizing above-mentioned purpose, according to an aspect of the present invention, a kind of expanding unit of periphery communication interface is provided.
Expanding unit according to the periphery communication interface of the embodiment of the invention comprises: main control processor and with Serial Peripheral Interface (the Serial Peripheral Interface of main control processor; Abbreviation SPI) single-chip microcomputer that interface connects, single-chip microcomputer communicates via SPI interface and main control processor through the SPI communication mode; Main control processor sends to the external interface of single-chip microcomputer through the SPI interface with data, and single-chip microcomputer will send to the SPI interface of main control processor from the data that its external interface receives; Wherein, Main control processor sends to single-chip microcomputer through the control signal in the SPI interface and comprises control sign and functional configuration parameter control information or comprise operation mark and treat the data message of service data; This control sign is used for the external interface of single-chip microcomputer is carried out functional configuration, and this operation mark is used for the external interface of single-chip microcomputer is carried out data manipulation.
Above-mentioned expanding unit according to the embodiment of the invention can also comprise: one or more expansion communication interface chips, be connected with the external interface of single-chip microcomputer, and be used for carrying out communication through the external interface and the main control processor of single-chip microcomputer.
Further; Above-mentioned expanding unit according to the embodiment of the invention can also comprise: one or more level transferring chip; Be connected with external interface and one or more expansion communication interface chip of single-chip microcomputer, the external interface level conversion that is used for single-chip microcomputer is the level of one or more expansion communication interface chips.
Wherein, main control processor can be senior reduced instruction set computer equipment (Advanced RISCMachines is called for short ARM) processor SAM7X256, and single-chip microcomputer can be ATMEGA162.
For realizing above-mentioned purpose, according to another aspect of the present invention, a kind of extended method of periphery communication interface is provided.
In extended method according to the periphery communication interface of the embodiment of the invention; Main control processor is linked to each other with single-chip microcomputer through the SPI interface, comprising: main control processor sends to comprise to control to identify to single-chip microcomputer through the SPI interface and reaches functional configuration parameter control information; Single-chip microcomputer carries out functional configuration according to the functional configuration parameter in the control information to the external interface of single-chip microcomputer; Main control processor sends to single-chip microcomputer and comprises operation mark and treat the data message of service data what the external interface of single-chip microcomputer was operated; Single-chip microcomputer resolution data information, pairing operation will treat that service data sends to the external interface of single-chip microcomputer according to operation mark; The data that single-chip microcomputer will obtain from the external interface of single-chip microcomputer send to main control processor through the SPI interface.
Wherein, main control processor sends to single-chip microcomputer through the SPI interface and comprises the control sign and functional configuration parameter control information comprises: main control processor in the functional configuration parameter, be provided with following one of at least: the selection information of single-chip microcomputer external interface, baud rate, data bits, verification figure place, position of rest; Main control processor sends to single-chip microcomputer through the SPI interface and comprises control sign and functional configuration parameter control information.
Accordingly; Single-chip microcomputer carries out functional configuration according to the configuration parameter in the control information to the external interface of single-chip microcomputer and comprises: single-chip microcomputer is selected the corresponding serial port of single-chip microcomputer according to the functional configuration parameter, baud rate, data bits, verification figure place and the position of rest of configuration serial port.
Wherein, above-mentioned main control processor sends to single-chip microcomputer and comprises operation mark and treat that the data message of service data comprises what the external interface of single-chip microcomputer was operated: main control processor one of is provided with in operation mark as follows at least: the external interface information of the single-chip microcomputer of data manipulation mode information, selection operation and treat the data length information of service data; Main control processor sends the data message that comprises operation mark and treat service data to single-chip microcomputer.
Wherein, Above-mentioned single-chip microcomputer resolution data information; Pairing operation will treat that the operation that service data sends to the external interface of single-chip microcomputer comprises according to operation mark: single-chip microcomputer resolution data information, obtain data manipulation mode information, selection operation single-chip microcomputer external interface information, data length and treat service data; Single-chip microcomputer will treat that according to the mode information of data manipulation service data sends to the corresponding external interface of external interface information of the single-chip microcomputer of selection operation.
The method and apparatus of the above embodiment of the present invention is with the expansion of main control processor through the plug-in chip microcontroller system peripherals of SPI interface communication interface; Do not need special-purpose extended chip; The expansion cost be can effectively practice thrift, device usage quantity and printed circuit board (PCB) (PrintedCircuit Board reduced; Be called for short PCB) area, improve the flexibility ratio of system design, and increase the extended capability of system to a certain extent.Through the method and apparatus of the above embodiment of the present invention, can believe the expansion of interface and storage space etc. like standard Modem serial line interface, RS232 serial line interface, RS485 string through the expansion of the multi-class COM1 of plug-in chip microcontroller single-chip.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the instructions of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Description of drawings
Accompanying drawing is used to provide further understanding of the present invention, and constitutes the part of instructions, is used to explain the present invention with embodiments of the invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the application system block diagram according to the expanding unit of the periphery communication interface of the embodiment of the invention;
Fig. 2 is the block diagram that is connected according to the key interface of the main control processor in the expanding unit of the periphery communication interface of the embodiment of the invention and single-chip microcomputer;
Fig. 3 is the process flow diagram according to the extended method of the periphery communication interface of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
Device embodiment
Fig. 1 is the application system block diagram according to the expanding unit of the periphery communication interface of the embodiment of the invention.As shown in Figure 1; Present embodiment comprises main control processor 102, single-chip microcomputer 104; Wherein, main control processor 102 peripheral interfaces have Modem external interface, RS485 external interface, SPI external interface and debugging (Debug) interface, and main control processor 102 links to each other with single-chip microcomputer 104 through the SPI external interface; Single-chip microcomputer 104 communicates through SPI communication mode and main control processor 102; To send to the external interface (the Modem interface of single-chip microcomputer 104 as shown in Figure 1 and RS485 interface) of single-chip microcomputer 104 from the data that main control processor 102 receives, and the data that will receive from the Modem interface or the RS485 interface of single-chip microcomputer 104 send to main control processor 102 through the SPI communication mode.
Particularly, can also connect one or more expansion communication interface chips in the outside of single-chip microcomputer in succession, external interface and main control processor through single-chip microcomputer carry out communication.
As shown in Figure 1; Expanding unit according to the embodiment of the invention can also comprise one or more level transferring chip; Like MAX3232 or MAX3485 level transferring chip etc.; It is connected with external interface and one or more expansion communication interface chip of single-chip microcomputer 104, and the external interface level conversion that is used for single-chip microcomputer 104 is the level of expansion communication interface chip.Demand according to system is different, can increase, delete the number of expansion communication interface chip and level transferring chip.
Fig. 2 is connected block diagram according to main control processor in the device of the expansion periphery communication interface of the embodiment of the invention with the single-chip microcomputer key interface.
Present embodiment is arm processor SAM7X256 with the main control processor; Single-chip microcomputer is that ATMEGA162 is that example is given an example; Those skilled in the art should understand; Main control processor can be more for any other peripheral hardwares that need monitor, and system can't satisfy the low side processor model that peripheral hardware makes up requirement, and single-chip microcomputer can be for having the single-chip microcomputer model that satisfies main control processor expansion demand of SPI interface arbitrarily.
The present embodiment extended mode adopts single chip computer AT MEGA162 to realize.As shown in Figure 2, this SPI interface adopts standard 4 line SPI communication modes to carry out the data transparency transmission.For ease of the reliability of software programming and transmission, increase the hardware handshaking that control and look-at-me realize master-slave communication.SPI signal of communication line mainly comprises: SPI chip selection signal (NPCS), SPI clock signal (SPCK), data input signal (MOSI), data output signal (MISO), reception look-at-me (IRQ), order and data select signal (CMD).Need serial connection current limliting and isolation resistance between the respective signal interface.Wherein, IRQ is principal and subordinate's machine handshake; Low level is effective, and through this signalisation main control processor (hereinafter to be referred as main frame), this signal was generally high level (logical one) when single-chip microcomputer (hereinafter to be referred as slave) had data to upload; When slave has data, produce low pulse output (logical zero), the low pulse retention time is not less than 5 μ S; CMD is order and data select signal, and high level (logical one) expression main frame carries out command operation through SPI to slave, and low level (logical zero) expression main frame carries out data manipulation through SPI to slave.Realize the hardware handshaking of communicating by letter between main frame and the slave through above connected mode.
Below in conjunction with Fig. 1 and Fig. 2 the expanding unit/method of the periphery communication interface of the embodiment of the invention is illustrated: built-in two universal synchronous of ATMEGA162 and asynchronous serial transmitting-receiving (Universal Serial Asynchronous Receiver/Transmitter; Be called for short USART) control port: USAR0 and USAR1; Can be operated in RS232 pattern and RS485 pattern, reception (RX) is provided when being operated in the RS232 pattern and send (TX) signal of communication; When needing external all fronts Modem, can adopt through carrying out the pattern (Programming Input/Output Mode abbreviates PIO as) that input/output end port carries out exchanges data, i.e. remaining control of PIO pattern simulation and handshake.Adopt the SPI master-slave communication between main control processor SAM7X256 and the ATMEGA162, information transmission mode adopts transparent transmission.
For downlink; The data (comprising check information) that it is good that main control processor SAM7X256 will pack; Cooperate corresponding SPI control protocol and control signal; Be sent to ATMEGA162 through the SPI interface, directly send to corresponding PORT COM USAR0 or USAR1 behind the data check that ATMEGA162 will receive from the SPI interface; For up-link, ATMEGA162 cooperates the data (comprising check information) that USAR0 or USAR1 PORT COM receive with corresponding SPI control protocol and control signal, is sent to the SPI interface of SAM7X256.
Through can realize the two-way serial communication of USAR0 or USAR1 and SAM7X256 with upper type, promptly realize the expansion of SAM7X256 serial ports.
The foregoing description is the example explanation of giving an example with the serial ports through single-chip microcomputer expansion main control processor, but in the practical operation, can also be through other communication interface of single-chip microcomputer expansion.
Method embodiment
Fig. 3 is the method embodiment process flow diagram according to expansion periphery communication interface of the present invention, and is as shown in Figure 3, comprising:
Step 301: main control processor sends to comprise to control to identify to single-chip microcomputer through the SPI interface and reaches functional configuration parameter control information;
Step 302: single-chip microcomputer carries out functional configuration according to the functional configuration parameter in the control information to the external interface of single-chip microcomputer;
Step 303: main control processor sends to single-chip microcomputer and comprises operation mark and treat the data message of service data what the external interface of single-chip microcomputer was operated;
Step 304: single-chip microcomputer resolution data information, pairing operation will treat that service data sends to the external interface of single-chip microcomputer according to operation mark;
Step 305: the data that single-chip microcomputer will obtain from the external interface of single-chip microcomputer send to main control processor through the SPI interface.
Synoptic diagram below in conjunction with Fig. 2 embodiment device; Embodiment describes to the inventive method; Realize that main control processor communicates by letter with SPI between the single-chip microcomputer, need to add the reliable transmission that some necessary control signals and control protocol realize shaking hands of main control processor and single-chip microcomputer and data communication.
Adopt following SPI interface host-host protocol to guarantee reliability of data transmission among the inventive method embodiment.Wherein, main control processor comprises to the operation that the single-chip microcomputer transmission comprises control sign and functional configuration parameter control information through the SPI interface:
Main control processor in the functional configuration parameter, be provided with following one of at least: the selection information of single-chip microcomputer external interface, baud rate, data bits, verification figure place, position of rest; Main control processor sends to single-chip microcomputer through the SPI interface and comprises control sign and functional configuration parameter control information.
Particularly; As shown in Figure 2, CMD is for order and data select signal, when main control processor carries out command operation; CMD sends high level signal as the control sign; Command operation is carried out in expression, and the SPI interface communication is provided with a command frame (corresponding to above-mentioned functional configuration parameter) according to the transmission content to come the PORT COM of single-chip microcomputer to be carried out functional configuration, its concrete form such as table one.
Table 1 command frame format:
High byte MSB | Low byte LSB |
Command byte | Control byte |
Command frame mainly is that the corresponding PORT COM of single-chip microcomputer is carried out functional configuration, comprises that monolithic connects parameters such as the selection of external interface, configuration serial port baud rate, verification figure place, data bits, position of rest.Command frame adopts isometric frame, and every frame is made up of 2 bytes, and wherein high byte is a command byte, and low byte is a control byte.Main control processor is when sending order, and transmission comprises the cmd signal (control sign) of high level and the control information of functional configuration parameter (command frame).
The implication of command byte is illustrated in the following his-and-hers watches 1:
The most significant digit of command word byte is used for representing read-write control, and 0 expression is write, and all the other 6 bit representation control commands, concrete function such as table 2 are read in 1 expression.
Each order numbering and corresponding function in table 2 command byte
Command byte | Function | Command property | Remarks |
Bit[7] | Read/write | ? | ? |
Bit[0:6] | Command word | ? | ? |
0x01 | Serial ports 0 control byte 0 | Readable (bit8 is 1) can be write (bit8 is 0) | When reading order, control word mends 0, down together |
0x02 | Serial ports 0 control byte 1 | Readable (bit8 is 1) can be write (bit8 is 0) | ? |
0x03 | Serial ports 1 control byte 0 | Readable (bit8 is 1) can be write (bit8 is 0) | ? |
0x04 | Serial ports 1 control byte 1 | Readable (bit8 is 1) can be write (bit8 is 0) | ? |
0x05 | Reserve | ? | ? |
0x06 | Reserve | ? | ? |
0x07 | Reserve | ? | ? |
0x08 | Reserve | ? | ? |
0x09 | Reserve | ? | ? |
0x0A | Reserve | ? | ? |
0x0B | Slave resets | ? | ? |
0x0C | Reserve | ? | ? |
0x0D | Reserve | ? | ? |
The implication of control byte is as shown in table 3 in the table 1:
The function of everybody correspondence in table 3 control byte
Bit[15:12] | Bit[11:8] | Bit[7:6] | Bit[5:4] | Bit[3:1] | Bit0 |
Keep | Baud rate | Data bit | Current control | Parity checking | Position of rest |
In embodiment illustrated in fig. 2, single-chip microcomputer has serial ports 0 and serial ports 1, and then table 3 expression is to the control byte of serial ports 0 and serial ports 1, and control byte transmits at twice, and most-significant byte is a byte 1, and least-significant byte is a byte 0, and the detailed description of each field in the control byte is as shown in table 4:
Each field is described in detail in table 4 control byte
Field | Definition | Describe | Remarks |
Bit0 | Position of rest | Position of rest 1-2 position, 0-1 position position of rest | ? |
Bit[3:1] | Parity checking | 000-no parity 001-odd 010-even parity check 011-sign 100-space | ? |
Bit[5:4] | Current control | It is self-defined that 00-does not have 01-hardware 10-software 11- | ? |
Bit[7:6] | Data bit | 01-7 bit data position, 00-6 bit data position | ? |
? | ? | 11-9 bit data position, 10-8 bit data position | ? |
Bit[11:8] | Baud rate | The self-defined speed 0001-300bps 0010-600bps of 0000-0011-1200bps 0100-2400bps 0101-4800bps 0110-7200bps 0111-9600bps 1000-14400bps 1001-19200bps 1010-38400bps 1011-56000bps 1100-57600bps 1101-115200bps 1110-128000bps 1111-256000bps | ? |
Bit[15:12] | Keep | Do not use | ? |
Main control processor among the inventive method embodiment sends to single-chip microcomputer and comprises operation mark and treat that the data message of service data comprises what the external interface of single-chip microcomputer was operated: main control processor one of is provided with in operation mark as follows at least: the external interface information of the mode information of data manipulation, the single-chip microcomputer of selection operation and treat the data length of service data; Main control processor sends the data message that comprises operation mark and treat service data to single-chip microcomputer.
Wherein, Single-chip microcomputer resolution data information; Pairing operation will treat that the external interface that service data sends to single-chip microcomputer comprises according to operation mark: single-chip microcomputer resolution data information, obtain data manipulation mode information, selection operation single-chip microcomputer external interface information, data length information and treat service data; Single-chip microcomputer sends to the corresponding external interface of external interface information of the single-chip microcomputer of selection operation according to the mode information of data manipulation with the service data of treating of data length.
Particularly; As shown in Figure 2, CMD is for order and data select signal, when main control processor carries out command operation; Send low level signal; Data manipulation is carried out in expression, and the SPI interface communication is provided with a Frame according to the transmission content and realizes the data transmission between main control processor and the single-chip microcomputer, and is as shown in table 5:
Table 5 data frame format
The data frame head | Data volume (1~n) |
Frame length is variable; Mainly comprise 2 fields, i.e. data frame head (operation mark) and data volume, the data frame head can be set to regular length (like 2 bytes); Operation mark as data; Data volume refers to the data content to be operated except that control command of main control processor and single-chip microcomputer exchange, and length is by the byte number decision of the actual needs communication of each port, and data volume is random length (a 1~n byte).
The data frame head is made up of 2 bytes, and implication and detailed description are shown in table 6 and table 7:
The implication of everybody correspondence of table 6 data frame head
Bit15 | Bit1[14:12] | Bit[11:0] |
The read-write sign | The Data Source port | Expression data volume length |
The corresponding description of each field of table 7 data frame head
Field | Definition | Describe | Remarks |
Bit15 | The read-write sign | The 0-main frame is sent out data and is read from machine data for slave 1-main frame | The mode of data manipulation |
Bit1[14:12] | The Data Source port | 0-serial ports 0 data 1-serial ports 1 data 2-MODEM information source information 3-obtains other reservation of target port data length | When 2-read information source information, it was fixed length that data volume length can come to decide the 3-data length as the case may be |
Bit[11:0] | The length of data volume | Length is actual data byte, removes the frame head byte number. | ? |
Wherein, As shown in table 7, single-chip microcomputer receives the data message that main control processor sends, and the mode that obtains data manipulation according to Bit15 is for reading or writing; Obtain the external interface information of the single-chip microcomputer of selection operation according to Bit1 [14:12]; According to the length of Bit [11:0] acquisition data volume, promptly treat the length of service data, thereby can carry out intercepting to the data in the data volume of back accurately.
In sum, by means of the technique scheme that the embodiment of the invention provides, can significantly reduce the area of expansion cost, minimizing device usage quantity and printed circuit board (PCB), the flexibility ratio of raising system design.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. the expanding unit of a periphery communication interface is characterized in that, comprising:
Main control processor and the single-chip microcomputer that is connected with the SPI interface of said main control processor, wherein, said single-chip microcomputer communicates via said SPI interface and said main control processor through the SPI communication mode;
Said main control processor sends to the external interface of said single-chip microcomputer through said SPI interface with data, and said single-chip microcomputer will send to the said SPI interface of said main control processor from the data that its external interface receives;
Wherein, Said main control processor sends to said single-chip microcomputer through the control signal in the said SPI interface and comprises control sign and functional configuration parameter control information or comprise operation mark and treat the data message of service data; Said control sign is used for the external interface of said single-chip microcomputer is carried out functional configuration, and said operation mark is used for the external interface of said single-chip microcomputer is carried out data manipulation.
2. the expanding unit of periphery communication interface according to claim 1 is characterized in that, also comprises:
One or more expansion communication interface chips are connected with the external interface of said single-chip microcomputer, are used for carrying out communication through the external interface and the said main control processor of said single-chip microcomputer.
3. the expanding unit of periphery communication interface according to claim 2 is characterized in that, also comprises:
One or more level transferring chip are connected with external interface and said one or more expansion communication interface chip of said single-chip microcomputer, and the external interface level conversion that is used for said single-chip microcomputer is the level of said one or more expansion communication interface chips.
4. according to the expanding unit of each described periphery communication interface among the claim 1-3, it is characterized in that said main control processor is arm processor SAM7X256, and/or, said single-chip microcomputer is ATMEGA162.
5. the extended method of a periphery communication interface is characterized in that, main control processor is linked to each other with single-chip microcomputer through the SPI interface, comprising:
Said main control processor sends to said single-chip microcomputer through said SPI interface and comprises control sign and functional configuration parameter control information;
Said single-chip microcomputer carries out functional configuration according to the said functional configuration parameter in the said control information to the external interface of said single-chip microcomputer;
Said main control processor sends to said single-chip microcomputer and comprises operation mark and treat the data message of service data what the external interface of said single-chip microcomputer was operated;
Said single-chip microcomputer is resolved said data message, according to the pairing operation of operation mark the said service data of treating is sent to the external interface of said single-chip microcomputer;
The data that said single-chip microcomputer will obtain from the external interface of single-chip microcomputer send to said main control processor through the SPI interface.
6. the extended method of periphery communication interface according to claim 5 is characterized in that, said main control processor sends the operation that comprises control sign and functional configuration parameter control information through said SPI interface to said single-chip microcomputer and comprises:
Said main control processor in said functional configuration parameter, be provided with following one of at least: the selection information of single-chip microcomputer external interface, baud rate, data bits, verification figure place, position of rest;
Said main control processor sends to said single-chip microcomputer through said SPI interface and comprises control sign and functional configuration parameter control information.
7. the extended method of periphery communication interface according to claim 6 is characterized in that, said single-chip microcomputer carries out functional configuration according to the functional configuration parameter in the said control information to the external interface of said single-chip microcomputer and comprises:
Said single-chip microcomputer is selected the corresponding serial port of single-chip microcomputer according to said functional configuration parameter, disposes baud rate, data bits, verification figure place and the position of rest of said serial port.
8. according to the extended method of each described periphery communication interface among the claim 5-7; It is characterized in that said main control processor sends to said single-chip microcomputer and comprises operation mark and treat that the data message of service data comprises what the external interface of single-chip microcomputer was operated:
Said main control processor one of is provided with in said operation mark as follows at least: the external interface information of the single-chip microcomputer of data manipulation mode information, selection operation and the said data length information of treating service data;
Said main control processor sends to said single-chip microcomputer and comprises said operation mark and the said data message of treating service data.
9. the extended method of periphery communication interface according to claim 8; It is characterized in that; Said single-chip microcomputer is resolved said data message, according to the pairing operation of operation mark the said operation of treating that service data sends to the external interface of said single-chip microcomputer is comprised:
Said single-chip microcomputer resolution data information obtains external interface information, data length and the said service data of treating of the single-chip microcomputer of said data manipulation mode information, selection operation;
Said single-chip microcomputer sends to the corresponding external interface of external interface information of the single-chip microcomputer of said selection operation according to said data manipulation mode information with the said service data of treating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100863636A CN101246462B (en) | 2008-03-26 | 2008-03-26 | Periphery communication interface extension device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100863636A CN101246462B (en) | 2008-03-26 | 2008-03-26 | Periphery communication interface extension device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101246462A CN101246462A (en) | 2008-08-20 |
CN101246462B true CN101246462B (en) | 2012-02-08 |
Family
ID=39946922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100863636A Expired - Fee Related CN101246462B (en) | 2008-03-26 | 2008-03-26 | Periphery communication interface extension device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101246462B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102446153B (en) * | 2011-12-15 | 2017-04-12 | 李欣 | communication module based on NLAS323 chip |
CN102981996A (en) * | 2012-11-26 | 2013-03-20 | 福州瑞芯微电子有限公司 | Expansion device and method for periphery interfaces |
CN103605306B (en) * | 2013-11-18 | 2016-07-06 | 四川长虹电器股份有限公司 | Communication device based on the extension of UART communication interface |
CN104820644B (en) * | 2015-04-30 | 2018-07-27 | 武汉大学 | Multiplexed port method and device when a kind of overstepping one's bounds |
US20160350240A1 (en) * | 2015-05-29 | 2016-12-01 | Analog Devices Global | Serial peripheral interface host port |
CN105404601B (en) * | 2015-11-26 | 2019-10-11 | 普天线缆集团(上海)楼宇智能有限公司 | Intelligent network scanner |
CN105550138A (en) * | 2015-12-18 | 2016-05-04 | 华立科技股份有限公司 | Serial port expansion method |
CN105718403A (en) * | 2016-01-18 | 2016-06-29 | 沈阳东软医疗系统有限公司 | Expansion interface and method for data communication through same |
CN105740190A (en) * | 2016-01-25 | 2016-07-06 | 上海斐讯数据通信技术有限公司 | Method and system for extending MDIO interface by means of SPI interface |
CN109039528A (en) * | 2017-06-08 | 2018-12-18 | 袁兵 | The communication means of flight control panel and host computer |
CN110647284A (en) * | 2019-09-23 | 2020-01-03 | 北京计算机技术及应用研究所 | Programmable display key array device based on domestic microcontroller |
CN114114991A (en) * | 2021-10-28 | 2022-03-01 | 日照先农氏物联网科技有限公司 | Control system of unmanned rice mill |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101061468A (en) * | 2004-12-29 | 2007-10-24 | 摩托罗拉公司 | System, method, and apparatus for extended serial peripheral interface |
-
2008
- 2008-03-26 CN CN2008100863636A patent/CN101246462B/en not_active Expired - Fee Related
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101061468A (en) * | 2004-12-29 | 2007-10-24 | 摩托罗拉公司 | System, method, and apparatus for extended serial peripheral interface |
Also Published As
Publication number | Publication date |
---|---|
CN101246462A (en) | 2008-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101246462B (en) | Periphery communication interface extension device and method | |
CN104484301B (en) | A kind of IO bus units based on FPGA with self-recognition function | |
CN208188815U (en) | BMC module system | |
CN102110045B (en) | Simulator for displaying debugging information in real time | |
CN203102392U (en) | Radio frequency card type intelligent classroom attendance device based on Internet of Things | |
CN201788900U (en) | Relay board and control system thereof | |
CN105931092A (en) | Invoicing data acquisition system and method | |
CN106127945A (en) | A kind of payment based on MDB/ICP agreement controls device | |
CN102608936A (en) | Method and system for controlling communication between control main board and display panel of water heater | |
CN201804385U (en) | Mobile comprehensive business processing terminal | |
CN204496480U (en) | A kind ofly realize that mobile phone is made out an invoice, certification, printing communication connecting apparatus | |
CN204188189U (en) | A kind of flexible embedded equipment under test simulator | |
CN100394359C (en) | Interface for intelligent card simulative debugging system | |
CN203415134U (en) | Multipath telegraph operator training system | |
CN102005115A (en) | Infrared meter reading method | |
CN201886557U (en) | Intelligent meal card system | |
CN205038678U (en) | Invoice is opened and management system | |
CN209460753U (en) | A kind of usb data real-time monitoring apparatus based on FPGA | |
CN202275453U (en) | Wireless response system | |
CN201130385Y (en) | Apparatus for reading and printing ID card information | |
CN201751905U (en) | Anti-counterfeiting encryption chip data reader of stylus pen with Bluetooth function | |
CN101464959B (en) | Equipment and method for reading and displaying ID card information | |
CN2434738Y (en) | Intelligent card safety identifying device | |
CN204440881U (en) | A kind of character liquid crystal aobvious control modular device | |
CN220983964U (en) | Public security law enforcement case handling informationized case and case-related financial intelligent locker control circuit |
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: 20120208 Termination date: 20170326 |