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.

ADS1298 24 bit to 16 bit conversion

Other Parts Discussed in Thread: ADS1298

Hi all,

There is an issue that I cannot understand completely. ADS1298 data sheet says that the output digital data is 2's complement MSB first. The sample program for EVM 5515 uses 16 bits for signal operation, hence down samples the signal to 16 bits. The code from the sample code is below:

 ECGDataSample[col] = ECGDataSample[col] >> 4;
ECG_DataSample[col] = (short) ECGDataSample[col];

If I make the operation like above I also observe the ECG signal with my own host program, but what about the sign bit. Because when we crop the 24 bit data by throwing away the first and last 4 bits we loose the sign bit.

What am I missing, 

Thanks in advance.

  • Hi Ekrem,

    I'm not familiar enough with the sample code the for the 5515 to provide you with an immediate answer here.  The code out from the ADS1298 is 2's comp, 24-b MSB first, but the 4-bit shift does not make immediate sense to me either.  Let me look through the original source and I'll see if I can help you track this down.

  • Tom Hendrick said:

    Hi Ekrem,

    I'm not familiar enough with the sample code the for the 5515 to provide you with an immediate answer here.  The code out from the ADS1298 is 2's comp, 24-b MSB first, but the 4-bit shift does not make immediate sense to me either.  Let me look through the original source and I'll see if I can help you track this down.

    Hi Tom,

    I appreciate your help and waiting for your urgent response.

    Regards.