Hi,
I want to implement SPI master and slave to transmit and receive 5 bytes data at the same time,
and I use the following three steps, but there are some questions
(DRA75x_DRA74x_SR2.0_SR1.x_NDA_TRM_vAD)
Table 24-301. MCSPI Global Initialization
Table 24-304. MCSPI Transmit-and-Receive Mode Initialization
Table 24-308. Transmit-and-Receive Procedure – Polling Method
1. in Table 24-308,
Before I put the data into MCSPI_TXx, I had to wait until SPIm.MCSPI_CHxSTAT [2: 0] = 0x3?
(Master and slave made the same program)
2. in Table 24-308,
If I have 5 bytes to transmit and receive, is the following process right? but I can't get SPIm.MCSPI_CHxSTAT [2: 0] = 0x3
(Is Master and Slave set the same?)
=>set byte 1 in MCSPI_TXx
"Wait SPIm.MCSPI_CHxSTAT [2: 0] = 0x3"
=> get byte 1 from MCSPI_RXx
=> "Wait SPIm.MCSPI_CHxSTAT [2: 0] = 0x3"
=>set byte 2 MCSPI_TXx
=>...
PS: clock is 12MHz
thanks.