We are going to setup an KUNBUS-IC EtherCAT Module as SPI Slave mode.
The SPI Master we are using is an Arduino DUE.
A KUNBUS-IC Module (I.e. EtherCAT PR100035)
KIC Evaluation Board (I.e. Ethernet Based, PR100079)
Connect the KIC Module with the Evaluation Board
Setup the power supply i.e. 3.3 Volts
Connect the CDI RS232 interface with your PC
Run “devmgmt.msc” to open the device manager and see which COM port is used i.e COM4.
Connect the wires from the Evaluation Board to the Arduino Due
Open PuTTy and setup the serial interface connection.
Press "ESC" to update the terminal screen.
Module Information
Interface configuration
SSC Communication
Set SPI Slave Mode
Configure actual selection
SSC SPI Slave Settings - Configure 1
Reset the Module - go back with “ESC” to Interface Configuration
Use the following code and upload it
Here is a SPI transfer with a logic analyzer.
The Slave Select line is high active. |
You can monitor the transfer on the KIC. Press “ESC” to update.
The content by label feature displays related articles automatically, based on labels you choose. To edit options for this feature, select the placeholder below and tap the pencil icon.
|