I have problem with reading LPC1788 ADC pins in multichannel with DMA. Here is the procedure I have followed.
I use Keil, initialized UART 0 peripheral, have set all of the ADC pins to be analog, set all ADC pins to be opendrain, disabled all interrupts for ADC, then enabled all of the ADC channels. Next start the ADC in burst mode.
Then configured the DMA channel 0 to be used for ADC and channel 1 for UART. Set an "unsigned int buffer[8]" for ADC results. Setup DMAs and start each channel.
Now the problem is buffer is not filled in the right order from ADC channel 0 to channel 7. instead it filled in random, mess and chaos. For example the order is "0,1,5,7,6,0,3,2"