Hi,
I am working 28335 processor. I have set up by ADC in Simultaneous and cascaded mode.
AdcRegs.ADCMAXCONV.all = 7; // A/D conversions
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x0; /* Setup conv from ADCINA0 and ADCINB0 */
AdcRegs.ADCCHSELSEQ1.bit.CONV01 = 0x1; /* Setup conv from ADCINA1 and ADCINB1 */
AdcRegs.ADCCHSELSEQ1.bit.CONV02 = 0x2; /* Setup conv from ADCINA2 and ADCINB2 */
AdcRegs.ADCCHSELSEQ1.bit.CONV03 = 0x3; /* Setup conv from ADCINA3 and ADCINB3 */
AdcRegs.ADCCHSELSEQ2.bit.CONV04 = 0x4; /* Setup conv from ADCINA4 and ADCINB4 */
AdcRegs.ADCCHSELSEQ2.bit.CONV05 = 0x5; /* Setup conv from ADCINA5 and ADCINB5 */
AdcRegs.ADCCHSELSEQ2.bit.CONV06 = 0x6; /* Setup conv from ADCINA6 and ADCINB6 */
AdcRegs.ADCCHSELSEQ2.bit.CONV07 = 0x7; /* Setup conv from ADCINA7 and ADCINB7 */
As per the document, ADCRESULT are stored as follows.
A0 -> ADCRESULT0
B0 -> ADCRESULT1
..
A7 -> ADCRESULT14
B7 -> ADCRESULT15
Is there any way that I can swap my B1 and B5 in ADCCHSELSEQ1 & ADCCHSELSEQ2 register. I did not understand properly and
always messing up. Can anyone help me with a few lines of comments or code?
Regards,
KK