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.

How can I select data channel of ads1298?

Other Parts Discussed in Thread: ADS1298

 

Hi

I want to get ECG signal by using ads1298.

 I have a lot of trouble to get the signal. I try SPI by using  atmega8 and ads1298.

Atmega is the master and ads1298 is the slave.  Here is my avrstudio code sequence.

This codes are put in the interrupt space.

( \reset =0 -> reset=1, \PWEN=1 -> SDATAC -> Stop -> wreg(write registers) -> START -> RDATAC -> send the dummy 0x00 to the ads1298 )

 

Here comes my questions

1.  I connected DRDY on the atmega8 GPIO pin(input) . Is that OK? but I could not find DRDY signal of ads1298 on the atmega8.  How can I fix the codes or hardware to find the DRDY signal ??

 

2. I just want to get the signal of CH1,CH2,CH3 (to get the lead1,2) not  all 8 Channels/ How can I select the desired signals?

 

3. This chip's datas are 24bit. So I get the data like this

t1= SPDR & 0xFF, t2= SPDR & 0xFF, t3= SPDR & 0xFF;

data= (t1*256*256)+(t2*256)+(t3);

Is that reasonable??

 

4. Please tell me the right sequence to get the ECG signal to use common electrodes. Page 70 on the datasheet is right??

 

Please give me any advices T_T. Thank you

 

  • Hi Joonghoon,

    I would recommend reviewing the details on the SPI interface of the ADS1298 on page 31 of the data sheet. It explains DRDY functionality there. If you are only interested in CH1-3 of data, you can stop reading after channel 3 is clocked out and wait for the next set of new data. Page 78 of the data sheeet will show an example command sequence for configuration and data retrieval.

    Regards,

    Tony Calabria

    Regards,

    Tony Calabria