Quantcast
Viewing all articles
Browse latest Browse all 27723

Forum Post: ADS122C04: RDATA command returns 40 bits instead of 24

Part Number: ADS122C04 Hi All, I'm having a problem with the ADS122C04 when I attempt to read back a conversion result. Basically what I'm finding is that I have to read out 5 bytes instead of the 3 bytes I would expect for a 24-bit result. If I only read 3 bytes after giving the RDATA command then my next result is corrupted because it contains the 2 "left-over" bytes. I have found work-arounds but I would like to understand what is the source of the two extra bytes. My conversion result is good as long as I always read out all five bytes and only use the first 3. I know that there are some features on the part that can cause extra bytes to appear in the output (CRC, data-count, etc.) but I have all of those features turned off. Here are my configuration register values: Reg0 = 0x70, Reg1 = 0x20, Reg2 = 0x00, Reg3 = 0x00 Here is the sequence of commands that I'm giving the ADC: 1. RESET (0x06) 2. WREG (0x40, 0x44, 0x48, 0x4D) This is as a single I2C frame that alternates between command and register data. 3. START (0x08), then wait for 100mS 4. RDATA (0x10), as command write and then a I2C read of the result Thanks for any help you can provide.

Viewing all articles
Browse latest Browse all 27723

Trending Articles