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.

Simultaneously sampling with LM4F232 Cortex-M4

Hello,

I´m trying to start both ADC´s with at the same time with a processor trigger.

Is this possible with the ADCProcessorTrigger(ADC0_BASE|ADC1_BASE, 3) ??

Or do I have to choose the same timer for both ADC´s

Regards,

Thomas

  • Hi Tom,

    When trying to trigger two ADCs at the same time, the first one should be put in wait state. To do that, use this code:

    ADCProcessorTrigger(ADC1_BASE, (3|ADC_TRIGGER_WAIT)); 
    ADCProcessorTrigger(ADC0_BASE, (3|ADC_TRIGGER_SIGNAL));

    This will put the sequencer 3 of ADC1 in wait state and when you trigger the sequencer 3 of ADC0, then both ADCs will simultaneously sample.