Hi.
I'm trying to program my ADS1298 and I got a problem with DRDY signal. He's pulsing after the RDATAC (4 ms as expected) and returning to low state. The triggering level is on 1.6V and my scope reads 4V on DRDY pin.
delay_ms(2000); // tpor
CS = 0;
SPIx_Write(0x06); // RESET
CS = 1;
delay_us(20); // 18 tclk
CS = 0;
SPIx_Write(0x11); // SDATAC
CS = 1;
delay_us(5);
CS = 0;
SPIx_Write(0x0A); //STOP
CS = 1;
delay_us(5);
SPIx_Write(0x41); //WREG
SPIx_Write(0x18); //24 values
SPIx_Write(0x86); //CONFIG1
SPIx_Write(0x10); //CONFIG2
SPIx_Write(0xC0); //CONFIG3
all other registers are 0x00, except GPIO (0xF0).
CS = 1;
delay_us(5);
CS = 0;
SPIx_Write(0x08); // START
CS = 1;
delay_us(5);
CS = 0;
SPIx_Write(0x10); // RDATAC
CS = 1;
delay_us(20);
tsclk = 500ns
DVDD=4V
AVDD=3.8V
What did I wrong? DRDY is telling me that new data is ready. But, after that, is DRDY must go to high state after CS = 0? Besides I double checked my INT pin, I predict that he still isn't working properly.
Thanks in advance,
Rhuan.