P2SEL1 |= BIT0 | BIT1; // USCI_A0 UART operation P2SEL0 &= ~(BIT0 | BIT1); Your code has mentioned above lines. But for MSP-EXP430FR5969 , RXD & TXD pins are 2.6 2.5, So i think the code should be as mentioned below Correct if iam wrong. P2SEL1 |= BIT5 | BIT6; // USCI_A0 UART operation P2SEL0 &= ~(BIT5 | BIT6); Also instead of checking for wrong data, iput check for the correct data and changed as follows if(RXData == TXData) // Check value { P1OUT |= BIT0; // If incorrect turn on P1.0 while(1); // Trap CPU } But still it is not working.
↧