I am using SPI to send data from an analog front end to a microcontroller and would like to be able to receive the data. Before receiving the data, I send data to the AFE to set certain registers in the AFE and would like to read the received data on the SIn pin on the microcontroller.
I am unable to understand where exactly to do this reading and how to do it. I read that received data is read using the POPR command, but would I do this after having set all the required registers in the AFE? Or while setting the registers? Also, it says that I must read 2 bytes of data at a time on every clock pulse. Does this mean that to read 8 bytes of data, I must use the POPR command 4 times in succession?
I am unable to understand where exactly to do this reading and how to do it. I read that received data is read using the POPR command, but would I do this after having set all the required registers in the AFE? Or while setting the registers? Also, it says that I must read 2 bytes of data at a time on every clock pulse. Does this mean that to read 8 bytes of data, I must use the POPR command 4 times in succession?