I need to collect data from 2 ADC channels. Ultimately, the data is to be sent to a table of 1000 samples (500 per channel). Samplerate can be 2KHz - 8kHz. When the table is full, the interrupt should be given.
It does not work for me. Here is my code.
1.Initialization

2.IRQ

Interrupt works with 1channel-1sample-TASK_SAMPLE combination (ONE-SHOT), but not for more channels.
What is wrong?

