KUNBUS-IC SPI Slave Application
We are going to setup an KUNBUS-IC EtherCAT Module as SPI Slave mode.
The SPI Master we are using is an Arduino DUE.
We are using the following equipment
A KUNBUS-IC Module (I.e. EtherCAT PR100035)
KIC Evaluation Board (I.e. Ethernet Based, PR100079)
Hardware Setup
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
Instructions
KIC SPI Slave Setup
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
Arduino SPI Master Setup
Use the following code and upload it
SPI Transfer
Here is a SPI transfer with a logic analyzer.
The Slave Select line is high active.
Monitor SSC Input registers
You can monitor the transfer on the KIC. Press “ESC” to update.