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.
Part Number: ADS1258
Does TI offer example C code for the ADS1258?
Regards,Collin WellsPrecision ADC Applications
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.
There are three modules included in this example code:
*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*
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.