Hi everyone,
I have a question related to SPI communication between Arduino Mega 2560 and TMS320F2808. I am using Arduino as Master(because it can not be used as Slave) and TMS320F2808 as Slave. I made all the necessary hardware level connections and I am sure it is working well. I simply send a word from Arduino to TMS and the model in Simulink simply consists of SPI Receive and SPI Transmit. I simply receive the data and transmit it back to Arduino. This is my purpose but unfortunately there are few problems that I encounter at this point:
-One or more than one bit is not transferred properly because it is lost. For instance if I send out the number 20 in unsigned integer format, it comes back as 10.
-If I send out a 1xN array, the order of the data is also changed. For instance if I send out [1 2 3 4 5] array, it comes back as [5 1 2 3 4].
These problems may be arising from several reasons. Please do not hesitate to reply even if you think your idea has nothing to do with this topic.
Look forward for opinions and help. Thanks.