Hello,
I am currently using the PIC32MX795F512L that is on a designed board to connect an ADS1259 to it via SPI. My question is that on Figure 61 on page 31 of the ADS1259 datasheet (http://www.ti.com/lit/ds/symlink/ads1259.pdf), it says that I need to send the byte 0x12 to start the read mode. However, I couldn't find the section where it states specifically what I need to do after that to retrieve the data. My initial impression is that I have to send out 0x00 to in order to keep the clock going. Also, assuming that it is correct to write 0x00 to keep the clock going, would the sequence in storing the data be something like this:
write 0x12
read byte (throw away)
write 0x00
datamsb = read byte
write 0x00
datamid = read byte
write 0x00
datalsb =read byte
When I tried this particular sequence, it got locked up in trying to store the bytes I'm reading so I was wondering if anyone could shed some light on this. Thank you.
EDIT:
SpiChnPutC(1,0x41); // Write 0100 0001 Write, Reg 2
SpiChnPutC(1,0x01); // Write 0000 0001 (2 bytes) -1
SpiChnPutC(1,0x00); // Flag Checksum 0 Sinc
SpiChnPutC(1,0x20); // last 3 bits are for the data rate (000 = 10 SPS)
I am also having trouble setting datarates 10SPS,16.6SPS,50SPS,60SPS, and 400 SPS. However, the ADC toggles the data line at 1200SPS,3600SPS, and 14400SPS when sent a start 0x08 command. I was wondering if anyone else had issues with lower data rates.