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] ADS1258: ADS1258 Example C Code

Part Number: ADS1258

Hello,

Does TI offer example C code for the ADS1258?

Regards,
Collin Wells
Precision ADC Applications

  • Hello,

    TI offers example C code for the ADS1258 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.

    This code example also comes with a unit test file which is an optional module that may be included in projects to test the example code functionality.

    Example C Code:

    Tools and Software:

    A "How to use this code" guide can be found in the "README.md" file.  Here is some important information and included modules:

    The [ADS1258](www.ti.com/.../ADS1258) 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 ADS1258 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 ADS1258 at a high-level.

    Included modules
    ----------------

    There are three modules included in this example code:

    1.  **`ADS1258`**

     *Description:* Low-level functions and register map definitions for communicating with the ADS1258.
     
     *Files: ads1258.h, ads1258.c*

    2.  **`Hardware Abstraction Layer (HAL)`**

     *Description:* The HAL provides processor specific functions called by the `ADS1258` module.
     
     *Files: hal.h, hal.c*
     
     ***IMPORTANT**: This module will need to be modified to work with your hardware!*

    3. **`Unit Tests`**

     *Description:* This is an optional module that you may include in your project during development to test example code functionality.

     *Files: unit_tests.h, unit_tests.c*

    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.