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.

ADS131M02: For my reference, could you please offer me the ADS131M02 driver?

Part Number: ADS131M02

Tool/software:

Please advise me on how to use the DRDY pin for spi interface with the ADS131M02 as I have some questions about it.Please give me the reference code if you have one for this.

  • Hi pavan,

    The /DRDY pin is an active low output that indicates when new conversion data are ready, so you can use the /DRDY signal (falling edge) as an interrupt to your microcontroller. You can send RREG or WREG command to the ADC in your interrupt subroutine code.

    ADS131M02 datasheet has shown the code example, see the section of 9.1.6 Code Example in ADS131M02 datasheet. Also, you can download the example code from the Design & development tab under the product page of ADS131M02.

    SBAC254  ADS131M0x Example C Code

    - Dale

  • I currently use the DRDY pin because I need to run the read register function when the pin is low.I was able to obtain the correct register value by using this.Is the DRDY pin being used correctly?

    if (HAL_GPIO_ReadPin(DRDY_GPIO_Port, DRDY_Pin) == GPIO_PIN_RESET)

    {

    adc_data = Read_ADC_Data(); // Read ADC data

    HAL_Delay(100);

    HAL_GPIO_WritePin(DRDY_GPIO_Port, DRDY_Pin, GPIO_PIN_SET);

    }

  • Hi pavan,

    Timing is always better than code to identify the issue. I'm supporting you for the same ADC with the same issue in your another thread on the E2E forum, let's focus on that thread about all your questions. This thread was closed.

    BR,

    Dale