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.

  • Resolved

[FAQ] ADS125H02: ADS125H02 Example C Code

Mastermind 38140 points

Replies: 1

Views: 356

Part Number: ADS125H02

Hello,

Does TI offer example C code for the ADS125H02?

Regards,
Collin Wells
Precision ADC Applications

  • Hello,

    TI offers example C code for the ADS125H02 in the tools and software tab of the product folder.  There are links below to the example code along with the tools folder so you can review the other available tools.

    Example C Code:

    Tools and Software:

    A "How to use this code" guide can be found in the "EXAMPLE C CODE README.md" file in the .ZIP file linked above.  Here is some important information about the included modules, taken from the readme file:

    The ADS125H02 precision delta-sigma (ΔΣ) analog-to-digital converter (ADC) communicates using a serial peripheral interface (SPI) to allow for device configuration, control, and data retrieval. To interface with the ADS125‌H02 with a microcontroller (MCU), the firmware or software engineer needs to know how to correctly configure their MCU’s serial peripheral, sequence serial commands, and control the SPI timing of command bytes to the ADC. To assist in this process, this example code is intended to show how to initialize communication with the ADS125‌H02 at a high-level.
    Included modules


    There are two modules included in this example code:
     

    1. ADS125‌H02
      Description: Low-level functions and register map definitions for communicating with the ADS125‌H02.
      Files: ads125‌h02.h, ads125‌h02.c
       

    2. Hardware Abstraction Layer (HAL)
      Description: The HAL provides processor specific functions called by the ADS125‌H02 module.
      Files: hal.h, hal.c
      IMPORTANT: This module will need to be modified to work with your hardware!

     

    Regards,
    Collin Wells
    Precision ADC Applications

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.