[quote userid="571933" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1493469/mspm0g3507-q1-the-spi-communication-cannot-read-the-rxdata-register/5744167#5744167"] Want you need to do is that you need to deal with region 1's data and send more data to TX depending on how many data you want to read back from ADS. That's why rx count and tx count need to follow below sequence [/quote] At this point, my slave currently has only one ADS8688 acquisition chip, and the oscilloscope picture I uploaded is equivalent to 0xA000 in region 1; In region 2 (from bit 17 to bit 32), 0x0000 is sent; I only need to read a piece of content from the slave; [quote userid="571933" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1493469/mspm0g3507-q1-the-spi-communication-cannot-read-the-rxdata-register/5744167#5744167"] Also, for receive function, you also need call SPI_TX32 to receive the data. But you only call SPI_TX32(SpiTxData); once to send command, I didn;t find any other SPI send function. Here is the key point, SPI need to send something, to output SCLK, to let ADS have the clock signal to send ADC data back [/quote] Receive function, need to continue to call SPI_TX32 function to handle?? What's the logic? I use this function to send, sure not to call ah. My send function is triggered by a timer of 1ms. As for what you said later about SPI having to send something to output SCLK, what I want to say is, please take a look at my oscilloscope waveform. My SCLK always has a waveform.
↧