CN110311752B - Communication method and communication device for rapid, fast and stable communication between chips - Google Patents

Communication method and communication device for rapid, fast and stable communication between chips Download PDF

Info

Publication number
CN110311752B
CN110311752B CN201910513629.9A CN201910513629A CN110311752B CN 110311752 B CN110311752 B CN 110311752B CN 201910513629 A CN201910513629 A CN 201910513629A CN 110311752 B CN110311752 B CN 110311752B
Authority
CN
China
Prior art keywords
communication
spi
pin
fast
interrupt
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
CN201910513629.9A
Other languages
Chinese (zh)
Other versions
CN110311752A (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.)
Hangzhou Iecho Technology Co ltd
Original Assignee
Hangzhou Iecho Technology 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 Hangzhou Iecho Technology Co ltd filed Critical Hangzhou Iecho Technology Co ltd
Priority to CN201910513629.9A priority Critical patent/CN110311752B/en
Publication of CN110311752A publication Critical patent/CN110311752A/en
Application granted granted Critical
Publication of CN110311752B publication Critical patent/CN110311752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0045Arrangements at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention relates to a communication method and a communication device for rapid, fast and stable communication between chips, and belongs to the field of chip communication. The invention adds a SUCCED pin and an INTERRUPT _ REQ pin on the basis of standard SPI communication, realizes CRC16 verification in a hardware mode during SPI communication, and quickly returns back to a sending end synchronously through a SUCCEED pin line, wherein the INTERRUPT _ REQ pin is used for a receiving end to request data of the sending end. The invention has convenient communication, safety and reliability, can ensure the fast and stable communication between chips, simultaneously detects errors and ensures the real-time requirement.

Description

