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.

ADS1259

Other Parts Discussed in Thread: ADS1259, ADS1256

//the ADS1259 config data
//===========================================
#define CONFIG0 0X04 //enable internal reference bias, enable SPI timeout
#define CONFIG1 0X02 //disable out of range flag, disable CHKSUM, sinc1 fiter, internal reference, no start delay
#define CONFIG2 0X33 //internal osc, syncout enable, P control enable, 60 SPS
#define OFC0 0X0
#define OFC1 0X0
#define OFC2 0X0
#define FSC0 0X0
#define FSC1 0X0
#define FSC2 0X0

void InitADS1259(void)
{
INT32U i;
SPI0Write(ADS1259_CMD_SDATAC); //RDATAC must cancel before any writing register cmd
SPI0Write(ADS1259_CMD_STOP);
SPI0Write(ADS1259_CMD_RESET); //reset the ads1259
for(i=0; i <7200; i++){}
SPI0Write(ADS1259_CMD_SDATAC); //stop read data continuous mode
SPI0Write(ADS1259_CMD_WREG | ADS1259_ADDR_CFG0);
SPI0Write(8); //write 9 registers
SPI0Write(CONFIG0);
SPI0Write(CONFIG1);
SPI0Write(CONFIG2);
SPI0Write(OFC0);
SPI0Write(OFC1);
SPI0Write(OFC2);
SPI0Write(FSC0);
SPI0Write(FSC1);
SPI0Write(FSC2);
}

These my  initialization code,  Pulse Control Mode,  Stop Continuous Read Data Mode.

Here is my operation steps:

send Start command or set the start pin High

wait until the failing edge of the DRDY pin.

send RDATA command

read  conversion result.(24 bits).

I have capured the wave of  the  spi wire and  the command, they are all right.

I can make sure all the initialization code correctly.

Could you post me a example soon.

Thank you !

jihanbang1314@126.com

  • Hello Jihanbang,

    Below is a link for code composer that may be helpful.  They are not specifically written for the ADS1259 device, but I think you will find them useful when developing your code.  It includes examples for other Delta- Sigma Converters such as the ADS1256.

    Thank you and Best Regards,

    Luis

    http://e2e.ti.com/support/data_converters/precision_data_converters/w/design_notes/various-code-examples-for-precision-data-converters.aspx

  • Is there any problem in my steps?

  • Hello Hbang,

    I found some settings that are different to your commented configuration description.

    The CONFIG0 register is set to X04 that will disable the SPI timeout (not a problem but it does not agree with your commented description).  The CONFIG1 register is set to X02 which will set the start delay to 128 tclk.

    You do not need to write to the OFC and FSC registers unless you are performing a calibration.  The calibration procedure is shown on page 25-27 of the datasheet.  I notice that you are writing to the FSC register a value that is different to the default value; you may consider not writing to this register unless you are trying to perform a full-scale calibration.

    Thank you and Best Regards,

    Luis

    The FSC register 'default" value is:

    FSC0;  00000000b

    FSC1: 00000000b

    FSC2: 01000000b