Guest
#3899584
I'm doing write and read operations from a SPI master. While writing I'm simply writing the 14 bit address followed by read/write followed by 16 bit data. The slave then takes this info and does actual writing operation. But while reading I'll first write to a register in the slave, address followed by read/write bit (& no data or x"0000" because I'm reading). The very next cycle I want data to be avaialable for reading. But the slave takes sometime/cycles to go fetch the data from the address I just wrote to the register. While the slave goes and brings the data for me I want to keep my spi master idle and continue once the data is fetched, so I can read it serially at spi master using a miso line. How can I do this. (I'm using a simple shift register spi to shift and serially transmit 32 bits)