Communication method and communication device for rapid, fast and stable communication between chips
Technical Field
The invention relates to a communication method and a communication device thereof, in particular to a quick, quick and stable communication method and a communication device thereof used between chips, which can improve the real-time response capability between the chips and belong to the field of chip communication.
Background
The motion control system is a system with high real-time requirement, a good motion control system can control the motion command to be subdivided in microsecond level, and the minimum scanning period can reach 0.1 ms. Because the continuity of motion requires a high real-time response speed of the motion control system. This requires that the motion control commands be quickly prepared for error-free issuance in real time and receive feedback positions of the respective motion units in real time.
The multi-axis interpolation motion controller generally concentrates multi-path position feedback signals to the FPGA for unified reception and then transmits the signals to the main chip through inter-chip communication, thereby requiring the inter-chip communication to be fast and real-time and capable of detecting errors. The method solves the problems of real-time communication and error detection of the peripheral chip and the main chip.
In chinese patent with publication number CN 108073102 a, publication number is 25/05/2018, a communication method and a communication control system of a communication system are disclosed, in which a main controller of the patent sends a PWM waveform control signal with a certain duty ratio, a microprocessor receives the control signal and analyzes the control signal to generate a driving signal, and the driving signal drives an execution element to move; the communication method also comprises an event processing step, wherein an event list is prestored in the event processing step and comprises a plurality of groups of event information representing event states, the microprocessor acquires the current operating state of the execution element at intervals of a certain time, when the current operating state is the same as the event state corresponding to the event information of the event list, the microprocessor activates or closes the event information in the event list according to the event processing step and feeds back the event information to the main controller, the event information is irrelevant to the specific execution element, although the universality of the communication method is improved, the main controller acquires feedback information and controls more timely and accurately, the problems of real-time communication and error detection of peripheral chips and a main chip cannot be solved, the real-time quick preparation cannot be sent out, the requirements achieved by the motion control system cannot be met, and the defects are also existed.
Therefore, it is necessary to provide a communication method and a communication apparatus thereof, which are convenient for communication, can ensure fast and stable communication between chips, and simultaneously detect errors, and ensure real-time requirements.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned deficiencies in the prior art, and provides a communication method and a communication apparatus for fast and stable communication between chips, which are convenient, safe and reliable, and can ensure fast and stable communication between chips and error detection, and ensure real-time requirements.
The technical scheme adopted by the invention for solving the problems is as follows: the communication method for the rapid and stable communication between the chips is characterized in that: on the basis of standard SPI communication, a SUCCED pin and an INTERRUPT _ REQ pin are added, a sending end is a DSP, a receiving end is an FPGA, and the method specifically comprises the following steps:
the method comprises the following steps: the DSP sends a motion command and waits for a SUCCEED signal to confirm success;
step two: the FPGA distributes a motion command to a motion unit, collects position information and uploads the position information to the DSP;
step three: if no command is executable, the FPGA actively requests the command by setting the INTERRUPT _ REQ signal high, and how to respond is determined by the DSP.
Preferably, in the second step of the present invention, the uploading action is actively queried by the DSP.
Preferably, in the second step of the present invention, the FPGA generates an INTERRUPT signal through the INTERRUPT _ REQ signal pin to force the DSP to receive a signal that needs to be processed.
The invention also provides a device used in the communication method for fast and stable communication between chips, which is characterized in that: including SPI communication, SPI communication includes Master SPI and Slave SPI, its characterized in that: the device also comprises a SUCCED pin and an INTERRUPT _ REQ pin, communication verification is realized in real time, the SUCCED pin returns back to the sending end, the receiving end actively initiates application data through the INTERRUPT _ REQ signal pin, and synchronization after data errors is realized.
Preferably, the Master SPI is a six-axis motion control system motion command transmission center, and is responsible for generating six-axis motion control commands and processing return information.
Preferably, the Slave SPI according to the present invention is a sport command distribution center, and is responsible for distributing a sport command to each of the sport units and collecting location information of each of the sport units.
Preferably, the SPI communication of the present invention is a standard SPI communication.
Preferably, the SPI communication of the present invention is checked by its own CRC 16.
Preferably, the transmitting end of the invention is a DSP.
Preferably, the receiving end of the invention is an FPGA.
Compared with the prior art, the invention has the following advantages and effects: the communication is convenient, safe and reliable, and the SPI communication method with CRC16 check is adopted; the communication between the chips can be ensured to be rapid and stable, and the error detection is carried out at the same time, thereby ensuring the real-time requirement.
Drawings
Fig. 1 is a schematic diagram of an SPI communication device according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an SPI communication flow according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below by way of examples with reference to the accompanying drawings, which are illustrative of the present invention and are not to be construed as limiting the present invention.
Examples are given.
Referring to fig. 1 to fig. 2, the method for fast, fast and stable communication between chips in the present embodiment specifically includes the following steps: the method comprises the following steps: the DSP sends a motion command and waits for the success signal to confirm success.
Step two: the FPGA distributes a motion command to the motion unit, collects position information and uploads the position information to the DSP.
Step three: if no command is executable, the FPGA actively requests the command by setting the INTERRUPT _ REQ signal high, and how to respond is determined by the DSP.
The uploading action in the second step of this embodiment may be actively queried by the DSP, or the FPGA may generate an INTERRUPT signal through the INTERRUPT _ REQ signal pin to force the DSP to receive a signal that needs to be processed.
This embodiment is used for quick stable communication device between chip to include SPI communication, SUCCED pin and INTERRUPT _ REQ pin, and SPI communication includes Master SPI and Slave SPI, realizes communication check in real time and returns the transmitting terminal with the SUCCED pin, and the receiving terminal initiatively launches the application data through INTERRUPT _ REQ signal pin to realize the synchronization after the data mistake.
The Master SPI in this embodiment is a DSP, which is a six-axis motion control system motion command transmission center and is responsible for generating a six-axis motion control command and processing return information.
The Slave SPI in this embodiment is an FPGA chip, and the FPGA movement command distribution center is responsible for distributing movement commands to the movement units and collecting position information of the movement units.
The SPI communication in the embodiment is standard SPI communication; the SPI communication is checked with CRC 16; the sending end is a DSP; the receiving end is an FPGA.
In the method, two pin lines such as SUCCED and INTERRUPT _ REQ are added on the basis of standard SPI communication, CRC16 verification is realized in a hardware mode while the SPI communication is carried out, and the CRC16 verification is synchronously and quickly returned to a transmitting end (a host end) through the SUCCEED pin lines; the other newly added pin line is INTERRUPT _ REQ for the receiving end (slave) to request the data of the sending end (master).
And will be apparent to those skilled in the art from the foregoing description.
In addition, it should be noted that the specific embodiments described in the present specification may be different in the components, the shapes of the components, the names of the components, and the like, and the above description is only an illustration of the structure of the present invention. Equivalent or simple changes in the structure, characteristics and principles of the invention are included in the protection scope of the patent. Various modifications, additions and substitutions for the specific embodiments described may be made by those skilled in the art without departing from the scope of the invention as defined in the accompanying claims.

