I have recently ordered 2 LTC2499 24 bit ADC's. I should receive them shortly but I need help understanding how to convert the output, binary manipulation is not my strong point. On page 16 of the datasheet it gives the output format of the reading as 4 bytes (total of 32 bit numbered 31 to 0). Bit 31 is the sign bit and I know how to find out if its value (byte1 & 0x80 == sign). Bit 30 is described as the MSB but is not part of the 24 bit result, which means bits 29 to bit 6 are the 24 bit result and bits 5 to 0 are ignored. So after I get the sign how do I properly clear the up bits that are not needed and then properly read the value. The other catch is that the sheet says the result is in binary two's compliment, which just confused me even more when I looked up what that meant. Any help would be greatly appreciated in learning how to convert this value.
Ryan MickMember Since 05 Jan 2011
Offline Last Active Jul 31 2013 03:35 AM
- Group Members
- Active Posts 36
- Profile Views 5134
- Member Title Advanced Member
- Age 50 years old
- Birthday October 5, 1969
Ryan Mick hasn't added any friends yet.