This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS8332EVM: Channel Selection and Data Acquistion

Part Number: ADS8332EVM

Hi,

I'm wondering if I can receive some input with my ADS8332 code.

I've accomplished the basics so far. I can initialize the CFR register, and I can read-back the CFR register great. Some difficulty arises though when I change the ADC channel and read back the data.

I start by setting bit 11 in the CFR register as zero to enable manual channel select, and then call a channel-change function to write the new channel to the ADS8332. The pseudo-code approximately: (1) Write to CFR and initialize CFR with 0b1110-0101-1111-1111, (2) call channel-change function and exchange bits 15:0 as 0x0000 in SPI to select channel zero, (3) send 0xd00000 in SPI to read back the data in 3 bytes including the tag bits and expect the third byte to return the channel tag bits, (4) bit shift the third byte >>4 to have the tag bits in the correct positions.

However, in those three bytes, I get bursts of ones, like 0fe0, ffe0, etc, and no discernible channel number.

Is there anything that you would suggest for assigning the channel and reading the data?

Thank you and kind regards,

Mitchell