How use the Arduion as Slave receiving some characters from other devices (SPI)?

Hello Guys,

I want to use Arduino in SPI mode which receive some characters from another device. In my project, the Renesas is master which sends the characters and Arduino is slave which receives the characters. Now, I think the code related to Renesas works correctly, but, the code related to Arduino is wrong.
Please guide me how I should write the code for Arduino as reciever in SPI mode?

Thanks

That no code provided is indeed wrong... ::slight_smile:

But some fun reading: Gammon Forum : Electronics : Microprocessors : SPI - Serial Peripheral Interface - for Arduino