Tool/software: Code Composer Studio
HI all,
I'm oversampling and filtering ADC12's 4 analog inputs using 16-bit tables. Currently I'm doing all calculations using interrupt and the end of sequence. But now I want to transfer raw data form ADC to table using DMA and then do calculations only few times per second when needed.
My first idea is to use 2 DMA channels. First one will write data from ADC to table using Fixed Address To Block Of Addresses. Second DMA will modify first DMA's Source Address so in next DMA request it will copy next channel.
Result table will look like that: CH0_sample0, CH1_sample0, CH2_sample0, CH3_sample0, CH0_sample1, CH1_sample1, CH2_sample1, CH3_sample1, CH1_sample2,...
And table for second DMA: address of CH0, address of CH1, address of CH2, address of CH3
It should work but it seems a bit complicated.... Is there an easier way to do that?