Claims (7)

1. A communication method for fast and stable chip is characterized in that: on the basis of standard SPI communication, a SUCCED pin and an INTERRUPT _ REQ pin are added, a sending end is a DSP, a receiving end is an FPGA, and the method specifically comprises the following steps:
the method comprises the following steps: the DSP sends a motion command and waits for a SUCCEED signal to confirm success;
step two: the FPGA distributes a motion command to a motion unit, collects position information and uploads the position information to the DSP; uploading action is actively inquired by the DSP; in the uploading action, the FPGA generates an INTERRUPT signal through an INTERRUPT _ REQ signal pin to force the DSP to receive a signal which needs to be processed;
step three: if no command is executable, the FPGA actively requests the command by setting the INTERRUPT _ REQ signal high, and how to respond is determined by the DSP.
2. An apparatus as claimed in claim 1, for use in a communication method for fast and stable communication between chips, wherein: including SPI communication, SPI communication includes Master SPI and Slave SPI, its characterized in that: the device also comprises a SUCCED pin and an INTERRUPT _ REQ pin, communication verification is realized in real time, the SUCCED pin returns back to the sending end, the receiving end actively initiates application data through the INTERRUPT _ REQ signal pin, and synchronization after data errors is realized; the Master SPI is a six-axis motion control system motion command sending center and is responsible for generating six-axis motion control commands and processing return information.
3. The communication device for fast and stable communication between chips according to claim 2, wherein: the Slave SPI is a sport command distribution center, and is responsible for distributing a sport command to each sport unit and collecting position information of each sport unit.
4. The communication device for fast and stable communication between chips according to claim 2, wherein: the SPI communication is a standard SPI communication.
5. The communication device for fast and stable communication between chips according to claim 2, wherein: the SPI communication is checked with CRC 16.
6. The communication device for fast and stable communication between chips according to claim 2, wherein: the sending end is a DSP.
7. The communication device for fast and stable communication between chips according to claim 2, wherein: the receiving end is an FPGA.
CN201910513629.9A 2019-06-14 2019-06-14 Communication method and communication device for rapid, fast and stable communication between chips Active CN110311752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910513629.9A CN110311752B (en) 2019-06-14 2019-06-14 Communication method and communication device for rapid, fast and stable communication between chips

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910513629.9A CN110311752B (en) 2019-06-14 2019-06-14 Communication method and communication device for rapid, fast and stable communication between chips

Publications (2)

Publication Number Publication Date
CN110311752A CN110311752A (en) 2019-10-08
CN110311752B true CN110311752B (en) 2022-04-08

Family

ID=68077191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910513629.9A Active CN110311752B (en) 2019-06-14 2019-06-14 Communication method and communication device for rapid, fast and stable communication between chips

Country Status (1)

