Unlock instant, AI-driven research and patent intelligence for your innovation.

Method of realizing telecommunication of common three-line IO (Input/Output) with multiple CPUs (Central Processing Unit)

A common, handshake signal technology, applied in the direction of various digital computer combinations, etc., can solve the problems of limited cost, unable to meet the multi-channel external interaction interface, etc., to achieve the effect of ensuring absolute synchronization, cost saving, and convenient expansion

Inactive Publication Date: 2013-07-10
BEIJING PROSTAR INT ELECTRIC
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the process of manufacturing inverter power supply equipment, a single CPU cannot meet the requirements, and there will be more than two CPUs to complete all functions together. Multiple CPUs want to achieve synchronous work, and a good communication method is needed to solve the problem of synchronization. The problem is that multiple CPUs exchange data through 10 communication, how to achieve fast speed and reliable communication and occupy less resources, this is an urgent problem to be solved at this stage
[0003] In our commonly used main chip devices, hardware interfaces such as serial ports, I2C, and SPI are mainly used to interact with the outside world. No matter which interface is used, a dedicated hardware interface is required, and the hardware interface is limited by the cost of the chip. , in the low-end 8-bit single-chip microcomputer chip, there is usually only one hardware serial port. In this case, the traditional method cannot meet the multi-channel external interaction interface.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of realizing telecommunication of common three-line IO (Input/Output) with multiple CPUs (Central Processing Unit)
  • Method of realizing telecommunication of common three-line IO (Input/Output) with multiple CPUs (Central Processing Unit)
  • Method of realizing telecommunication of common three-line IO (Input/Output) with multiple CPUs (Central Processing Unit)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In the following, a method for realizing communication of a multi-CPU common 3-wire IO proposed by the present invention will be described in detail in conjunction with the accompanying drawings and embodiments.

[0024] Ordinary IO port states usually only have two states (high level is 1, low level is 0). When the IO port is used as an input state: set MCLK / SCLK to 0 to output low level, and set to 1 to output low level. Output high level; when the IO port is used as the input state: if MCLK is detected as low level, that is, the MCLK state is 0; if MCLK is detected as high level, that is, the MCLK state is 1.

[0025] like figure 1 , figure 2 Shown, a kind of method that is applied to the common 3-line IO of dual CPUs in the process of manufacturing inverter power supply equipment to realize communication, with the embodiment of transmitting 8 data bits between two CPUs, the specific process is as follows:

[0026] The first CPU first detects whether the handshake...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method of realizing telecommunication of a common three-wire IO (Input / Output) with multiple CPUs, and relates to the field of multi-CPU telecommunication connection. The method comprises the following steps: firstly, a handshake signal line MCLK (Master CLocK) is occupied by a first CPU, the MCLK is set to zero, and a telecommunication application is sent to a second CPU; secondly, a handshake signal line SCLK ( Serial Clock ) is occupied by a second CPU, the MCLK is detected to be equal to 0, the telecommunication application of the first CPU is received, and the SCLK is set to 0; thirdly, the SCLK is detected to be equal to 0 by the first CPU, data bit 0 is sent to a data line SDA, and the MCLK is set to 1; fourthly, the MCLK is detected to be equal to 1 by the second CPU, the data bit 0 is received by the data line SDA, and the SCLK is set to 1; fifthly, the SCLK is detected to be equal to 1, data bit 1 is sent to the data line SDA, and the MCLK is set to 0; and lastly, the MCLK is detected to be equal to 0 by the second CPU, the data bit 1 is received by the data line SDA, and the SCLK is set to 0. The method has the advantages that data delay is not required; interrupt is not required either; peer-to-peer transmission can be realized; the method is provided with a sending / receiving check waiting mechanism; telecommunication speed is increased at the utmost; absolute synchronization can be ensured; speed of CPUs of two persons is arbitrary; and interactive interfaces can be expanded through a certain protocol, so that expansion is convenient, and cost is saved.

Description

technical field [0001] The invention relates to the field of multi-CPU communication connection, in particular to a method for multi-CPU common 3-line IO to realize communication. Background technique [0002] In the process of manufacturing inverter power supply equipment, a single CPU cannot meet the requirements, and there will be more than two CPUs to complete all functions together. Multiple CPUs want to achieve synchronous work, and a good communication method is needed to solve the problem of synchronization. The problem is that multiple CPUs exchange data through 10 communications. How to achieve fast speed and reliable communications and occupy less resources is an urgent problem to be solved at this stage. [0003] In our commonly used main chip devices, hardware interfaces such as serial ports, I2C, and SPI are mainly used to interact with the outside world. No matter which interface is used, a dedicated hardware interface is required, and the hardware interface i...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F15/17
Inventor 任晶珠
Owner BEIJING PROSTAR INT ELECTRIC