Other Parts Discussed in Thread: CONTROLSUITE
Can anybody help me with adc configuration?
I require all 16 channels to be converted in simultaneous mode (A0-B0,A1-B1 ..) at every timer0 interrupt.
And it should generate just one ADC interrupt after completion of all 16 channels.
ADCSAMPLEMODE = -0xff; //correct?
AdcRegs.ADCSOC0CTL.bit.TRIGSEL= 1;
AdcRegs.ADCSOC1CTL.bit.TRIGSEL= 1;
...........
AdcRegs.ADCSOC15CTL.bit.TRIGSEL= 1;
Is it correct to put timer0 to all of them? Timer0 interrupt set at every 80uS as it required to convert all 16 channels at every 80us.
I assume timer0 will trigger ADC-A0 and ADC-B0, how to cascade the remaining 7 pairs?
Sample code would be great help.
Thanks in advance
Joy