SBAA288A July   2018  – January 2019 ADS7142

 

  1.   TM4C1294 interface to ADS7142 software library
    1.     Trademarks
    2. 1 Introduction
    3. 2 Hardware
    4. 3 Software
      1. 3.1 Header Files
      2. 3.2 ADS7142 Device Functional Modes Overview
      3. 3.3 Software Functions
    5. 4 Using the Software
      1. 4.1 Prerequisites
      2. 4.2 Getting Started
      3. 4.3 Using the Library
    6. 5 Main Routines and Test Data
      1. 5.1 Manual Mode
      2. 5.2 Autonomous Mode With Pre-Alert
      3. 5.3 Autonomous Mode With Post-Alert
      4. 5.4 Autonomous Mode With Start Burst Data
      5. 5.5 Autonomous Mode With Stop Burst Data
      6. 5.6 High Precision Mode
    7. 6 References
  2.   Revision History

ADS7142 Device Functional Modes Overview

The ADS7142 contains three primary modes: manual mode, autonomous mode, and high precision mode. Each mode requires a set of register configurations before the device can operate in that mode. Table 3 describes the main code routines that place the device in each of its functional modes.

Table 3. ADS7142 Device Functional Modes Main Routines

Filename Description
TM4C_ADS7142_Functions.c Uses the low-level functions in i2c.c to configure the host TM4C MCU and develop the ADS7142 register configuration functions. The function prototypes in the ADS7142RegisterMap.h file are explicitly declared in this file.
ADS7142_ManualMode_CH0Scan.c These routines configure the ADS7142 into Manual Mode (I2C command mode) in both single channel and dual-channel configuration. In manual mode, 12-bit conversions are clocked out continuously.
ADS7142_ManualMode_CH1Scan.c
ADS7142_ManualMode_AutoSequencing_CH0_CH1_Scan.c
ADS7142_AutonomousMode_PreAlert_CH0Scan.c These routines configure the ADS7142 into autonomous pre-alert mode in both single channel and dual-channel configuration. In pre-alert mode, the ADS7142 stores the sixteen conversions prior to the activation of the alert in a data buffer.
ADS7142_AutonomousMode_PreAlert_CH1Scan.c
ADS7142_AutonomousMode_AutoSequencing_PreAlert_CH0_CH1Scan.c
ADS7142_AutonomousMode_PostAlert_CH0Scan.c These routines configure the ADS7142 into autonomous post-alert mode in both single-channel and dual-channel configuration. In post-alert mode, the ADS7142 stores the next 16 conversions after the alert is active.
ADS7142_AutonomousMode_PostAlert_CH1Scan.c
ADS7142_AutonomousMode_AutoSequencing_PostAlert_CH0_CH1Scan.c
ADS7142_AutonomousMode_StartBurst_CH0Scan.c These routines configure the ADS7142 into autonomous start burst mode in both single channel and dual-channel configuration. In start burst mode, the device starts filling the data buffer upon starting channel sequencing: conversions stop once the data buffer is filled.
ADS7142_AutonomousMode_StartBurst_CH1Scan.c
ADS7142_AutonomousMode_AutoSequencing_StartBurst_CH0_CH1Scan.c
ADS7142_AutonomousMode_StopBurst_CH0Scan.c These routines configure the ADS7142 into autonomous stop burst mode in both single-channel and dual-channel configuration. In stop burst mode, the device continues to fill the data buffer until the channel sequencing is aborted. Data buffer entries are continually overwritten until the sequence is aborted.
ADS7142_AutonomousMode_StopBurst_CH1Scan.c
ADS7142_AutonomousMode_AutoSequencing_StopBurst_CH0_CH1Scan.c
ADS7142_HighPrecisionMode_CH0Scan.c These routines configure the ADS7142 into high precision mode in both single-channel and dual-channel configuration. In high precision mode, 16 12-bit conversions are stored in an accumulator. When the accumulator is filled, the 12-bit conversions are added to form one 16-bit reading.
ADS7142_HighPrecisionMode_CH1Scan.c
ADS7142_HighPrecisionMode_AutoSequencing_CH0_CH1_Scan.c