Hello.
I'm trying to play with ADC on TMS320F2808 and found the following example code of ADC setup:
AdcRegs.ADCTRL1.bit.RESET = 1; |
Next 4 lines should setup both Ax & Bx acquisition at once as documenation has stated:
AdcRegs.ADCCHSELSEQ1.bit.CONV00 = 0x0; // INA0 & B0 |
But I'm confused in the following 4 lines:
AdcRegs.ADCCHSELSEQ3.bit.CONV08 = 0x8; // INB0 |
What means configuration above? Which inputs I'll get in ADCRESULTxx?
AdcRegs.ADCTRL1.bit.RESET = 0x0; /* bit14(0): RESET, 0=no action, 1=reset ADC */ AdcRegs.ADCTRL2.bit.EPWM_SOCA_SEQ1 = 1; |
Thank you in advance.