This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

adc channel select f28377d



Hi I have a question about f28377d' adc channels,

AdcaRegs.ADCSOC0CTL.bit.CHSEL = 0;   ///this line defines the ANA09 as adc input
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 1;   ///this line defines the ANA11 as adc input
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 2;   ///this line defines the ANA15 as adc input
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 3;   ///this line defines the ANA17 as adc input
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 4;   ///this line defines the ANA21 as adc input
AdcaRegs.ADCSOC0CTL.bit.CHSEL = 5;   ///this line defines the ANA23 as adc input

it is okay so far, but after CHSEL6 there is no analog pin to attach adc's, then why there are so much channels?

AdcaRegs.ADCSOC0CTL.bit.CHSEL = 6.....15;   /// No pin defined on pinout diagram.

It is the same with the adcb, adcc and adcd. I am confused.

Have a nice day.

 

 

  • Hi Fatih,

    fatih kara said:
    it is okay so far, but after CHSEL6 there is no analog pin to attach adc's, then why there are so much channels?

    If you check the pin-out of F28377D, there are limited number of ADCa, ADCb, ADCc & ADCd channels. Please check the datasheet for more info.

    fatih kara said:
    AdcaRegs.ADCSOC0CTL.bit.CHSEL = 6.....15;   /// No pin defined on pinout diagram.

    The above will never exist as there are no such channels available.

    Regards,

    Gautam

  • First of all thank you for your response Gautam,

    I know there isn't enough pin for the rest of the channels as you say But my question is why the number of channel goes from 0 to 15? I mean the Technical Reference Manuel says that the CHSEL bits could be any number between 0 and 15. If I can't use the values from 6 to 15 why these are exist on TRM?

     

  • Hi Fatih,

      While it is true that a subset of the ADC inputs come to pins, several other ADC inputs have internal connections which can be converted.  Please refer to figure 8-1 or 8-2 for the details.

    regards,

    Joe