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.

MSPM0L1306: Read 8 analog signals with MSPM0L1306

Part Number: MSPM0L1306
Other Parts Discussed in Thread: SYSCONFIG

Hi TI!!!

I am new with MSPM0, however I would like to use it in a project.

In my project I need to measure 8 analog signals. Is this possible with the MSPM0L1306?
The MSPM0L1306 has more than 8 pins with analog capability, ok. But CCS allows to select only one pin as analog input.

Am I missing something or do I have to change the analog input pin dynamically in the firmware to read all signals?

What is the best way to read 8 analog signals with the MSPM0L1306?

Thanks very much. Best Regards.

  • Hello,

    I am so sorry that I am sick today. I will check it and reply to you tomorrow.

  • Hi,

    You need to add memory size and channel (max can be 4).

     

    If you want to read 8 ADC channel.

    Please change the channel-memory in you code.

    Here is demo code for MSPM0CE2E_ADC_8Channels_sequence_C.zip for you reference

  • Hello Zoey Wei,

    Thanks very much for your answer.

    Correct, by increasing the ADC Configuration Memory (maximum allowed 4) sysconfig allows me to select up to 4 analog inputs. However I still don't understand in the example code you share with me how to achieve 8 analog input signals.


    We have the 4 analog input signals allowed by sysconfig, also in the code are defined:
    #define GPIO_ADC12_0_C4_PORT GPIOA
    #define GPIO_ADC12_0_C4_PIN DL_GPIO_PIN_22
    #define GPIO_ADC12_0_C5_PORT GPIOA
    #define GPIO_ADC12_0_C5_PIN DL_GPIO_PIN_28
    #define GPIO_ADC12_0_C7_PORT GPIOA
    #define GPIO_ADC12_0_C7_PIN DL_GPIO_PIN_18
    #define GPIO_ADC12_0_C8_PORT GPIOA
    #define GPIO_ADC12_0_C8_PIN DL_GPIO_PIN_16

    Which correspond to the pins of the other 4 analog signals.
    In the while loop, a first acquisition of 4 analog signals is performed and then a second acquisition of 4 other analog signals. Where are the inputs to be read in each acquisition set?

    Thanks very much. Best Regards

  • Hi The former GPIO is set through Sysconfig and you can find in "ti_msp_dl_config.h"

    The channel and pin are one-to-one.

    The step of my code is: use former four channels and then start the later four channels. In hardware is eight channels.

    B.R.

    Zoey