The sequences for initializing ADC are given beautifully in this program. I have a doubt though. In the program you have posted, you are using only ADC0 for sampling one sample from channel 8. But I need to use both the ADCs 0 and 1 for sampling. These are the connections I need to sample:
1. ADC0 samples PE1 and PE3
2. ADC1 samples PE2 and PE4.
How to configure the ADCs to sample in the above configuration ? Moreover, in one cycle I need to sample once from PE3 and PE4 and 128 times from PE1 and PE2. How can I accomplish this ?