Hi,
I am using ADS131E08 and I am reading 8ch with default register settings. But I need change Config1 register. I am trying read and write something to config1 Regsiter but I get null in SDO pins. I add add my read code. Is there anyone who can help with the problem?
uint8_t readADS131E08_reg8bit(uint8_t regAdress, uint8_t numRead){ // numRead is number of register to read(byte)-1
//firts send sdatac
ads131_start_low();
ads131_csN_low();
sendSpiADS131(sdatac);
ads131_csN_high();
ads131_start_high();
delay_10us(1);
ads131_csN_low();
delay_10us(1);
sendSpiADS131(regAdress);
sendSpiADS131(numRead);
uint8_t readRegisiter = sendSpiADS131(0x00);
ads131_csN_high();
startContReadMode_ADS131E08();// default mode
return readRegisiter;
}
Thanks