CN102855210B - 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 PDF

Info

Publication number
CN102855210B
CN102855210B CN201210307442.1A CN201210307442A CN102855210B CN 102855210 B CN102855210 B CN 102855210B CN 201210307442 A CN201210307442 A CN 201210307442A CN 102855210 B CN102855210 B CN 102855210B
Authority
CN
China
Prior art keywords
chip microcomputer
sram
state
chip
data sharing
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.)
Active
Application number
CN201210307442.1A
Other languages
Chinese (zh)
Other versions
CN102855210A (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.)
FUJIAN LIDE AUTOMATION EQUIPMENT CO LTD
Original Assignee
FUJIAN LIDE AUTOMATION EQUIPMENT CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FUJIAN LIDE AUTOMATION EQUIPMENT CO LTD filed Critical FUJIAN LIDE AUTOMATION EQUIPMENT CO LTD
Priority to CN201210307442.1A priority Critical patent/CN102855210B/en
Publication of CN102855210A publication Critical patent/CN102855210A/en
Application granted granted Critical
Publication of CN102855210B publication Critical patent/CN102855210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Microcomputers (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

A kind ofly realize two single-chip microcomputer intercommunications and the method for data sharing
Technical field
The present invention relates to single-chip data communication, technology of sharing field, particularly a kind ofly realize two single-chip microcomputer intercommunications and the method for data sharing.
Background technology
Between two single-chip microcomputers of current existence, data communication and data sharing mainly contain two kinds of methods: one. and universal serial bus realizes data communication between single-chip microcomputer, 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 data communication and mainly there is following problem and shortage:
1. utilize universal serial bus to realize data communication between single-chip microcomputer, the unit transmitted due to universal serial bus is BIT, and the speed of communication receives restriction.
2. utilize universal serial bus to realize data communication between single-chip microcomputer, need to adopt and to improve and complicated communications protocol and transmitting-receiving flow process ensure integrality and the reliability of data, software simulating is comparatively complicated and comparatively take the calculation resources of single-chip microcomputer.
3. the method utilizing dual port RAM to realize data communication and data sharing between single-chip microcomputer needs to adopt extra dual port RAM hardware resource, and dual port RAM hardware belongs to special IC device, and device price is more expensive, and hardware cost certainly will be caused to increase.
4. the method utilizing dual port RAM to realize data communication and data sharing between single-chip microcomputer cannot meet the demand that big data quantity is shared because dual port RAM capacity is less.
Summary of the invention
For overcoming the problems referred to above, the object of this invention is to provide and a kind ofly realize two single-chip microcomputer intercommunications and the method for data sharing.
The present invention adopts following scheme to realize: a kind ofly realize two single-chip microcomputer intercommunications and the method for 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, to guarantee that a moment only has a single-chip microcomputer at this SRAM of access.
In an embodiment of the present invention, described handshake communication port is two I/O ports of described single-chip microcomputer.
In an embodiment of the present invention, described two I/O ports are defined as state input port and State-output mouth, during operation, whether what one single-chip microcomputer judged state input port is ' 1 ', SRAM is not read and write if ' 1 ' then identifies another single-chip microcomputer, at this moment State-output mouth set ' 0 ' is first identified this single-chip microcomputer and reads and writes SRAM by this single-chip microcomputer, the then operation that needs SRAM of this single-chip microcomputer; Just State-output mouth set ' 1 ' after this single-chip microcomputer terminates SRAM operation.
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, and relatively existing techniques save device cost, improves the speed of data communication.
Accompanying drawing explanation
Fig. 1 is circuit connection diagram of the present invention.
Fig. 2 is embodiment of the present invention single-chip microcomputer read-write schematic flow sheet.
Embodiment
Below in conjunction with drawings and Examples, the present invention will be further described.
As shown in Figure 1, the present embodiment provides a kind of and realizes two single-chip microcomputer intercommunications and the method for 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, to guarantee that a moment only has a single-chip microcomputer at this SRAM of access.In the present embodiment, described handshake communication port is two I/O ports 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 first judge state input port is ' 1 ', if ' 1 ' mark single-chip microcomputer 2 is not is not read and write SRAM, at this moment State-output mouth set ' 0 ' mark single-chip microcomputer 1 is is first read and write (single-chip microcomputer 2 now can not operate SRAM) SRAM by single-chip microcomputer 1, the then operation that needs of single-chip microcomputer 1 couple of SRAM.Just State-output mouth set ' 1 ' (single-chip microcomputer 2 now can operate SRAM) after single-chip microcomputer 1 pair of SRAM operation terminates.Single-chip microcomputer 2 couples of SRAM(C) read-write operation identical with flow process single-chip microcomputer 1.
The foregoing is only preferred embodiment of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to covering scope of the present invention.

Claims (1)

1. one kind realizes two single-chip microcomputer intercommunications and the method for 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, to guarantee that a moment only has a single-chip microcomputer at this SRAM of access, described handshake communication port is two I/O ports of described single-chip microcomputer, described two I/O ports are defined as state input port and State-output mouth, during operation, whether what one single-chip microcomputer judged state input port is ' 1 ', SRAM is not read and write if ' 1 ' then identifies another single-chip microcomputer, at this moment State-output mouth set ' 0 ' is first identified this single-chip microcomputer and reads and writes SRAM by this single-chip microcomputer, then this single-chip microcomputer operation that SRAM is needed, just State-output mouth set ' 1 ' after this single-chip microcomputer terminates SRAM operation, the external memory interface of described two single-chip microcomputers adopts mode in parallel to be connected to the external interface of described SRAM.
CN201210307442.1A 2012-08-27 2012-08-27 Method for realizing intercommunication and data sharing between two single-chip microcomputers Active CN102855210B (en)

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 CN102855210A (en) 2013-01-02
CN102855210B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN109709902B (en) * 2017-10-25 2022-01-21 富泰华精密电子(郑州)有限公司 Data interaction method, system and memory

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN102855210A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
CN106970886B (en) Controlling a physical link of a first protocol using an extended functionality architecture of a second protocol
CN106209695B (en) Providing low power physical units for load/store communication protocols
CN201604665U (en) Communication interface equipment of train control center
CN202956753U (en) Programming device and programming system of flash memory chip in embedded system
CN104484301B (en) A kind of IO bus units based on FPGA with self-recognition function
MX2012005934A (en) Multi-interface solid state disk (ssd), processing method and system thereof.
CN102902650A (en) Data sharing and transfer systems and methods
CN102646088A (en) External bridge system
CN107908589B (en) I3C communication verification system and method for verifying slave device and master-slave device
TW201411369A (en) Configuring a remote M-PHY
CN203812236U (en) Data exchange system based on processor and field programmable gate array
CN102073611B (en) I2C bus control system and method
CN209168746U (en) A kind of Common Flash Memory test macro based on FPGA
CN102637453B (en) Phase change memory including serial input/output interface
CN104714918A (en) Method for receiving and buffering high-speed FC bus data in host computer environment
CN102855210B (en) Method for realizing intercommunication and data sharing between two single-chip microcomputers
CN101604304B (en) Multi-CPU communication method and relay protection device
CN102693203A (en) Embedded USB (universal serial bus) host
CN202694039U (en) Adapter circuit
CN103838694A (en) FPGA high-speed USB interface data reading method
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
CN204480237U (en) A kind of connector, universal serial bus device and intelligent terminal
CN102591820B (en) IDMA (interleave division multiple access) bus bridge device
CN202615388U (en) Embedded usb host

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