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?