This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

怎么将ADC中同一个队列里的不同采样样本用对应的变量赋值

读了数据手册,了解到除了队列3只能放一个样本之外,队列0,1,2都能放多个。尝试过在ADC0队列1中配置PE2(AIN1),PE1(AIN2)输入,确实都能读到两个输入的电压,但是值一直在变化,无法将它们赋值给对应的变量。可能是因为我不理解FIFO,希望大家能指点。

void ADC0SS1_Handler(){
sample1Value = ADC0_SSFIFO0_R;

sample2Value = ADC0_SSFIFO0_R;
ADC0_ISC_R |= (1<<0);
}