Other Parts Discussed in Thread: HALCOGEN
Hi, all. I am working on the Microcontroller access the Micro SD card. And I have 2 questions :
1. This is a general SPI question, please check whether my understanding is correct for this board :
SOMI is pulled high during the SIMO transmission. Slave is supposed to transmit its data after the SIMO is end. Master should generate extra clocks to allow slave transmit its data. Is this correct?
2. For the MIBSPI
If slave transmit back multiple bytes of data, say, 6 bytes, then, master is supposed to generate 6 * 8 = 48 clocks after SIMO ends. However, when I read the SPI module, the received data goes to RX-BUF and SPI-BUF, which are just 4 bytes. I know MIBSPI has a RAM area that stores data, we could access it through TG start address. But I think it is only the transmit data, not the received data. Where does received data go? And how to access?
Thanks for patient.