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: Analog pin and Digital pin connection example

Part Number: MSP432P4111
Other Parts Discussed in Thread: TEST2

Tool/software: Code Composer Studio

I am totally new to texas instruments, i have recently got this MCU for a project based on gas sensors and i am totally lost. Without the program examples available in simplelink sdk no other programs are getting uploaded on my MCU. I am totally getting hopeless and lost in this ide. Please someone help me with examples or screenshots to connect a sensor in digital pin and achieve some value from the sensor. please. A big thank you in advance.   

  • We need to know what sensor.

    But I would check out the gpio_input_interrupt example.

    Can you please explain what you mean by

    SHIBARJUN MANDAL said:

    Part Number: MSP432P4111

    Tool/software: Code Composer Studio

    Without the program examples available in simplelink sdk no other programs are getting uploaded on my MCU. I am totally getting hopeless and lost in this ide.

    We need you to tell us what problems you are having with the IDE. Have you tried SimpleLink Academy?

  • Gas sensor MQ5, i am not getting any clue how to connect my MQ5 sensor with my MCU in CCS. How to connect with a pin, what will be the commands, the codes.
    Only the available example programs are getting uploaded. When i am building a new CCS project, it gives this below build error.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------



    **** Build of configuration Debug for project basic test2 ****

    "C:\\ti\\ccsmsp432\\ccsv8\\utils\\bin\\gmake" -k -j 4 all -O

    Building file: "../main.c"
    Invoking: ARM Compiler
    "C:/ti/ccsmsp432/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsmsp432/ccsv8/ccs_base/arm/include" --include_path="C:/ti/msp432_driverlib_3_21_00_05/msp432_driverlib_3_21_00_05" --include_path="C:/ti/ccsmsp432/ccsv8/ccs_base/arm/include/CMSIS" --include_path="C:/Users/SHIBARJUN/workspace_v8/basic test2" --include_path="C:/ti/ccsmsp432/ccsv8/tools/compiler/ti-cgt-arm_18.1.5.LTS/include" --advice:power=all --define=__MSP432P4111__ --define=ccs -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.obj' failed
    "../main.c", line 38: fatal error #1965: cannot open source file "unistd.h"
    1 catastrophic error detected in the compilation of "../main.c".
    Compilation terminated.
    gmake: *** [main.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****
  • please help with some programs, codes, examples on how to connect any sensor with MSP432P4111 with CCS
  • You can identify which pins you want to use from the launchpad and then write your code accordingly.

    From there you have a couple of different options.  I would recommend downloading the SDK.  

    You can take a couple of existing driverLib examples and configure to meet your needs.

    ADC

    GPIO

    Here is some help with CCS.

    If you want to use TIDrivers, then here are some examples:

    ADC

    GPIO

    Please also check out the SimpleLink Academy.


    Regards,

    Chris

**Attention** This is a public forum