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/MSP430FR2422: MSP430FR2422

Part Number: MSP430FR2422

Tool/software: Code Composer Studio

Dear Sir,

I have configured for PWM generation. But signal is not available at P2.3 port pin.

please find below code.

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

    PM5CTL0 &= ~LOCKLPM5;
    OutPutPortConfiguration();
    TimerB0_Configuration();
    PWMGeneration();

    while(1)
    {

        __bis_SR_register(LPM0_bits | GIE);
        __no_operation();
        __delay_cycles(500);

    }
}


void OutPutPortConfiguration(void)
{
    P2DIR |= BIT3;       //P2.2 and P2.3
    P2OUT &=~BIT3;
    P2SEL0 |= BIT3;
    P2OUT |= BIT3;

}

void TimerB0_Configuration(void)
{
   TA0CTL |= TACLR;               //before start clear the TimerA
   TA0CTL |= MC__UP;                        //UP Counter
   TA0CTL |= TASSEL__ACLK;        //32768HZ

}
void PWMGeneration(void)
{
    TA0CCR0 = 32768;                       //PERIOD is 1 Seconds
    TA0CCR1 = 16384;                       //DUTYCYCLE is 500 MS
    TA0CCTL0 |=CCIE;
    TA0CCTL0 &=~CCIFG;
    TA0CCTL1 |=CCIE;
    TA0CCTL1 &=~CCIFG;
    TA0CCTL0 |= OUTMOD_7;
    TA0CCTL1 |= OUTMOD_7;

}

#if 1
#pragma vector = TIMER0_A0_VECTOR
__interrupt void ISR_TA0_CCR0(void)
{
    //P2OUT |= BIT3;
     TA0CCTL0 &=~CCIFG;
    __bic_SR_register_on_exit(LPM0_bits);
}

#pragma vector = TIMER0_A1_VECTOR
__interrupt void ISR_TA0_CCR1(void)
{
    //P2OUT &= ~BIT3;
    TA0CCTL1 &=~CCIFG;
    __bic_SR_register_on_exit(LPM0_bits);
}
#endif

**Attention** This is a public forum