[go: up one dir, main page]

CN112667532B - EtherCAT slave controller and method based on DSP processor - Google Patents

EtherCAT slave controller and method based on DSP processor Download PDF

Info

Publication number
CN112667532B
CN112667532B CN202011436712.XA CN202011436712A CN112667532B CN 112667532 B CN112667532 B CN 112667532B CN 202011436712 A CN202011436712 A CN 202011436712A CN 112667532 B CN112667532 B CN 112667532B
Authority
CN
China
Prior art keywords
slave controller
interface
ethercat slave
dsp processor
ethercat
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
CN202011436712.XA
Other languages
Chinese (zh)
Other versions
CN112667532A (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.)
Beijing Institute of Radio Measurement
Original Assignee
Beijing Institute of Radio Measurement
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 Beijing Institute of Radio Measurement filed Critical Beijing Institute of Radio Measurement
Priority to CN202011436712.XA priority Critical patent/CN112667532B/en
Publication of CN112667532A publication Critical patent/CN112667532A/en
Application granted granted Critical
Publication of CN112667532B publication Critical patent/CN112667532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

本发明公开了一种基于DSP处理器的EtherCAT从站控制器及通信方法。该从站控制器包括:DSP处理器包括:与所述从站控制器连接的第一接口;以及至少三个与EtherCAT从站控制器连接的中断接口;所述EtherCAT从站控制器包括:与所述第一接口连接的第二接口;其中,DSP处理器配置为通过所述中断接口接收所述EtherCAT从站控制器获取的来自外部设备的请求信号,并根据所述请求信号通过所述第一接口与所述EtherCAT从站控制器进行数据交互。本发明实施例利用DSP处理器的第一接口与EtherCAT从站控制器进行连接,能够高效地进行DSP处理器与EtherCAT从站控制器之间的数据传输,EtherCAT从站控制器通过多个中断接口与DSP处理器进行同步信号的传输,有效提高信号传输效率,实现低成本、通用性强以及可配置性高的从站控制器。

The present invention discloses an EtherCAT slave controller and communication method based on a DSP processor. The slave controller comprises: the DSP processor comprises: a first interface connected to the slave controller; and at least three interrupt interfaces connected to the EtherCAT slave controller; the EtherCAT slave controller comprises: a second interface connected to the first interface; wherein the DSP processor is configured to receive a request signal from an external device obtained by the EtherCAT slave controller through the interrupt interface, and to perform data interaction with the EtherCAT slave controller through the first interface according to the request signal. The embodiment of the present invention utilizes the first interface of the DSP processor to connect with the EtherCAT slave controller, and can efficiently perform data transmission between the DSP processor and the EtherCAT slave controller. The EtherCAT slave controller transmits synchronization signals with the DSP processor through multiple interrupt interfaces, effectively improving the signal transmission efficiency, and realizing a low-cost, highly versatile and highly configurable slave controller.

Description

