Tool/software: Code Composer Studio
in my program I would like 4 channel conversions. They are ADC channel A3, A1, A2 and A4. I read the conversion results in ADCRESULT0, ADCRESULT1, ADCRESULT2, ADCRESULT3.
The ADC setup is the following:
AdcRegs.ADCTRL3.bit.SMODE_SEL =0x0;
AdcRegs.ADCTRL1.bit.SEQ_CASC = 1; // 0 Non-Cascaded Mode; 1 Cascaded Mode
AdcRegs.ADCMAXCONV.all = 0x0003; // Setup 3 conv's on SEQ1
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x3; // Setup ADCINA3 as 1st SEQ1 conv.
AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 0x1; // Setup ADCINA1 as 2nd SEQ1 conv.
AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 0x2; // Setup ADCINA2 as 3nd SEQ1 conv.
AdcRegs.ADCCHSELSEQ1.bit.CONV03 = 0x4; // Setup ADCINA4 as 4nd SEQ1 conv.
The result is that all 16 channels are sampling even though I specify AdcRegs.ADCMAXCONV.all = 0x0003;
What is the cause? How to fix it?
Thank you.