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.

CCS/TMS320F28379D: Identifying ADC pins in The driverlib

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hi,

I am using TMS320F28379D in one of my applications. I see that the MCU has 4 ADC's and they channels are as follows.

ADCINAX (X= 0 TO 5)

ADCINBX (X= 0 TO 5)

ADCINCX (X= 2 TO 5)

ADCINDX (D= 0 TO 5)

ADCIN15

ADCIN14

But in the Driverlib its ADC_CH_ADCIN0 single-ended to ADCIN0 to ADC_CH_ADCIN15 single-ended, ADCIN15 .

I wanna know which of the above pin is mapped to which ADCINx in the driverlib. I am confused by this representation.

Regards

Vishal

  • All of the ADC modules can support 0-15 channels--but not all of them are necessarily used on every device or connected to a pin (for example, A13 is connected to the internal temp sensor). Also some of them are connected together internally. ADCIN14 is named as such because it's what would be ADCINA14, ADCINB14, ADCINC14, and ADCIND14 all connected together. Check out the analog subsystem block diagram in the data sheet for more info.

    So in driverlib, the pin is determined by the "base" and the "channel" parameters of ADC_setupSOC(). If base is ADCB_BASE and channel is ADC_CH_ADCIN2, it's referring to channel ADCINB2. As I've pointed out, not all combinations are going to be valid/useful.

    Whitney

  • Hi Whitney,

    Thanks for your response. I have one more doubt.

    If some of the pins are internally connected, then Can I use all the ADC Pins independently? Please refer to my schematic below as I have used almost every pin of the MCU in single-ended mode. Is it gonna work or I need to change/ remove some signals?

    Also, If the internal temperature sensor is connected to ADCIN13 of ADCA But ADCAINx has Six pins(ADCINAx (x= 0 to 5) and I am using all physical pins of ADCA, I Still read the temperature from this Sensor?

    Regards

    Vishal

  • Your schematic looks fine--those pins can all be used independently. Also, the internal temperature sensor doesn't go to a pin, so yes, you can still use it by having one of the ADC A SOCs connected to channel 13.

    Whitney