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.

ADS1247 讀資料問是題

Other Parts Discussed in Thread: ADS1247

目前使用TI-M4對ADS1247在讀資料上有一些問題請教,在DOUT回傳24Bit(MSB-Mid-Byte-LSB)時量到的前二個Byte是一模一樣的,

不管怎麼改變電位差,DOUT回傳前二個Byte是一模一樣的不知問題在哪???

REFP0--2.5v

AIN1-----0~~~2.5

AIN3---GND

以下是我程式的大概流程

Step1   配置register

SPI2_Buffer_Tx[0] = 0x40;    //write (register 0)
 SPI2_Buffer_Tx[1] = 0x03;    // nuber - 1 (4)
 SPI2_Buffer_Tx[2] = 0x0B; //MUX0     
 SPI2_Buffer_Tx[3] = 0x00; //VBIAS
 SPI2_Buffer_Tx[4] = 0x00; //MUX1
 SPI2_Buffer_Tx[5] = 0x06;//0x06; //SYS0  320 SPS
 SPI2_Send_Data(6);
  while(SSIBusy(SSI3_BASE))
         {
         }

Step2  

SPI2_Buffer_Tx[0] = 0x13; //Read Data Once
 SPI2_Send_Data(1);
  while(SSIBusy(SSI3_BASE))
         {
         }

Step3 

 SysCtlDelay(20000);
 SPI2_Send_Data(3); //no operation
 SPI2_RxIdx = 0;
 while(SSIBusy(SSI3_BASE))
          {
          }

附件

綠色線---SCLK

黃色線---DOUT