SBAA288A July 2018 – January 2019 ADS7142
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.
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 |