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.

MSP430FR2433: 1.5V offset on PWM signal from P1.5 on LaunchPad

Part Number: MSP430FR2433

All of the other pins form a nice square wave from 0V to 3.2V. However, P1.5 ranges from 1.5V to 3.2V. Why is there this offset and how do I get rid of it? Also, any tips on how to paste code formatting to preserve indents to make it more readable?

Thanks!

#include <msp430.h>

int main(void)
{
    WDTCTL = WDTPW | WDTHOLD; // Stop WDT

    P1DIR |= BIT1 | BIT2 | BIT4 |BIT5; // P1.1 and P1.2 output
    P1SEL1 |= BIT1 | BIT2 |BIT4 |BIT5; // P1.1 and P1.2 options select

// Disable the GPIO power-on default high-impedance mode to activate
// previously configured port settings
    PM5CTL0 &= ~LOCKLPM5;

    TA0CCR0 = 300; // PWM Period
//P1.0
    TA0CCTL1 = OUTMOD_7; // CCR1 reset/set
    TA0CCR1 = 276; // CCR1 PWM duty cycle
//P1.1
    TA0CCTL2 = OUTMOD_7; // CCR2 reset/set
    TA0CCR2 = 276; // CCR2 PWM duty cycle
    TA0CTL = TASSEL__SMCLK | MC__UP | TACLR; // SMCLK, up mode, clear TAR

    TA1CCR0 = 100; // PWM Period


//P1.5
    TA1CCTL1 = OUTMOD_7; //CCR1 reset/set
    TA1CCR1 =50; // CCR1 PWM duty cycle
//P1.4
    TA1CCTL2 = OUTMOD_7; // CCR2 reset/set
    TA1CCR2 = 25; // CCR2 PWM duty cycle
    TA1CTL = TASSEL__SMCLK | MC__UP | TACLR; // SMCLK, up mode, clear TAR

    __bis_SR_register(LPM0_bits); // Enter LPM0
    __no_operation(); // For debugger
}

**Attention** This is a public forum