Programming the ADS1231 24 bit ADC

I’m having trouble interfacing this chip with my Arduino uno.

I have this so far

int data = 9;
int sclk = 10;
int pdwn = 11;
int clkin = 12;
int SPEED = 13;
void setup() {
  // put your setup code here, to run once:
  pinMode(SPEED, OUTPUT);
  pinMode(clkin, OUTPUT);
  pinMode(data, INPUT);
  pinMode(sclk, OUTPUT);
  pinMode(pdwn, OUTPUT);
  digitalWrite(SPEED, LOW);
  digitalWrite(clkin, LOW);
  digitalWrite(data, HIGH);
  Serial.begin(9600);

}                         

void loop() {
    digitalWrite(sclk, HIGH); //enter standby
    delay(1000);
    digitalWrite(sclk, LOW); //wake up
    //wait for data ready
    if (digitalRead(data) == LOW);
    byte highBYTE = shiftIn(data, sclk, MSBFIRST);//shift all three bytes in
    byte midBYTE  = shiftIn(data, sclk, MSBFIRST);
    byte lowBYTE  = shiftIn(data, sclk, MSBFIRST);
    digitalWrite(sclk, HIGH); // polling pulse
    digitalWrite(sclk, LOW);
    Serial.println(highBYTE);//print all three bytes
    Serial.println(midBYTE);
    Serial.println(lowBYTE);

I get a constant printed value of 255. I think the chips working because if it wasn’t going low to indicated data being ready nothing would print. I have the chip soldered to a breakout board, and connected to a wheat stone bridge. What code would correctly display the voltage values stored in the bits?
Here’s the datasheet http://www.ti.com/lit/ds/symlink/ads1231.pdf

Also this thread was for a similar chip, but his code didn’t work for me either. http://forum.arduino.cc/index.php/topic,128823.0.html

Thanks in advance for your help.

Except, you have

if (digitalread()); //<-- Note semicolon

which does nothing, you want:

if (digitalRead() == LOW)
{    
    // do this if pin is low...
    // read and print
}

Thanks. I changed it and now nothing prints, so I guess the chip isn't working properly.

Hello, Could you share the code for the ads1232 with Arduino loadcell reading, I saw a post that could make reading, need to do a project and I'm having difficulty.

brett_bender: I'm having trouble interfacing this chip with my Arduino uno.

I have this so far

int data = 9;
int sclk = 10;
int pdwn = 11;
int clkin = 12;
int SPEED = 13;
void setup() {
  // put your setup code here, to run once:
  pinMode(SPEED, OUTPUT);
  pinMode(clkin, OUTPUT);
  pinMode(data, INPUT);
  pinMode(sclk, OUTPUT);
  pinMode(pdwn, OUTPUT);
  digitalWrite(SPEED, LOW);
  digitalWrite(clkin, LOW);
  digitalWrite(data, HIGH);
  Serial.begin(9600);

}                        

void loop() {    digitalWrite(sclk, HIGH); //enter standby    delay(1000);    digitalWrite(sclk, LOW); //wake up    //wait for data ready    if (digitalRead(data) == LOW);    byte highBYTE = shiftIn(data, sclk, MSBFIRST);//shift all three bytes in    byte midBYTE  = shiftIn(data, sclk, MSBFIRST);    byte lowBYTE  = shiftIn(data, sclk, MSBFIRST);    digitalWrite(sclk, HIGH); // polling pulse    digitalWrite(sclk, LOW);    Serial.println(highBYTE);//print all three bytes    Serial.println(midBYTE);    Serial.println(lowBYTE);




I get a constant printed value of 255. I think the chips working because if it wasn't going low to indicated data being ready nothing would print. I have the chip soldered to a breakout board, and connected to a wheat stone bridge. What code would correctly display the voltage values stored in the bits? 
Here's the datasheet http://www.ti.com/lit/ds/symlink/ads1231.pdf

Also this thread was for a similar chip, but his code didn't work for me either. http://forum.arduino.cc/index.php/topic,128823.0.html

Thanks in advance for your help.

WHAT IT APPLIES. is the value 255 on the terminal? ads 1232 on a 24 bit converter?