www.ti.com
Peripheral Library APIs for ADC Operation
485
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Analog-to-Digital Converter (ADC)
13.6.6 APIs for Setting Up ADC Timer for Time-Stamping the Samples
13.6.6.1 void ADCTimerConfig (unsigned long ulBase, unsigned long ulValue)
Configures the ADC internal timer.
Parameters:
ulBase— Base address of the ADC
ulValue— Wrap-around value of the timer
ulIntFlags— The bit mask of the interrupt sources to be enabled
This function configures the ADC internal timer. The ADC timer is 17-bit timer that internally time-stamps
the ADC data samples. The user can read the timestamp, along with the sample, from the FIFO registers.
Each sample in the FIFO contains 14-bit actual data and an 18-bit timestamp.
The ulValue parameter can take any value from 0 to 2
17
.
Returns:
• None
13.6.6.2 void ADCTimerDisable (unsigned long ulBase)
Disables the ADC internal timer.
Parameters:
ulBase— Base address of the ADC
This function disables the 17-bit ADC internal timer.
Returns:
• None
13.6.6.3 void ADCTimerEnable (unsigned long ulBase)
Enables the ADC internal timer.
Parameters:
ulBase— Base address of the ADC
This function enables the 17-bit ADC internal timer.
Returns:
• None
13.6.6.4 void ADCTimerReset (unsigned long ulBase)
Resets the ADC internal timer.
Parameters:
ulBase— Base address of the ADC
This function resets the 17-bit ADC internal timer.
Returns:
• None
13.6.6.5 unsigned long ADCTimerValueGet (unsigned long ulBase)
Gets the current value of ADC internal timer.
Parameters: