Analog to Digital Converter (ADC)
Parameters:
ui32Base
is the base address of the ADC module.
ui32SequenceNum
is the sample sequence number.
ui32Trigger
is the trigger source that initiates the sample sequence; must be one of the
ADC_TRIGGER_
∗
values.
ui32Priority
is the relative priority of the sample sequence with respect to the other sample
sequences.
Description:
This function configures the initiation criteria for a sample sequence. Valid sample sequences
range from zero to three; sequence zero will capture up to eight samples, sequences one and
two will capture up to four samples, and sequence three will capture a single sample. The
trigger condition and priority (with respect to other sample sequence execution) is set.
The
ui32Trigger
parameter can take on the following values:
ADC_TRIGGER_PROCESSOR
- A trigger generated by the processor, via the
function.
ADC_TRIGGER_COMP0
- A trigger generated by the first analog comparator; configured
with
ADC_TRIGGER_COMP1
- A trigger generated by the second analog comparator; config-
ured with
ADC_TRIGGER_COMP2
- A trigger generated by the third analog comparator; configured
with
ADC_TRIGGER_EXTERNAL
- A trigger generated by an input from the Port B4 pin.
ADC_TRIGGER_TIMER
-
A
trigger
generated
by
a
timer;
configured
with
ADC_TRIGGER_PWM0
- A trigger generated by the first PWM generator; configured with
ADC_TRIGGER_PWM1
- A trigger generated by the second PWM generator; configured
with
ADC_TRIGGER_PWM2
- A trigger generated by the third PWM generator; configured with
ADC_TRIGGER_PWM3
- A trigger generated by the fourth PWM generator; configured
with
ADC_TRIGGER_ALWAYS
- A trigger that is always asserted, causing the sample se-
quence to capture repeatedly (so long as there is not a higher priority source active).
The
ui32Priority
parameter is a value between 0 and 3, where 0 represents the highest priority
and 3 the lowest. Note that when programming the priority among a set of sample sequences,
each must have unique priority; it is up to the caller to guarantee the uniqueness of the priori-
ties.
Returns:
None.
April 8, 2013
47
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...