This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS8698: SPI fifo mode canot read complete 18bit adc data from ADS8698

Part Number: ADS8698
Other Parts Discussed in Thread: TMS320F28377D

使用TMS320F28377D 芯片读取TI公司的ADC-ADS8698,采用spi fifo 模式,想读取18bit的数据,却只能读高16bit,LSB的bit0和bit1一直读取为0,请问是什么原因?

读取代码如下:

txBuf_tmp[0] = 0x0000;
txBuf_tmp[1] = 0xFFFF;
txBuf_tmp[2] = 0xFFFF;

SPI_pollingFIFOTransaction(SPIC_BASE, 16U, txBuf_tmp, rxBuf_tmp, 3U, 0);
data = ((uint32_t)rxBuf_tmp[1] << 2);
data_tmp = (rxBuf_tmp[2] >> 14);

注意: data_tmp始终读取为0