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.

RE: ADS1211 Communication

Other Parts Discussed in Thread: ADS1211

I was able to purhase 28 pin PDIP ADS1211 IC's. I am using the Cypress MCU family for interface. Sorry it is not a TI. Anyway I saw some code on the forum forcalibration. Is there any code for a the actual reading the the 24 bit code. I know I should be doing this on my own. But I am confused about the serial data stream. The cypress has a 20 bit but I am seeing small errors?

Thank You,

Philip

 

  • Philip,

    I split the thread from an old topic.  What is usually done with 24-bit data lengths is byte transfers of three bytes to read the data results.  MSB is read first.  The data can be reconstructed into a 32 bit integer in C by shifting the contents of the previously read data and adding the new byte.  If you are reading the data as binary two's complement, then you will need to appropriately sign extend the value of the MSB for the upper byte of the 32 bit integer as a signed value for a negative number.

    Best regards,

    Bob B

  • Thank you for the answer.

    Philip Nielsen