Part Number: MSP430F1612
Other Parts Discussed in Thread: DRV8842EVM
Hello,
I am try to configure UART0 on the DRV8842EVM board, which has a MSP430F1612.
I can see the characters on the P3.5/URXD0 pin.
The RXBUF never changes and it never triggers the interrupt.
P3SEL = 0x30; // P3.5=TX(RS232 MOSI), P3.4=RX(RS232 MISO)
// Config UART
U0CTL = SWRST; // Leave SWRST high during config
U0CTL = CHAR | SWRST; // 8-N-1 UART, SWRST
U0TCTL = 0x30; // SMCLK = 8 MHz
// U0BR0 = 0xA1; // 417 = 0x01A1, 8MHz / 417 = 19184.65
// U0BR1 = 0x01;
U0BR0 = 0x08; // 8MHz / 8 = 1MHz for FT232R USB XCVR
U0BR1 = 0x00;
ME1 = URXE0 | UTXE0; // Enable receive and transmit
IE1 = URXIE0; // Enable Rx interrupt only (for now)
U0CTL &= ~SWRST; // Clear SWRST
Please advise.
Thanks,
Emmett
