Hello,
I wanna sample two analog inputs with ADC0 and ADC1 when I´m receiving an interrupt from a port pin. My question is: Is it possible to transfer the data from both ADC modules with the DMA?
Kind regards,
Constantin Weis
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.
Hello,
I wanna sample two analog inputs with ADC0 and ADC1 when I´m receiving an interrupt from a port pin. My question is: Is it possible to transfer the data from both ADC modules with the DMA?
Kind regards,
Constantin Weis
Hi Constantin,
Yes, you can use the DMA to transfer the data from ADC FIFO to a buffer. There is an example doing just that in the latest TivaWare version 2.2.0. The example is in <TivaWare_Installation>/examples/boards/ek-tm4c1294xl/adc_udma_pingpoong.
Hello Charles,
yes thank you, but can I transfer data from for example FIFO3 during I´m transfering data from FIFO2 with the DMA? Because I need about 50 Samples. Or do I have to use one sample sequencer where I can sample multiple inputs and transfer the data from that FIFO with the DMA? Thanks in advance.
Kind regards,
Constantin
Hi Constantin,
You can do it either way. Since you only have two analog inputs to sample, I will use just one sequencer to do the job. You will only need to setup one uDMA channel and one sequencer for your application which will simplify your software development.