Quantcast
Channel: Data converters
Viewing all articles
Browse latest Browse all 91230

Forum Post: RE: [FAQ] ADS125H02: ADS125H02 Example C Code

$
0
0
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. 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 in the .ZIP file linked above. Here is some important information and included modules: The [ ADS125H02 ]( www.ti.com/.../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 ADS125H02 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 ADS125H02 at a high-level. Included modules ---------------- There are three modules included in this example code: 1. **` ADS125H02 `** *Description:* Low-level functions and register map definitions for communicating with the ADS125H02 . *Files: ads125h02 .h, ads125h02 .c* 2. **`Hardware Abstraction Layer (HAL)`** *Description:* The HAL provides processor specific functions called by the ` ADS125H02 ` module. *Files: hal.h, hal.c* ***IMPORTANT**: This module will need to be modified to work with your hardware!*

Viewing all articles
Browse latest Browse all 91230

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>