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.
How i can setup adc0 and adc1 with different timers triggers?
I read in the doku:
The TM4C123GH6PM microcontroller contains two identical Analog-to-Digital Converter modules. These two modules, ADC0 and ADC1, share the same 12 analog input channels. Each ADC module operates independently and can therefore execute different sample sequences, sample any of the analog input channels at any time, and generate different interrupts and triggers
But i cannot find any parts in the driver lib to connect a timer directly to a adc.
I found only
TimerControlTrigger(WTIMER5_BASE, TIMER_A, true);
But this connect a timer to all adc's and to all ss's.
Hi Kevin,
But this connect a timer to all adc's and to all ss's.
Your understanding is correct the selected timer is routed to all adc's and ss's. I also wish there is more flexibility on the configuration.
In addition, timers can be used to trigger analog-to-digital conversions (ADC) when a time-out occurs
in periodic and one-shot modes. The ADC trigger signals from all of the general-purpose timers are
ORed together before reaching the ADC module, so only one timer should be used to trigger ADC
events.