EtherCAT slave station controller and method based on DSP processor
Technical Field
The present invention relates to the field of drive controllers. And more particularly, to an EtherCAT slave station controller based on a DSP processor and a communication method.
Background
On the interfaces of modern servo drive controllers, most of the external interfaces of the controllers comprise EtherCAT interfaces. However, there are problems in that the price in the market is relatively high and the implementation is diverse. One is an architecture using a controller plus an EtherCAT slave station controller, and the other is implemented by using a special type slave station controller. The cost of the first mode is relatively low, mainly depends on the cost price of the adopted controller and the EtherCAT slave station controller, but the model of the slave station controller adopted by manufacturers is different, so that great difficulty is brought to the design of the universal driving controller. The second approach is very costly and difficult to implement. Therefore, in either way, it is very difficult to design a generalized drive controller.
Therefore, a new EtherCAT slave station controller and communication method based on DSP processor are needed.
Disclosure of Invention
In order to achieve the above purpose, the invention adopts the following technical scheme:
The first aspect of the present invention provides an EtherCAT slave station controller based on a DSP processor, wherein the DSP processor comprises: a first interface connected to the slave station controller; and
At least three interrupt interfaces connected with the EtherCAT slave station controller; the EtherCAT slave station controller includes: a second interface connected to the first interface;
The DSP processor is configured to receive a request signal from the external equipment, which is acquired by the EtherCAT slave station controller, through the interrupt interface, and perform data interaction with the EtherCAT slave station controller through the first interface according to the request signal.
Further, the DSP processor is further configured to:
and configuring the EtherCAT slave station controller through the first interface to perform initialization setting.
Further, the DSP processor is further configured to obtain data to be read of the EtherCAT slave station controller corresponding to the request signal according to the request signal, and output the data to be read to the EtherCAT slave station controller.
Further, the EtherCAT slave station controller is further configured to acquire a synchronization signal from an external device, and output the synchronization signal to the DSP processor through the interrupt interface;
The DSP is further configured to latch the data to be read according to the synchronous signal, and output the latched data to be read in response to a next request signal acquired by the EtherCAT slave station controller.
Further, the DSP processor is a DSP28335 processor.
Further, the first interface is XINTF interfaces.
Further, the EtherCAT slave station controller is a LAN9252 slave station controller.
Further, the EtherCAT slave station controller further includes: a power interface connected with a power supply, an i2c interface connected with a memory and an external network interface connected with external equipment.
A second aspect of the present invention provides a method of communicating using the above-described secondary station controller, comprising:
Receiving a request signal of an external device to output a synchronization signal;
and carrying out data interaction with the EtherCAT slave station controller according to the synchronous signal.
Further, before receiving the request signal of the external device through the interrupt interface, the method further includes: and configuring the EtherCAT slave station controller through the first interface to perform initialization setting.
The beneficial effects of the invention are as follows:
Aiming at the existing problems, the invention provides an EtherCAT slave station controller based on a DSP processor, the first interface of the DSP processor is utilized to be connected with the EtherCAT slave station controller, the data transmission between the DSP processor and the EtherCAT slave station controller can be efficiently carried out, the EtherCAT slave station controller carries out synchronous signal transmission with the DSP processor through a plurality of interrupt interfaces, the signal transmission efficiency is effectively improved, and the slave station controller with low cost, strong universality and high configurability is realized. The EtherCAT slave station controller based on the DSP has the characteristics of high universality and low cost.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic diagram of an EtherCAT slave station controller based on a DSP processor according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a framework of an interrupt interface of a LAN9252 slave controller according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a framework of XINTF interfaces of a DSP28335 processor according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an external network interface of a DSP28335 processor according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the present invention, the present invention will be further described with reference to preferred embodiments and the accompanying drawings. Like parts in the drawings are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and that this invention is not limited to the details given herein.
As shown in fig. 1, one embodiment of the present invention discloses an EtherCAT slave station controller based on a DSP processor, the DSP processor comprising: a first interface connected to the slave station controller; and
At least three interrupt interfaces connected with the EtherCAT slave station controller;
the EtherCAT slave station controller includes: a second interface connected to the first interface;
The DSP processor is configured to receive a request signal from the external equipment, which is acquired by the EtherCAT slave station controller, through the interrupt interface, and perform data interaction with the EtherCAT slave station controller through the first interface according to the request signal.
In this embodiment, the first interface of the DSP processor is connected to the EtherCAT slave station controller, so that data transmission between the DSP processor and the EtherCAT slave station controller can be efficiently performed, and the EtherCAT slave station controller performs synchronous signal transmission with the DSP processor through a plurality of interrupt interfaces, so that signal transmission efficiency is effectively improved, and a slave station controller with low cost, strong universality and high configurability is realized.
In some optional implementations of this embodiment, the DSP processor is further configured to obtain, from the request signal, data to be read by the EtherCAT slave station controller corresponding to the request signal, and output the data to be read to the EtherCAT slave station controller.
In this embodiment, the EtherCAT slave station controller acquires the data to be read corresponding to the request signal, and has fast data transmission speed and high efficiency.
In some optional implementations of this embodiment, the EtherCAT slave station controller is further configured to obtain a synchronization signal from an external device, and output the synchronization signal to the DSP processor through the interrupt interface;
The DSP is further configured to latch the data to be read according to the synchronous signal, and output the latched data to be read in response to a next request signal acquired by the EtherCAT slave station controller.
In the embodiment, the synchronous signal is rapidly output from the EtherCAT slave station controller to the DSP processor through three interrupt interfaces, so that the cost is low and the configurability is high.
In one specific example, fig. 2 shows a schematic diagram of the framework of the interrupt interface of the LAN9252 slave controller, through which pins 18 and 34 acquire SYNC0 synchronization signals from the DSP28335 processor for transmission of data to be read.
In a specific example, fig. 4 is a schematic diagram of an interrupt interface of the DSP28335 processor, through which a synchronization signal and a request signal are transmitted.
In some alternative implementations of the present embodiment, the DSP processor is a DSP28335 processor.
In some optional implementations of this embodiment, the first interface is a XINTF interface. In one specific example, the XINTF interface of the DSP28335 processor is shown in fig. 3.
In some alternative implementations of this embodiment, the EtherCAT slave station controller is a LAN9252 slave station controller.
In this embodiment, the DSP288335 processor is a general control processor in the market, which has the advantages of low cost and abundant peripheral resources, and the LAN9252 slave station controller can adapt to the EtherCAT communication interface in the market. Therefore, the present embodiment connects to the LAN9252 slave station controller through the XINTF interface (custom peripheral parallel interface) of the DSP28335 processor, which realizes efficient data transmission and has extremely high configurability and versatility.
In some optional implementations of this embodiment, the EtherCAT slave station controller further includes: a power interface connected with a power supply, an i2c interface connected with a memory and an external network interface connected with external equipment.
In one specific example, as shown in FIG. 1, the power interface is connected to the power supply of the EtherCAT slave controller, and the i2c interface interfaces with EEPROM memory. The EEPROM memory is used to store configuration information of the EtherCAT slave station controller, for example: device ID, interrupt time, device number, etc.
The process of communication by the slave station controller of this embodiment is as follows:
S10, the DSP processor configures the LAN9252 slave station controller through XINTF interface to perform initialization setting. The initialization includes configuring the device ID, device identification, communication period, mailbox identification, etc. of the EtherCAT slave station controller. In one specific example, configuration information for the initialization settings is stored in EEPROM memory that interfaces with LAN9252 slave station controller i2 c.
S20, waiting for an IRQ request signal after the initialization configuration is completed, and obtaining the IRQ request signal of external equipment by the LAN9252 from the station controller through an external network port interface and outputting the IRQ request signal to the DSP processor through an interrupt interface;
The DSP28335 processor reads the data to be read in the LAN9252 slave station controller corresponding to the IRQ request signal through the XINTF interface according to the request signal, and outputs the data to be read to the LAN9252 slave station controller.
S40, the LAN9252 slave station controller obtains SYNC0 synchronous signals of external equipment through an external network port interface, and outputs the SYNC0 synchronous signals to the DSP28335 processor through an interrupt interface;
and S50, the DSP28335 processor latches the data to be read according to the SYNC0 synchronizing signal and outputs the latched data to be read according to a next IRQ request signal acquired by the LAN9252 from the station controller, so that the whole communication process is realized.
The first interface of the DSP processor is connected with the EtherCAT slave station controller, so that data transmission between the DSP processor and the EtherCAT slave station controller can be efficiently performed, the DSP processor performs signal transmission with external equipment through a plurality of interrupt interfaces, the signal transmission efficiency is effectively improved, and the slave station controller with low cost, strong universality and high configurability is realized. The EtherCAT slave station controller based on the DSP has the characteristics of high universality and low cost.
Corresponding to the EtherCAT slave station controller based on the DSP processor provided in the present embodiment, a second embodiment of the present invention further provides a method for performing communication by using the EtherCAT slave station controller based on the DSP processor, where the method includes:
configuring the EtherCAT slave station controller through the first interface to perform initialization setting;
And receiving a request signal of external equipment through the interrupt interface, and carrying out data interaction with the EtherCAT slave station controller through the first interface according to the request signal.
In the communication process, the first interface of the DSP processor is connected with the EtherCAT slave station controller, so that data transmission between the DSP processor and the EtherCAT slave station controller can be efficiently carried out, the EtherCAT slave station controller carries out synchronous signal transmission with the DSP processor through a plurality of interrupt interfaces, the signal transmission efficiency is effectively improved, and the slave station controller with low cost, strong universality and high configurability is realized. The EtherCAT slave station controller based on the DSP has the characteristics of high universality and low cost.
It should be understood that the foregoing examples of the present invention are provided merely for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention, and that various other changes and modifications may be made therein by one skilled in the art without departing from the spirit and scope of the present invention as defined by the appended claims.

