void ADIS_GetData_Multi(uint16_t* dataIn)
{
uint16_t i;
GPIO_ResetBits(GPIOC, GPIO_Pin_4); // IMU_CS = 0
/* Fill output buffer with data */
SPI1->DR = 0x3E00;
/* Wait for transmission to complete */
while (!SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_TXE));
/* Wait for received data to complete */
while (!SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_RXNE));
/* Wait for SPI to be ready */
while (SPI_I2S_GetFlagStatus(SPI1, SPI_I2S_FLAG_BSY));
/* Return data from buffer */
Delay(9);
//do {
// AD_I=GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_4);
// }while(AD_I==0);
for (i = 0; i < 13; i++)
{
dataIn[i] = SPI_I2S_ReceiveData(SPI1);
}
GPIO_SetBits(GPIOC, GPIO_Pin_4); // IMU_CS = 1
}
//------------------------------------------------------------------------------------------------------------------
Scope data for DIN and Dout are as following
I will be pleased if a help on read sequence in burst mode is available?