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.

MSP430FR5994: Unable to raise output pin on launchpad

Part Number: MSP430FR5994

Sirs:

     I have a ridiculous problem.  I'm unable to toggle an output pin on the launchpad.   Started out trying to turn on the led but then moved to other port pins.

The code steps through ok and I've run Uart and SPI test software correctly.  I must be doing something stupid.  Following is the CC code:

#include <msp430.h>
//#include "SPIConfig.c"

//Globals:
//void SPIConfig(void);


/*********************************************************************************
* main.c
*
********************************************************************************/
void main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer

// Init clocks and I/O
// Startup clock system with max DCO setting ~8MHz
CSCTL0_H = CSKEY >> 8; // Unlock clock registers
CSCTL1 = DCOFSEL_3 | DCORSEL; // Set DCO to 8MHz
CSCTL2 = SELA__VLOCLK | SELS__DCOCLK | SELM__DCOCLK;
CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1; // Set all dividers
CSCTL0_H = 0; // Lock CS registers


P7SEL1= !BIT0; //port 7 bit 0
P7SEL0= !BIT0;

P7DIR |= BIT0; // output

P7OUT |= BIT0 ; //turn on led1


for (;;) {
P7OUT ^= BIT0 ; // toggle the P0 of P1OUT with 1 and 0
__delay_cycles(250000); // 250000 microseconds between each cycle
}

//SPIConfig(); //configure SPI


}

**Attention** This is a public forum