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.

MSP430FR2433: P1.5 Stuck at 1.65V

Part Number: MSP430FR2433


Hello,

When I configure P1.5 as an output and set it low, it only goes down to 1.65V.

I notice that when I don't configure it at all, it seems to be pulled up to 3.3V (this is different from every other pin I have configured).

I am trying to configure it as  PWM output eventually, but I can't even get the amplitude correct.

Is there some default setting that I need to be configuring to make it work?

Relevant part of my code:

// set P1.4 as a PWM output
// GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P1,
// GPIO_PIN4,
// GPIO_SECONDARY_MODULE_FUNCTION);
GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN4);
GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN4);

// Configure P1.5 as output
P1DIR |= BIT5;

// Set P1.5 output low
P1OUT &= ~BIT5;
//GPIO_setAsOutputPin(GPIO_PORT_P1, GPIO_PIN5);
//GPIO_setOutputLowOnPin(GPIO_PORT_P1, GPIO_PIN5);

// set P1.5 as a PWM output
// GPIO_setAsPeripheralModuleFunctionOutputPin(GPIO_PORT_P1,
// GPIO_PIN5,
// GPIO_SECONDARY_MODULE_FUNCTION);

/*
* Disable the GPIO power-on default high-impedance mode to activate
* previously configured port settings
*/
//PMM_unlockLPM5();

**Attention** This is a public forum