Hello dear Forum
First, I apologize for my English,
I'm still learning it;)
I have a cool project. I hope you can help?
I have a Renesas M16C microcontroller that sends me data via SPI BUS. max. Speed 720 kHz.
I would like to connect an Arduino Uno as a slave, receive the data and send to the serial port (USB).
It‘s a reverse Engineering Project. The Arduino replace a COG LCD Display.
M16C —> (Display „old“) —> (Arduino „new“) —> USB (COM Port) —> Processing 3 —> Draw Display on PC.
I have been searching for so many hours on the internet, even nick gammon website etc. Normal SPI-connection (2 Arduino's) with Master and Slave works great.
My question:
How should I program the Slave? The Arduino should max. receive 132 bytes as a slave, save them in a buffer and then output them with Serial.print (). He does not have to answer the master, only receive.
Do you have any ideas how I can do it? (Buffer Array etc?),
or maybe Code-Example? So that I can learn how such a thing is structured.
thank you and best regards...