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