2020-03-19 08:07 AM
2020-03-19 09:04 AM
This cannot be done directly out of the DMA. You'll have to postprocess the values to arrange them how you want.
2020-03-19 09:13 AM
Hi ,Thanks for the reply. Can you elaborate on what you meant by postprocessing the values.?
2020-03-19 09:33 AM
Suppose your buffer length is 16. When the ADC/DMA is complete, your values in memory will be
`1234123412341234`
where 1 is a result from channel 1, 2 is from channel 2, etc.
You need to rearrange them so they are in the order:
`1111222233334444`
There's probably a way to do this with a minimal amount of temporary storage needed, but you could also create a separate 4096 size buffer and move them into that buffer in the correct order.
2020-03-19 10:00 AM
The DSP routines can be written/modified so that they take into account the staggered input data. Unless you want to throw at them some prechewed libraries you don't have sources for.
JW
2020-03-19 11:09 AM
Thanks... I will keep you informed about it goes.
2020-03-19 11:09 AM
Thanks... I will keep you informed about it goes.