Hello Bob,
I am extremely sorry as I didnt reply sooner. I was sick for a period of time... Yes that successive conversion is acceptable as its a very little time offset. I took some time to implement what you suggested and implemented successfully. I used ping pong mode to capture the 6 ADC samples from sequencer 0 FIFO, put a transfer size of 1024 in the DMA config and was able to sample 6 channels with a offset of around 7.8uS as I put a sample rate of 128KHz.....and I am sorting the 1024 sized ping/pong buffer into 6 separate buffers of 128 size each and performing fft on each one of them. The results are almost correct. But the buffers are not correctly sorted, the results keep on changing in buffer..like if give square wave to 3 inputs and sine wave to 3 inputs... I expect the respective buffers to have that wave...but It changes...at first it have square then sine ...like that...As I have not used scatter gather. Below is the way SS0 is configured and how data is taken from ping / pong buffer (unsorted):
ADCSequenceStepConfigure(ADC0_BASE, 0, 0, ADC_CTL_CH2); ADCSequenceStepConfigure(ADC0_BASE, 0, 1, ADC_CTL_CH3); ADCSequenceStepConfigure(ADC0_BASE, 0, 2, ADC_CTL_CH0); ADCSequenceStepConfigure(ADC0_BASE, 0, 3, ADC_CTL_CH1); ADCSequenceStepConfigure(ADC0_BASE, 0, 4, ADC_CTL_CH14); ADCSequenceStepConfigure(ADC0_BASE, 0, 5, ADC_CTL_CH15 | ADC_CTL_IE | ADC_CTL_END);
Extraction:
for(m = 0; m < 128; m++) { fftin1[m] = g_ui8RxBufB[6*m]; fftin2[m] = g_ui8RxBufB[6*m+1]; fftin3[m] = g_ui8RxBufB[6*m+2]; fftin4[m] = g_ui8RxBufB[6*m+3]; fftin5[m] = g_ui8RxBufB[6*m+4];
fftin6[m] = g_ui8RxBufB[6*m+5]; }
But above , you said to use scatter gather mode to sort samples in 6 different buffers for proessing. Honestly , I dont know about this mode right now. I will study about this mode from the data sheet, and try to write some code for that....
Thank you for all your help, ...just have a small favor to ask...if you or anyone else who is reading this, can provide some example on implementing scatter gather.
Regards,
Harshul agarwal