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/EVM430-FR6047: Booster Pack GPIO

Part Number: EVM430-FR6047


Tool/software: Code Composer Studio

Hi,

I have an application that requires the GPIO pin of booster pack of EVM 430-FR6047 v1.0 to toggle.

I have chosen P7.5 and have adopted the following code(attached herewithin).

But unfortunately,the pin is not toggling instead its staying high.

Can i get some help?

#include <msp430.h>
#include <driverlib.h>
#include <stdint.h>


void SerialGPIOInit(void);

void main(void)
{
SerialGPIOInit();
}

void SerialGPIOInit(void)
{
    GPIO_toggleOutputOnPin(GPIO_PORT_P7,GPIO_PIN5);
}

Best Regards,

Divya Harikumar

  • Hi Divya,

    You need set the pin as output mode firstly. Then call PMM_unlockLPM5() to activate port setting. Please seem below code.

    void main (void)
    {
        //Stop WDT
        WDT_A_hold(WDT_A_BASE);
    
        //P7.5 output
        GPIO_setAsOutputPin(GPIO_PORT_P7,GPIO_PIN5);
    
    
        /*
         * Disable the GPIO power-on default high-impedance mode to activate
         * previously configured port settings
         */
        PMM_unlockLPM5();
    
        while(1)
        {
              //toggle pins
              GPIO_toggleOutputOnPin(GPIO_PORT_P7,GPIO_PIN5);
    
              __delay_cycles(1000000);
        }
    }

    B.R

    Winter

**Attention** This is a public forum