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/MSP432P4111: ADC Driver Channels

Part Number: MSP432P4111

Tool/software: Code Composer Studio

Hello

I am using MSP432P4111 LaunchPad. I am using adc driver to read analog voltage from single channel. In Board.h header there are only 2 channel available but MCU has more than 2. I am interested how to use other channels? I found ADCMSP432.h header with all other adc channel defines but I can't manage to enable them. Can someone help me to enable other channels of MSP432P4111 other than first two? (I mean other ADC channels other than P5.5 and P5.4)

Thanks.

  • Hello Pavle,

    I am not a TI employee and what I write is on my behalf.

    Board.h is designed for the LP demo applications.
    Except some very specific exceptions related to TI's Intellectual Property
    you have access to the source file and you can modify them according to your needs.

    I do not have MSP-EXP432P4111 however, being a bit familiar with MSP432 I have good news and some cues for you.

    According to your LP "poster card":

    I see 8 ANALOG IN pins available on your LP connectors. 
    It is your job to check if all that pins can be used ADC inputs.

    I have a few MSP-EXP432P401R LPs and they provide access to all MCU pins through a double line of holes on the bottom: 

    In case of your LP you do not have access to all MCU pins. 

    However, MSP432 offers I/O remapping:

    Again, it is your job to find which ports and pins can be remapped to get more ADC inputs.

    Wish you luck!

  • I have missed something.
    One of port remapping examples is here: dev.ti.com/.../
  • Thank you Tomasz for reply.

    I have tested all inputs with driverlib SDK all of them can be used as ADC.

    my project is TI-RTOS based and I want to use drivers because driverlib SDK and drivers are not working very well together.

    I need to use multiple ADC channels at the same time so port map is not good solution to me.

    In MSP_EXP432P4111.c file I found this structure

    looks like hardware attribute structure are made for two channels only. May the adding other channels from ADCMSP432.h work?

  • Hello Pavle,

    As Thomaz has pointed out, the pin configurations provided in the board files are shown as an example only. If your application needs additional/different pin configuration, the board files can be configured as per the requirements of your application.

    The following SimpleLink Academy lab shows how to configure the board files to extend the capabilities dev.ti.com/.../

    Hope this helps!

    Thanks,
    Sai
  • I see source potential source of misunderstanding.
    ADC channel is an instance of ADC converter.
    MSP432 has two ADC converters and each converter can serve many analog lines.

  • Hello Sai. Thank you for reply.
    I will try this and see if it solve my problem
  • Thank you very much Sai. I did exactly what was in Driver Configuration lab and I managed to use other ADC Channel :) Thanks again.
  • I am glad the SimpleLink Academy Lab helped you!

    Regards,
    Sai

**Attention** This is a public forum