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.

Need help with ADS1299 SPI communication

Other Parts Discussed in Thread: CC2540, ADS1299, CC2541

Hi All,

I am new to the forum and embedded systems, please bare with my newbie question. I am using the ADS1299EEG-FE demonstration kit daughter board (i.e. only the upper board), and wire out its SPI pins (SCLK, /CL, DIN, DOUT, RESET) to connect to a CC2540 development board (CS: P1.2, SCLK:P1.3, MISO P1.4, MOSI P1.5, RESET to VCC, CLKSEL to VCC).

I tried to read device ID with following code modified from Keyfob example:

void accReadReg(uint8 reg, uint8 *pVal)

{
int i;

/*CS = CS_ENABLED;
spiWriteByte(0x06);
CS = CS_DISABLED;

for(i=0;i++;i<1000)
{ ;}*/

CS = CS_ENABLED;
spiWriteByte(0x20|reg); // Write address
spiWriteByte(1); // Write address
spiReadByte(pVal, 0xFF); // Write dummy data and read returned value
CS = CS_DISABLED;
}

and then:

accReadReg(0x00, &test);

 

However, I couldn't get any value from "test", and of course I didn't get correct DOUT signal. SCLK signal's amplitude also is half compare to DIN. What might be the problem? I spent whole day but couldn't figure out.

I got my SPI signal readings as follow:

DIN signal:

/CS signal:

SCLK signal (the amplitude is half of above two signal, is this right? ): 

 

Couldn't get anything from DOUT:

 

My ADS1299 board jumper setting is like this:


 

I've read some previous posts, but still couldn't figure out the problem with my device setup. Is there anything I should pay attention to when using the ADS1299EEG-FE daughter board with CC2541, which I might missed?

Any suggestions would be greatly appreciated!! 

Bo