你好:我在用STM32F407的SPI操作ADS1282,我首先进行读寄存器测试,流程是:RESET PIn, 发送SDATAC命令,再发送0x24和0x00(读地址为0x04的寄存器值,它的RESET值为0x03),但是我读出的值却是零,麻烦您有空时帮我看一下,十分感谢!!
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.
还是零,问你一下:当我发送Write SDATAC (0x11) command to stop Read Data Continuous mode,DRDY引脚上应该有脉冲没啊
uint8_t X25042_SendByte(uint8_t byte)
{
uint8_t temp;
/*!< Loop while DR register in not emplty */
while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_TXE) == RESET);
/*!< Send byte through the SPI2 peripheral */
SPI_I2S_SendData(sFLASH_SPI, byte);
while (SPI_I2S_GetFlagStatus(sFLASH_SPI, SPI_I2S_FLAG_RXNE) == RESET);
/*!< Return the byte read from the SPI bus */
temp = SPI_I2S_ReceiveData(sFLASH_SPI);
return temp;
}