Other Parts Discussed in Thread: ADS1230
Hello Sir,
First, Thank you for the great support..In my previous mail actually i meant "x weight"(some unknown weight approximatly above 1 kg) and not "x wait".[SORRY for the mistake i had made].Unfortunately, i do nt hv osciloscope to view output pulse from ADS1230.Actually in my improved code i m applying 23 SCLK ,when DRDY/DOUT goes low.And this routine continues for " four times",whenever DRDY/DOUT goes low.( i just want to do this to skip the data from DOUT , till the " Digital Filters" get settled and wait for the 5th low pulse from DRDY/DOUT).And i valid the data only after the 5th low pulse from DRDY/DOUT.This routine will only continue, if there is a abrupt change in "input".Is my procedure correct...?...Please help..i m adding my outline of the program routine..thanks IN ADVANCE..............by
Ajith.
PWDN=1; //Power down of ADC
for(;;){ //infinite loop
while(DOUT){ //waiting for DRDY/DOUT to become low,first time
NOP();
}
clock_23pulse( ); //sending 23 dummy SCLK(serial clock)
while(DOUT){ //waiting for DRDY/DOUT to become low,second time
NOP();
}
clock_23pulse( ); //sending 23 dummy SCLK(serial clock)
while(DOUT){ //waiting for DRDY/DOUT to become low,third time
NOP();
}
clock_23pulse( ); //sending 23 dummy SCLK(serial clock)
while(DOUT){ //waiting for DRDY/DOUT to become low,fourth time
NOP();
}
clock_23pulse( ); //sending 23 dummy SCLK(serial clock)
while(DOUT){ //waiting for DRDY/DOUT to become low,fifth time
NOP();
}
data=clock_valid_pulse( ); /// Now the data from DOUT is valid
} //end of the infinite loop