Hello,
I had a question regarding data acquisition from the ADS1298. I'm currently trying to interface a pic with the ADS1298ECGFEPDK via SPI and am only wanting to use channel 3. I know about this formula: tSCLK < (tDR – 4tCLK) / (NBITS × NCHANNELS + 24). However, I wanted to make sure I understood how to set tSCLK. Is it correct to say that because I want to get only channel 3, that NCHANNELS = 3 and NBITS = 24? Also, by setting TSCLK to this value, does this mean that I will get the data in channels 1,2, and 3 (knowing that because I've disabled channels 1 and 2 they should just give 0x0)?
I also wanted to ask a question regarding code. What I currently have on my PIC is after the RDATAC command is sent and 4tCLK cycles have passed, I set a variable called data = SPI2BUF, which should ideally be holding the transmitted data. However, after debugging a few times, I get that data = 0x00, which may be due to the fact that SPI2BUF is shifting the data too quickly. Is there a better way of storing the data from the ADS1298 in a variable?
Thanks,
Noel Teku