I can configurate the ads1299 and the DRDY pin is toggel on my frequency I had configurate.
But I read always 0000 0000 even fron the status register.
here the code config part:
output_high(PWDN_ADS); // PIN_A1 //14
output_high(RESET_ADS); // PIN_A0 //13
delay_ms( 1000 );
output_low(CS_ADS);
data_out=wakeup;
spi_xfer(ads1299,data_out);
data_out=sdatac;
spi_xfer(ads1299,data_out);
data_out1=wreg+config1;//0x40+1
data_out1=0x41;
data_out2=0x00;
data_out3=0xB3; //with clockpin 2kHz
spi_xfer(ads1299,data_out1);
spi_xfer(ads1299,data_out2);
spi_xfer(ads1299,data_out3);
//*******************
data_out1=wreg+config2;
data_out2=0x00;
data_out3=0xC0;
spi_xfer(ads1299,data_out1);
spi_xfer(ads1299,data_out2);
spi_xfer(ads1299,data_out3);
//*******************
data_out1=wreg+0x00;
data_out2=0x00;
data_out3=0x01;
spi_xfer(ads1299,data_out1);
spi_xfer(ads1299,data_out2);
spi_xfer(ads1299,data_out3);
output_high(CS_ADS);
delay_us( 500 );
output_low(CS_ADS);
delay_us( 500 );
data_out=rdatac;
spi_xfer(ads1299,data_out,8);
output_high(CS_ADS);
delay_us( 500 );
output_high(START_ADS); // startet
//and here the reading part
output_low(CS_ADS);
for (i=1;i<=27;++i) // BAUD=2600000,
{
data_in_ads[i] =spi_xfer(ads1299,data_in,8);
}
output_high(CS_ADS);