Hello, When trying to initialize UART1, the use the code below is used. But after the first command is executed, we go in to check the contents of ME2 yet we do not see it getting the UTXE1 and URXE1 flags set. Is the syntax incorrect? ME2 |= (UTXE1 + URXE1); // Enable USART1 TXD/RXD IE2 |= URXIE1; // Enable USART1 RX interrupt IE2 |= UTXIE1; // Enable USART1 TX interrupt UCTL1 |= CHAR; // 8-bit characters UTCTL1 |= SSEL1; // UCLK1 = SMCLK U1BR0 = 0x00; // SET BAUD RATE REG'S INT(MCLK/BAUD RATE) U1BR1 = 0x00; // SET BAUD RATE REG'S INT(MCLK/BAUD RATE) U1BR0 = TAR / 0x0480; // ~39 UCTL1 &= ~SWRST; // **Initialize USART state machine** TACTL = 0x0104; // RETURN TIMERA TO ACLK AND RESET __enable_interrupt(); // Enable interrupts globally Thank you for your time, -Amanda
↧