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.

MSP432P4111: msp432p4111

Part Number: MSP432P4111


HI,

I am trying to initialize P55/A0 P54/A1 P53/A2 P52/A3 as ADC channels with the below code while initializing P54/A1 channel gets connected to the ground. 

WDT_A->CTL = WDT_A_CTL_PW | WDT_A_CTL_HOLD;

volatile unsigned int i;
CS->KEY = 0x0000695A;
CS->CTL0 = 0x00030000;
CS->CTL1 = 0x00000233;
CS->KEY = 0x00000000;
P5->SEL1 = BIT2 | BIT3 | BIT4 | BIT5; // Configure P5.4 for ADC
P5->SEL0 = BIT2 | BIT3 | BIT4 | BIT5 ;

ADC14->CTL0 = ADC14_CTL0_SHT0_2 | ADC14_CTL0_SHP | ADC14_CTL0_ON;
ADC14->CTL1 = ADC14_CTL1_RES_3; // Use sampling timer, 14-bit conversion results

ADC14->MCTL[0] = ADC14_MCTLN_INCH_3 | ADC14_MCTLN_INCH_2 |ADC14_MCTLN_INCH_1| ADC14_MCTLN_INCH_0 ;

Thanks and regards

Sasikumar E