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/MSP430F5359: configuring Port U PIN

Expert 1165 points
Part Number: MSP430F5359

Tool/software: Code Composer Studio

Hello, i have two led connected on PORT U pin of Msp430f5359, to turn them on I wrote the attached code. 

#include <msp430.h>

int main(void)
{
    WDTCTL = WDTPW | WDTHOLD; //  stop watchdog timer
    LDOKEYPID = 0x9628; //LDOKEYPID is unlocked.
    PUCTL |= PUOPE; //PU output enable
    PUCTL |= PUOUT1 | PUOUT0; //Turn on the LED at PIN PU.0 and PU.1.
}

what should have I done wrong?

 

**Attention** This is a public forum