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.

SPI configuration issue: STM32F407 with ads1293

Other Parts Discussed in Thread: ADS1293

Urgent, appreciate any feedback.

We are using STM32F407 to control ads1293, here are problems we are facing:

1.   STM32F407 SPI communicates with EEPROM on the same demo board is working.

2. SPI can read all registers(on page 41,42 of ads1293 data sheet), but only retured value "0xFF" 

the following is the code:

 SPI1_ReadWriteByte(0x40);

 

 

SPI1_ReadWriteByte(0x00);

 

u8 SPI1_ReadWriteByte(u8 TxData)

{  

while((SPI1->SR&1<<1)==0);

SPI1->DR=TxData | 0x80;    

while((SPI1->SR&1<<0)==0);  

  return SPI1->DR;           

thank you in advance

Kel