Other Parts Discussed in Thread: ADS1232
Hello,
I'm starting to use the ads1232. I will use for college work. I want to make a simple digital scale. I'm still not very good at programming and I am in doubt if I'm reading the data correctly. put down the way I'm doing the reading. This form is correct? would have otherwise? I'm using a pic of the family 18f
long read (void) {
Long result = 0;
long b;
b = SPI1_Read (0xff) / / B3
result = b << 8;
b = SPI1_Read (0xff) / / B2
result | = b;
result = result << 8;
b = SPI1_Read (0xff) / / B1
result | = b;
result = result << 8;
b = SPI1_Read (0xff) / / B0
result | = b;
return (result);
}