Claims (8)

1.一种基于DSP处理器的EtherCAT从站控制器,其特征在于,1. An EtherCAT slave controller based on a DSP processor, characterized in that: DSP处理器包括:与所述从站控制器连接的第一接口;以及The DSP processor comprises: a first interface connected to the slave station controller; and 至少三个与EtherCAT从站控制器连接的中断接口;所述EtherCAT从站控制器包括:与所述第一接口连接的第二接口;at least three interrupt interfaces connected to the EtherCAT slave controller; the EtherCAT slave controller comprises: a second interface connected to the first interface; 其中,DSP处理器配置为通过所述中断接口接收所述EtherCAT从站控制器获取的来自外部设备的请求信号,并根据所述请求信号通过所述第一接口与所述EtherCAT从站控制器进行数据交互;The DSP processor is configured to receive a request signal from an external device acquired by the EtherCAT slave controller through the interrupt interface, and perform data exchange with the EtherCAT slave controller through the first interface according to the request signal; 所述DSP处理器进一步配置为根据所述请求信号获取EtherCAT从站控制器的对应于所述请求信号的待读取数据,以及输出所述待读取数据至EtherCAT从站控制器;The DSP processor is further configured to obtain the to-be-read data corresponding to the request signal of the EtherCAT slave controller according to the request signal, and output the to-be-read data to the EtherCAT slave controller; 所述EtherCAT从站控制器还配置为获取来自外部设备的同步信号,并通过所述中断接口输出至所述DSP处理器;The EtherCAT slave controller is also configured to obtain a synchronization signal from an external device and output it to the DSP processor through the interrupt interface; 所述DSP处理器还配置为根据所述同步信号锁存所述待读取数据,以及响应于所述EtherCAT从站控制器获取的下一请求信号输出所述锁存后的待读取数据。The DSP processor is further configured to latch the data to be read according to the synchronization signal, and output the latched data to be read in response to a next request signal obtained by the EtherCAT slave controller. 2.根据权利要求1所述的从站控制器,其特征在于,所述DSP处理器还配置为:2. The slave station controller according to claim 1, characterized in that the DSP processor is further configured as: 通过所述第一接口配置所述EtherCAT从站控制器以进行初始化设置。The EtherCAT slave controller is configured through the first interface to perform initialization settings. 3.根据权利要求1所述的从站控制器,其特征在于,所述DSP处理器为DSP28335处理器。3. The slave station controller according to claim 1 is characterized in that the DSP processor is a DSP28335 processor. 4.根据权利要求1所述的从站控制器,其特征在于,所述第一接口为XINTF接口。4 . The slave station controller according to claim 1 , wherein the first interface is an XINTF interface. 5.根据权利要求1所述的从站控制器,其特征在于,所述EtherCAT从站控制器为LAN9252从站控制器。5 . The slave controller according to claim 1 , wherein the EtherCAT slave controller is a LAN9252 slave controller. 6.根据权利要求1所述的从站控制器,其特征在于,所述EtherCAT从站控制器还包括:与电源连接的电源接口、与存储器连接的i2c接口以及与外部设备连接的外部网口接口。6. The slave controller according to claim 1, characterized in that the EtherCAT slave controller further comprises: a power supply interface connected to a power supply, an i2c interface connected to a memory, and an external network port interface connected to an external device. 7.一种利用如权利要求1-6中任一项所述的从站控制器进行通信的方法,其特征在于,包括:7. A method for communicating using a slave controller according to any one of claims 1 to 6, comprising: 接收外部设备的请求信号以输出同步信号;receiving a request signal from an external device to output a synchronization signal; 根据所述同步信号与所述EtherCAT从站控制器进行数据交互。Data is exchanged with the EtherCAT slave controller according to the synchronization signal. 8.根据权利要求7所述的方法,其特征在于,所述通过所述中断接口接收外部设备的请求信号之前还包括:通过所述第一接口配置所述EtherCAT从站控制器以进行初始化设置。8 . The method according to claim 7 , characterized in that before receiving the request signal of the external device through the interrupt interface, it also includes: configuring the EtherCAT slave controller through the first interface to perform initialization settings.
CN202011436712.XA 2020-12-11 2020-12-11 EtherCAT slave controller and method based on DSP processor Active CN112667532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011436712.XA CN112667532B (en) 2020-12-11 2020-12-11 EtherCAT slave controller and method based on DSP processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011436712.XA CN112667532B (en) 2020-12-11 2020-12-11 EtherCAT slave controller and method based on DSP processor

