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.

LM4F ADC with phase delay



I need to use ADC0 and ADC1 with 180-degree phase dely with common trigger. It appears that the necessary APIs are, in part:

ADCPhaseDelaySet(ADC1_BASE, ADC_PHASE_180);

ADCProcessorTrigger(ADC0_BASE,3);

ADCProcessorTrigger(ADC1_BASE,3);

ADCSequenceConfigure(ADC0_BASE,3 | ADC_TRIGGER_WAIT, ADC_TRIGGER_PROCESSOR, 0);

ADCSequenceConfigure(ADC1_BASE, 3 | ADC_TRIGGER_SIGNAL, ADC_TRIGGER_PROCESSOR, 0);

Does this seem correct

  • Maurice,

    This seems appropriate in terms of the use of ADCPhaseDelaySet().  However, the use of the ADC_TRIGGER_WAIT and ADC_TRIGGER_SIGNAL do not appear to go with the ADCSequenceConfigure() API.  I see no reference of those flags in the ui32SequenceNum parameter.

    I do see them in the use of the ADCProcessorTrigger() API.

    I'm referring to the SW-DRL-UG-1.0.pdf documentation of the TivaWare-C series software baseline.