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.

MSP430FR6989 LaunchPad -> unable to set GPIO output to high

Other Parts Discussed in Thread: MSP430FR6989

Hi,


I'm using the MSP430FR6989 LaunchPad and I'm unable to set port pin 1.5 to a high signal.


I use the following code to setup the port:

    GPIO_setOutputHighOnPin(GPIO_PORT_P1, GPIO_PIN5);
    GPIO_setAsOutputPin(GPIO_PORT_P1,GPIO_PIN5);

But the measured voltage is 1,48V and not 3,3V as expected.

Where is the misstake?

Kind regards,

Arne

  • Hello Arne,
    I will move your question to the MSP forums, where the experts there can help you best.

    Thanks
    ki
  • Hello Arne,

    Did you disable the GPIO power-on default high impedance mode at the beginning of your code?

    It should look like the following.

      PM5CTL0 &= ~LOCKLPM5;           // Disable the GPIO power-on default high-impedance mode
                                      // to activate previously configured port settings
    

    Regards,

    JH

  • Hi Jace,


    I use the following function from the TI example code:

    void PMM_unlockLPM5(void)
    {
        HWREG8(PMM_BASE + OFS_PM5CTL0) &= ~LOCKLPM5;
    }

    But I think I've solved the problem. I used then LCD display of the launchpad.

    And that means all segment lines on the BoosterPack are unusable :-(

    P1.5 --> S0 ...

    Thanks for your help,

    Arne

  • Hi,
    I am using the msp430fr6989 also, and I see the same problem, that S* (any segment pins) do not work if using the lcd...even though not using the other segments. Is this a limitation of the Launpad?

    My design relies on using an LCD and using all other pins as gpio on the FR....please advise.

    Thanks, Tom
  • Tom,

    Yes, I would say this is a limitation of the LaunchPad with LCD Segment display. Possibly due to the display being used. If you are not using the full display, and need additional GPIO while using the launchpad, a simple solution would be to clip off the unneeded pins on the LCD segment so they are not connected to the LP.

**Attention** This is a public forum