I'm doing some preliminary design using the following 16bit ADC:
http://www.ti.com/lit/ds/symlink/ads1158.pdfI'm unable to determine from the datasheet precisely how I need the configure the SPI for my application. I'm going to be using the Auto-Scan feature and configure the ADS1115 to automatically scan 20 of the configurable mux configurations. For my application I don't want to use the DRDY pin and interrupt and immediately. I'd rather poll and read all 20 data points at one time, as I will be dedicating one of the uC cores to this task, and a back-of-the-envelope calculation shows that a continuous loop of reading all of the channel data should meet my throughout requirements with margin.
I believe I need to use "Channel Data Read Command" as described on page 29. However its not clear as to WHICH channel I'll be getting. Typically one would send an address, such as is described in bits 0-3 in the command word. However, for "Channel Data Read Command", these are "don't care". Also, note (1) on this page seems to suggest I can just issue another command and get the other channels (although this might be referring to when you are reading configuration registers).
I want to just send a command (such as 0011 000), then keep clocking 60 bytes to get each of the 20 configured mux configurations ( 3 bytes per channel (1 status, 2 data) X 20 channels). Even if I need to clock in all 29 possible configurations, this fine, I just want a method to get all of the data at once, as opposed to getting one channel at a time. Heck, I can't even figure out how to get one channels data at a time, except for using the "Channel Data Read Direct" method, which had a very good description.
A little assistance would be much appreciated. Thanks