Hi guys,
I'm just a beginner in Direct Memory Access and now want to study a bit more but I just don't understand a few things.
I know that the purpose of DMA is to transfer a byte or word from one memory location to another location without using CPU. Like for example in the application in ADC12. I saw a lot of sample coding using DMA to transfer the ADC conversion in ADC12MEM0 to another memory location.
But what I don't understand is, why use DMA? Can't I just declare the below to transfer my ADC conversion in the main routine?
ADCresult0 = ADC12MEM0;
This line shows that I transfer the ADC result from ADC12MEM0 to ADCresult0 without using DMA right? Then why use DMA?