CN102855210A - Method for realizing intercommunication and data sharing between two single-chip microcomputers - Google Patents
Method for realizing intercommunication and data sharing between two single-chip microcomputers Download PDFInfo
- Publication number
- CN102855210A CN102855210A CN2012103074421A CN201210307442A CN102855210A CN 102855210 A CN102855210 A CN 102855210A CN 2012103074421 A CN2012103074421 A CN 2012103074421A CN 201210307442 A CN201210307442 A CN 201210307442A CN 102855210 A CN102855210 A CN 102855210A
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- sram
- data sharing
- state
- chip
- 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
Links
Images
Landscapes
- Microcomputers (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention relates to a method for realizing intercommunication and data sharing between two single-chip microcomputers, which is characterized in that the method comprises the following steps of: using an SRAM (static random access memory) for data communication and data sharing buffer memory between the two single-chip microcomputer, and controlling the peripheral memory interfaces of the single-chip microcomputers to be switched between a high-impedance state and a reading-writing state according to states of handshaking signal communication ports of the single-chip microcomputers, so as to ensure that only one single-chip microcomputer accesses to the SRAM at a time. The method is simple to realize; and compared with the prior art, the device cost is saved and the data communication speed is improved.
Description
Technical field
The present invention relates to single-chip data communication, technology of sharing field, particularly a kind of method that realizes two single-chip microcomputer intercommunications and data sharing.
Background technology
Data communication and data sharing mainly contain two kinds of methods between two single-chip microcomputers that exist at present: one. and universal serial bus is realized data communication between single-chip microcomputer, such as UART, spi bus and iic bus etc.; Two. utilize dual port RAM to realize data communication and data sharing between single-chip microcomputer.Utilize above two kinds of methods to realize that mainly there is following problem and shortage in data communication:
1. utilize universal serial bus to realize data communication between single-chip microcomputer, because the unit that universal serial bus transmits is BIT, the speed of communication is received restriction.
2. utilize universal serial bus to realize data communication between single-chip microcomputer, need to adopt and improve and integrality and reliability that complicated communications protocol and transmitting-receiving flow process guarantee data, software is realized comparatively complicated and is comparatively taken the calculation resources of single-chip microcomputer.
3. utilize dual port RAM to realize that the method for data communication and data sharing need to adopt extra dual port RAM hardware resource between single-chip microcomputer, dual port RAM hardware belongs to special IC device, and the device price is more expensive, certainly will cause hardware cost to increase.
4. utilize dual port RAM to realize that the method for data communication and data sharing can't satisfy the demand that big data quantity is shared because the dual port RAM capacity is less between single-chip microcomputer.
Summary of the invention
For overcoming the problems referred to above, the purpose of this invention is to provide a kind of method that realizes two single-chip microcomputer intercommunications and data sharing.
The present invention adopts following scheme to realize: a kind of method that realizes two single-chip microcomputer intercommunications and data sharing, it is characterized in that: adopt a slice SRAM as data communication and data sharing buffer memory between described two single-chip microcomputers, and switch between high-impedance state and read-write state according to the external memory interface of the state control single chip computer of the handshake communication port of single-chip microcomputer, only have a single-chip microcomputer at this SRAM of access to guarantee a moment.
In an embodiment of the present invention, described handshake communication port is two IO mouths of described single-chip microcomputer.
In an embodiment of the present invention, described two IO mouths are defined as state input port and State-output mouth, during operation, whether what one single-chip microcomputer was judged the state input port is ' 1 ', SRAM is not read and write if ' 1 ' then identifies another single-chip microcomputer, at this moment this single-chip microcomputer identifies this single-chip microcomputer with State-output mouth set ' 0 ' first and SRAM is read and write, and then this single-chip microcomputer carries out the operation that needs to SRAM; Just State-output mouth set ' 1 ' after this single-chip microcomputer is to the SRAM EO.
In an embodiment of the present invention, the external memory interface of described two single-chip microcomputers adopts mode in parallel to be connected to the external interface of described SRAM.
Implementation method of the present invention is simple, relatively existing techniques save device cost, improved the speed of data communication.
Description of drawings
Fig. 1 is circuit connection diagram of the present invention.
Fig. 2 is embodiment of the invention single-chip microcomputer read-write schematic flow sheet.
Embodiment
The present invention will be further described below in conjunction with drawings and Examples.
As shown in Figure 1, present embodiment provides a kind of method that realizes two single-chip microcomputer intercommunications and data sharing, it is characterized in that: adopt a slice SRAM as data communication and data sharing buffer memory between described two single-chip microcomputers, and switch between high-impedance state and read-write state according to the external memory interface of the state control single chip computer of the handshake communication port of single-chip microcomputer, only have a single-chip microcomputer at this SRAM of access to guarantee a moment.In the present embodiment, described handshake communication port is two IO mouths of described single-chip microcomputer.
Please refer to Fig. 1 and Fig. 2, during operation, when single-chip microcomputer 1 will carry out read-write operation to SRAM, whether what judge first the state input port is ' 1 ', if ' 1 ' sign single-chip microcomputer 2 is not is not read and write SRAM, at this moment single-chip microcomputer 1 is is read and write (single-chip microcomputer can not operate SRAM for 2 this moments) to SRAM with State-output mouth set ' 0 ' sign single-chip microcomputer 1 first, and then 1 couple of SRAM of single-chip microcomputer carries out the operation of needs.Just State-output mouth set ' 1 ' behind 1 pair of SRAM EO of single-chip microcomputer (single-chip microcomputer can operate SRAM for 2 this moments).2 couples of SRAM(C of single-chip microcomputer) read-write operation is identical with flow process single-chip microcomputer 1.
The above only is preferred embodiment of the present invention, and all equalizations of doing according to the present patent application claim change and modify, and all should belong to covering scope of the present invention.
Claims (4)
1. method that realizes two single-chip microcomputer intercommunications and data sharing, it is characterized in that: adopt a slice SRAM as data communication and data sharing buffer memory between described two single-chip microcomputers, and switch between high-impedance state and read-write state according to the external memory interface of the state control single chip computer of the handshake communication port of single-chip microcomputer, only have a single-chip microcomputer at this SRAM of access to guarantee a moment.
2. the method for two single-chip microcomputer intercommunications of realization according to claim 1 and data sharing, it is characterized in that: described handshake communication port is two IO mouths of described single-chip microcomputer.
3. the method for two single-chip microcomputer intercommunications of realization according to claim 2 and data sharing, it is characterized in that: described two IO mouths are defined as state input port and State-output mouth, during operation, whether what one single-chip microcomputer was judged the state input port is ' 1 ', SRAM is not read and write if ' 1 ' then identifies another single-chip microcomputer, at this moment this single-chip microcomputer identifies this single-chip microcomputer with State-output mouth set ' 0 ' first and SRAM is read and write, and then this single-chip microcomputer carries out the operation that needs to SRAM; Just State-output mouth set ' 1 ' after this single-chip microcomputer is to the SRAM EO.
4. the method for two single-chip microcomputer intercommunications of realization according to claim 1 and data sharing is characterized in that: the external memory interface of described two single-chip microcomputers adopts mode in parallel to be connected to the external interface of described SRAM.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210307442.1A CN102855210B (en) | 2012-08-27 | 2012-08-27 | Method for realizing intercommunication and data sharing between two single-chip microcomputers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210307442.1A CN102855210B (en) | 2012-08-27 | 2012-08-27 | Method for realizing intercommunication and data sharing between two single-chip microcomputers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102855210A true CN102855210A (en) | 2013-01-02 |
CN102855210B CN102855210B (en) | 2015-06-10 |
Family
ID=47401806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210307442.1A Active CN102855210B (en) | 2012-08-27 | 2012-08-27 | Method for realizing intercommunication and data sharing between two single-chip microcomputers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102855210B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105243034A (en) * | 2015-10-23 | 2016-01-13 | 国网福建省电力有限公司 | Device and method thereof for realizing data sharing between single chip microcomputers in electric energy quality detection device |
CN109709902A (en) * | 2017-10-25 | 2019-05-03 | 富泰华精密电子(郑州)有限公司 | Data interactive method, system and memory |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1287314A (en) * | 1999-08-31 | 2001-03-14 | 皇家菲利浦电子有限公司 | Multi processers with interface having a shared storage |
CN101000596A (en) * | 2007-01-22 | 2007-07-18 | 北京中星微电子有限公司 | Chip and communication method of implementing communicating between multi-kernel in chip and communication method |
CN101114271A (en) * | 2006-07-28 | 2008-01-30 | 三星电子株式会社 | Halbleiterspeicherelement, tragbares kommunikationssystem und verfahren zum bereitstellen einer hostschnittstelle zwischen prozessoren |
CN101398804A (en) * | 2007-09-29 | 2009-04-01 | 深圳迈瑞生物医疗电子股份有限公司 | Equipment with printing drive function and method for implementing printing drive |
CN101533384A (en) * | 2008-03-14 | 2009-09-16 | 施耐德电器工业公司 | Dual processor controlling system sharing one program memory and method thereof |
-
2012
- 2012-08-27 CN CN201210307442.1A patent/CN102855210B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1287314A (en) * | 1999-08-31 | 2001-03-14 | 皇家菲利浦电子有限公司 | Multi processers with interface having a shared storage |
CN101114271A (en) * | 2006-07-28 | 2008-01-30 | 三星电子株式会社 | Halbleiterspeicherelement, tragbares kommunikationssystem und verfahren zum bereitstellen einer hostschnittstelle zwischen prozessoren |
CN101000596A (en) * | 2007-01-22 | 2007-07-18 | 北京中星微电子有限公司 | Chip and communication method of implementing communicating between multi-kernel in chip and communication method |
CN101398804A (en) * | 2007-09-29 | 2009-04-01 | 深圳迈瑞生物医疗电子股份有限公司 | Equipment with printing drive function and method for implementing printing drive |
CN101533384A (en) * | 2008-03-14 | 2009-09-16 | 施耐德电器工业公司 | Dual processor controlling system sharing one program memory and method thereof |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105243034A (en) * | 2015-10-23 | 2016-01-13 | 国网福建省电力有限公司 | Device and method thereof for realizing data sharing between single chip microcomputers in electric energy quality detection device |
CN109709902A (en) * | 2017-10-25 | 2019-05-03 | 富泰华精密电子(郑州)有限公司 | Data interactive method, system and memory |
Also Published As
Publication number | Publication date |
---|---|
CN102855210B (en) | 2015-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106209695B (en) | Providing low power physical units for load/store communication protocols | |
KR101695712B1 (en) | Leveraging an enumeration and/or configuration mechanism of one interconnect protocol for a different interconnect protocol | |
TWI515577B (en) | Method and interface for communications between units in a device | |
CN101087235A (en) | A FPGA-based multi-functional communication interface conversion device and method | |
CN102646088A (en) | External bridge system | |
US20090063717A1 (en) | Rate Adaptation for Support of Full-Speed USB Transactions Over a High-Speed USB Interface | |
CN202564744U (en) | Bridger between high-speed peripheral assembly interconnection port and USB 3.0 device | |
CN203812236U (en) | Data exchange system based on processor and field programmable gate array | |
CN109411007B (en) | Universal flash memory test system based on FPGA | |
CN102073611B (en) | I2C bus control system and method | |
CN107908589A (en) | I3C verifications slave device, the authentication system and method for master-slave equipment | |
CN104714918A (en) | Method for receiving and buffering high-speed FC bus data in host computer environment | |
CN115733549A (en) | PCIE network card and switching method of interface modes thereof, electronic equipment and storage medium | |
CN102855210B (en) | Method for realizing intercommunication and data sharing between two single-chip microcomputers | |
CN111124985A (en) | Read-only control method and device for mobile terminal | |
CN202694039U (en) | Adapter circuit | |
CN101604304B (en) | Multi-CPU communication method and relay protection device | |
CN203632688U (en) | Multifunctional communication interface machine device based on PowerPC embedded system | |
CN102693203A (en) | Embedded USB (universal serial bus) host | |
CN103838694A (en) | FPGA high-speed USB interface data reading method | |
CN103607286B (en) | Multi-functional communication interface machine device based on PowerPC embedded systems | |
CN102708091B (en) | Double-CPU (central processing unit) system communication method based on virtual network card | |
CN201638205U (en) | Data transmission circuit of USB interface and RS-232 interface | |
CN204406395U (en) | A kind of high speed communication interacted system of CPCI framework | |
CN208190652U (en) | A kind of mainboard of full duplex Universal Synchronous Asynchronous serial transceiver |
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 |