Publications (2)

Publication Number Publication Date
CN112667532A CN112667532A (en) 2021-04-16
CN112667532B true CN112667532B (en) 2024-11-12

Family

ID=75401822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011436712.XA Active CN112667532B (en) 2020-12-11 2020-12-11 EtherCAT slave controller and method based on DSP processor

Country Status (1)

Country Link
CN (1) CN112667532B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202282789U (en) * 2011-08-24 2012-06-20 上海三一精机有限公司 SOE (SERCOS OVER EtherCAT) communication conversion card for servo driver
CN103095537A (en) * 2012-12-28 2013-05-08 武汉华中数控股份有限公司 Numerical control device capable of concurrently controlling two-class industrial Ethernet bus slave station equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1561491A (en) * 2001-09-27 2005-01-05 皇家飞利浦电子股份有限公司 Bus system and bus interface
KR102805364B1 (en) * 2017-01-13 2025-05-12 삼성전자주식회사 Application Processor and Integrated Circuit Including Interrupt Controller
CN110568806B (en) * 2019-10-25 2022-05-06 上海电气集团股份有限公司 Servo driver and servo driving system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202282789U (en) * 2011-08-24 2012-06-20 上海三一精机有限公司 SOE (SERCOS OVER EtherCAT) communication conversion card for servo driver
CN103095537A (en) * 2012-12-28 2013-05-08 武汉华中数控股份有限公司 Numerical control device capable of concurrently controlling two-class industrial Ethernet bus slave station equipment

