Hello dear friends,
I am looking for a sample code that fills a buffer automatically with ADC-enabled channels sequentially in LPC1788.
By which I mean if I enable ADC0 to ADC7 and an "unsigned int buffer[8];", The dma would fill the buffer as if the first sample buffer[0] would be the result of adc0, buffer[1] would be the result of adc1, ... and buffer[7] would be the result of adc7.
I have been able to do so with a single channel, but when I enable multiple channels, the sequence is not maintained, by which I mean DMA would fill it in random. For example with "unsigned int buffer[20];" the buffer would fill like ADC0,ADC0,ADC1,ADC0,ADC1,ADC1,ADC0,..... The sample code I have used is the old LPC legacy NXP CMSIS codes which I think were shared in lpcware and no more updated.
For sure, this capability does exist in STM32 chips, M3 or M4. It would be shameful if such an expensive chip doesn't support this feature.
Sincerely yours