Synchronized SPI communication

I am trying to implement interrupt based SPI communication between two Atmel microcontrollers. The data has to be transmitted from slave to master.

In master i continuously sends 0xff to the slave and master expects data from slave on each transfer.

char SPI_MasterTransfer(char cData) { uint8_t a; PORTB &= ~(_BV(PB4)); // Slave select a = SPDR; SPDR = cData; while(!(SPSR & (1

Reply to
Vivek B
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.