Also Published As

Publication number Publication date
CN112667532A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
WO2017084400A1 (en) Nvme networked storage implementation method, terminal, server, and system
CN107209739A (en) Voltage mode and current-mode device enumeration
CN106959935B (en) Method compatible with I2C communication and IPMB communication
CN118915689A (en) Test method, test system, test equipment and readable storage medium
WO2016127722A1 (en) Modbus-mechatrolink iii protocol conversion device and protocol conversion method therefor
CN112199317B (en) Bridging system and bridging method for RISCV processor to access Flash memory
CN112667532B (en) EtherCAT slave controller and method based on DSP processor
CN104102233A (en) Single-chip microcomputer-based pan-tilt control device
CN110209358B (en) A method for improving the storage speed of NVMe devices based on FPGA
CN102929828B (en) Support data transmission method and the device of standard and non-standard I 2C interface simultaneously
CN106656707B (en) Stepping motor subdivision control system
CN109407574B (en) Multi-bus selectable output control device and method thereof
CN119011331A (en) Data transmission method and system of EtherCAT coupling slave station
CN111104359B (en) Access method and device for baseboard management controller
CN108563159A (en) A kind of system for controlling current transformer of wind-driven generator device
CN116155843B (en) A PYNQ-based pulse neural network chip data communication method and system
CN114996196B (en) I2C communication drive circuit, micro display chip and electronic equipment
CN211319204U (en) IP core capable of freely converting multiple encoder protocols based on FPGA
CN115904844A (en) UART simulation model for printing BOOT information and working method thereof
US20240281050A1 (en) Avs system, method and apparatus, and device and storage medium
CN103218334A (en) Computer peripheral cascade device based on USB (Universal Serial Bus) and RS485 bus
CN209265223U (en) A serial/parallel conversion interface processing board supporting secondary development
CN109582621B (en) Expansion system and method for peripheral interface of servo driver
CN104317688A (en) Battery state detection method
CN215452778U (en) Optical fiber drive circuit and variable frequency controller

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