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/MSP432P401R: MSP432 Launchpad ADC14 Window Comparator, Example Code Error

Part Number: MSP432P401R

Tool/software: Code Composer Studio

Hi everybody,

I create a program in order to make a ADC conversion with a MSP432P401R but unfortunately I have some issues that I don't know how to solve. When I compile the code below, I have some errors that shows up. Could you tell me how to solve this problem, please ?

 

  P5SEL0 |= 0x20;             

    P5SEL1 |= 0x20;              

    ADC14CTL0 = ADC14ON | ADC14SHP | ADC14SHT0_2;

    ADC14CTL1 = ADC14SHP+ADC14CONSEQ_1;

    ADC14MCTL0 = ADC14INCH_0 + ADC14EOS;

    ADC14CTL0 |= ADC14ENC;        

    ADC14CTL0 |= ADC14SC;

List of errors :

"../main.c", line 581: error #20: identifier "ADC14CTL0" is undefined

"../main.c", line 581: error #20: identifier "ADC14ON" is undefined

"../main.c", line 581: error #20: identifier "ADC14SHP" is undefined

"../main.c", line 581: error #20: identifier "ADC14SHT0_2" is undefined

"../main.c", line 582: error #20: identifier "ADC14CTL1" is undefined

"../main.c", line 582: error #20: identifier "ADC14CONSEQ_1" is undefined

"../main.c", line 583: error #20: identifier "ADC14MCTL0" is undefined

"../main.c", line 583: error #20: identifier "ADC14INCH_0" is undefined

"../main.c", line 583: error #20: identifier "ADC14EOS" is undefined

"../main.c", line 587: error #20: identifier "ADC14ENC" is undefined

"../main.c", line 588: error #20: identifier "ADC14SC" is undefined

Thank you and have a nice day.

**Attention** This is a public forum