I'm writing my firmware to control the ADS1158 and have a question regarding reading the channel data. It appears that there are 3 commands to do this, and maybe I missed the section on what each actually does and how? But if someone could shed some light on this, I'd appreciate it.
The command byte shows that command 000, 001, and 111 all read the channel data.
The instructions say that command 001 with the MULT bit set, the last 4 bits are "don't care" and 32 total SCLK cycles sent will give back channel data- which channel? If I send 24*15 more SCLK cycles, will it return all channels? Or is this just checking to see if data is ready, and on which channels it is available? A little confusing the way it's worded in the datasheet.
Commands 000 and 111 both are listed as "Channel Data Read Direct" = so do I set MULT = 0 and A3:A0 are the direct channel read?
I need to set up two functions in my code - one that will read all channels, and one that will read the individually specified channel. If someone could give me an example of which commands/data to send to the ADC, that would be awesome!
Thanks