Other Parts Discussed in Thread: C2000WARE
Hello experts,
I have a problem using two SOC within one ADC module.In my application, I trigger SOC0 and SOC1 of the ADCA module simultaneously on PRD of PWM2.
I have initialised the ADCS as follows:
AdcaRegs.ADCSOC0CTL.bit.CHSEL = (Uint16)2;
AdcaRegs.ADCSOC0CTL.bit.TRIGSEL = 7;
AdcaRegs.ADCINTSEL1N2.bit.INT1SEL = 0;
AdcaRegs.ADCINTSEL1N2.bit.INT1E = 1;
AdcaRegs.ADCINTFLGCLR.bit.ADCINT1 = 1;
AdcaRegs.ADCSOC1CTL.bit.CHSEL = (Uint16)3;
AdcaRegs.ADCSOC1CTL.bit.ACQPS = 14;
AdcaRegs.ADCSOC1CTL.bit.TRIGSEL = 7;
With this setting I get almost the same values in AdcaResultRegs.ADCRESULT0 as in AdcaResultRegs.ADCRESULT1. I have noticed that these are always the values of channel 2 (SOC0). I can put any voltage values on Channel 3, it doesn't change anything in the AdcaResultRegs.ADCRESULT1 register. I suspect it is because SOC0 has higher proirisation.
Does anyone have an idea how to solve this problem?
Kind regards
Artur