HOW TO HANDLE DUMMY DATA FROM SPI
Hi, I would like to ask, I have a SPI setup Full duplex which my STM32f302R8 nucleo board as a master and arduino UNO as my slave.
I send a data 0x0C from master to slave. During transmission, I know that the slave will return a dummy data back to the master.
So, I would like to ask, let say I want the slave to send data 0xF5. How do I handle the dummy data that is sent back during data transmission from master to slave? In order I want to make sure the master will only receive the real data which is 0xF5 from slave.
Example: Master send 0x0C to Slave. Then, slave return dummy data also 0x0C during data transmission. Then, the slave will send 0xF5. So, how do we handle the dummy data before the master receive the true data which is 0xF5?