Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

RZ/T1: Adding SPI Communication into the CiA402 sample program

$
0
0

Hello everyone,

currently I'm developing an EtherCAT slave with the CiA402 drive profile on the RSK+ for RZ/T1. There is a sample program (an-r01an3169jj0110-rzt1-ethercat) on the Renesas website which already provides most of the functions I need for work. After a few changes I could realize my project. Now the existing project shall be extended by an SPI communication.  But I have problems realizing my project. The example project with RSPI (r01an2601xx0140-rzt1-rspi), which is provided on the website, seems to be not compatible with the existing project. Also the use of the code generator (e2 Studio) did not lead to the desired outcome. Since I have little experience with uC programming, I ask for help. 

How would I have to modify the RSPI files to include them in my project?
Or is it better to implement an own initialization? Which registers would I have to describe to configure a communication as master? Which functions can I use to read out the received data and which functions can I use to transmit data?

Best regards. 


Viewing all articles
Browse latest Browse all 1583

Trending Articles