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/MSP430F4152: Port 7 Output Implementation Problem

Part Number: MSP430F4152

Tool/software: Code Composer Studio

Hello everyone,

I use MSP430F4152 in a project with transistors and indicator LED.

I need P7.4 and P7.6 for transistor triggering but i cannot get voltage on related pins. I measured them on pins of MCU. But LED is blinking properly.

The program and port register list are attached below.

#include <msp430.h>
int main(void) {
    WDTCTL = WDTPW + WDTHOLD;	// Stop watchdog timer

    P3OUT |= BIT1; //LED OUTPUT
    P3DIR |= BIT1;

    P7SEL |= 0x00;
    P7DIR |= BIT4;
    P7IN |= 0x00;
    P7OUT |= BIT4;

    for (;;)
    {
       volatile unsigned int i;
       P3OUT ^= BIT1;
       i = 20000;
       do (i--);
       while (i != 0);
    }
}

Thanks

**Attention** This is a public forum