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.

ADS8681: Daisy chain in ads8681

Part Number: ADS8681

Hello Dale,

i done the configurations as u suggested given below still getting the same resultsi.e. the only second device output not getting the 1st device output.

spi_write_byte_reg(0X02, 0X01); //device ID reg.
spi_write_byte_reg(0X02, 0X00); //device ID reg.

// Delay(1000);
spi_write_byte_reg(0X0C, 0X00); //range select reg
spi_write_byte_reg(0X0C, 0X00); //range select reg

spi_write_byte_reg(0X05, 0X69); //reset power control reg
spi_write_byte_reg(0X05, 0X69);
//Delay(10000);

spi_write_byte_reg(0X10, 0X00);
spi_write_byte_reg(0X10, 0X00);

//Delay(1000);
spi_write_byte_reg(0X08, 0X00);//SDI control reg
spi_write_byte_reg(0X08, 0X00);

#define WRITE_LSB(reg,data)  (0XD4000000| (reg<<16) |data)

void spi_write_byte_reg(BYTE reg, BYTE val)
{
DWORD reg32bit,i;
reg32bit=reg;
DWORD data = WRITE_LSB(reg32bit,val);
spiWriteCommand(data);

}

DWORD spiWriteCommand(DWORD cmd)
{
DWORD out1,i;
SPICMD2=0x00FA;
SPIDAT2 = (cmd>>16)&0xFFFF;
SPIDAT1=(cmd&0xFFFF);
while((SPISTAT1 & 0x01) == 0x01);

return 0;

}

please tell me if i m making any mistake.