Country Link
CN (1) CN110311752B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296998B (en) * 2021-06-22 2024-08-13 中国第一汽车股份有限公司 Data communication abnormality recovery method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1355456A1 (en) * 2002-04-16 2003-10-22 Robert Bosch Gmbh FlexRay communication protocol
CN101576745A (en) * 2009-06-09 2009-11-11 北京航空航天大学 Full digital driving controller of permanent magnetic linear voice coil motor used for direct driving valve
CN103812739A (en) * 2012-11-06 2014-05-21 中国北车股份有限公司 Communication apparatus and communication method between FPGA and DSP
CN104461624A (en) * 2014-12-03 2015-03-25 电子科技大学 Remote upgrading method of near probe measuring module for three-dimensional acoustic logging instrument
CN105183696A (en) * 2015-08-03 2015-12-23 中国计量学院 DSP-based control board
CN105356821A (en) * 2015-11-19 2016-02-24 珠海格力电器股份有限公司 Working method of air conditioner servo driver and servo driver
CN107967226A (en) * 2016-10-20 2018-04-27 国民技术股份有限公司 A kind of integrated circuit and control method of chip chamber rapid communication
CN108983672A (en) * 2018-08-08 2018-12-11 中国科学院长春光学精密机械与物理研究所 A kind of control system applied to high-precision six-freedom degree optical module adjustment mechanism
CN109144932A (en) * 2018-08-03 2019-01-04 中国航空工业集团公司雷华电子技术研究所 A kind of device and method of the quick dynamic configuration FPGA based on DSP

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7348915B2 (en) * 2006-07-19 2008-03-25 Quickfilter Technologies, Inc. Programmable digital filter system
US9276623B2 (en) * 2013-08-20 2016-03-01 Aviacomm Inc. Cost effective multiband RF front-end architecture for mobile applications

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1355456A1 (en) * 2002-04-16 2003-10-22 Robert Bosch Gmbh FlexRay communication protocol
CN101576745A (en) * 2009-06-09 2009-11-11 北京航空航天大学 Full digital driving controller of permanent magnetic linear voice coil motor used for direct driving valve
CN103812739A (en) * 2012-11-06 2014-05-21 中国北车股份有限公司 Communication apparatus and communication method between FPGA and DSP
CN104461624A (en) * 2014-12-03 2015-03-25 电子科技大学 Remote upgrading method of near probe measuring module for three-dimensional acoustic logging instrument
CN105183696A (en) * 2015-08-03 2015-12-23 中国计量学院 DSP-based control board
CN105356821A (en) * 2015-11-19 2016-02-24 珠海格力电器股份有限公司 Working method of air conditioner servo driver and servo driver
CN107967226A (en) * 2016-10-20 2018-04-27 国民技术股份有限公司 A kind of integrated circuit and control method of chip chamber rapid communication
CN109144932A (en) * 2018-08-03 2019-01-04 中国航空工业集团公司雷华电子技术研究所 A kind of device and method of the quick dynamic configuration FPGA based on DSP
CN108983672A (en) * 2018-08-08 2018-12-11 中国科学院长春光学精密机械与物理研究所 A kind of control system applied to high-precision six-freedom degree optical module adjustment mechanism

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
六轴焊锡机器人运动控制器的设计;马永超;《机械设计与制造》;20151031;第1-4页 *
基于DSP和FPGA的六自由度工业机器人运动控制器设计;陈禹希;《中国优秀硕士学位论文全文数据库信息科技辑》;20130831;第1-4小节 *

Also Published As

Publication number Publication date
CN110311752A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
JPS5925536A (en) Power line data transmission system
US20100211190A1 (en) Control system, control method, master device, and control device
CN201562158U (en) Multi-robot synchronous control system
CN105786753A (en) Method and device for data transmission between master and slave devices on I2C bus
CN110311752B (en) Communication method and communication device for rapid, fast and stable communication between chips
CN109582616B (en) Communication system and method based on serial bus
EP3787203A1 (en) Relay device and multi-split control system
CN112147927A (en) Multi-axis motion control system for two-channel bus communication
US20090077275A1 (en) Multiple I/O interfacing system for a storage device and communicating method for the same
CN109104303A (en) A kind of automatic configuration system and method for CAN bus ID
CN104794086A (en) Serial communication safety system and safe serial communication method
US10397081B2 (en) Distributed real-time computer system and method for forcing fail-silent behavior of a distributed real-time computer system
EP3157155A1 (en) Method of controlling inverters
CN103370906B (en) Communication system
CN103095739A (en) Cabinet server system and node communication method thereof
JP2012165360A (en) Redundant data bus system
CN110968022A (en) Programmable logic controller, programmable logic controller system, and control method
CN102088366B (en) Single board information monitoring device and distributed single board information monitoring system
CN109586832B (en) Wireless synchronization method, wireless slave, wireless master and wireless synchronization system
WO2021047339A1 (en) Air conditioner communication method based on single line half duplex communication and air conditioner
CN108370630B (en) Debugging load devices via challenge-response-timing
CN210038540U (en) Driver controller test bench
JPH02311099A (en) Malfunction prevention control system
CN107942645B (en) Control system
CN114162067B (en) Four-foot robot and bus module thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant