while( TM7705_BUSY );
SPI_Cmd(ENABLE);
while (SPI_GetFlagStatus(SPI_FLAG_RXNE) == RESET)
{
}
ad_data_temp[0] = SPI_ReceiveData();
while (SPI_GetFlagStatus(SPI_FLAG_RXNE) == RESET)
{
}
ad_data_temp[1] = SPI_ReceiveData();
while (SPI_GetFlagStatus(SPI_FLAG_RXNE) == RESET)
{
}
ad_data_temp[2] = SPI_ReceiveData();
while (SPI_GetFlagStatus(SPI_FLAG_RXNE) == RESET)
{
}
ad_data_temp[3] = SPI_ReceiveData();
SPI_Cmd(DISABLE);
TM7705_CS(DISABLE)
|