Other Parts Discussed in Thread: MSP430F149
Hello
i am using MSP430-P149 MPS430F149 DEVELOPMENT BOARD for serial communication.
i am downloading following example code but serial port not working . i am just receiving 0 in hex 3 time on serial port
#include <msp430x14x.h> // Standard Equations
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
P6DIR |= 0x01; // Set P1.0 to output direction
UCTL0 &= ~SWRST; //reset SWRST bit
UCTL0 |= CHAR;
URCTL0 &= ~URXWIE;
UBR00 = 0x45; //baud = BRCLK / (UBR + (M7 + .. + M0) / 8)
UBR10 = 0x00; //UBR = 69 + 4/8
UMCTL0 = 0x00; //baud = 8000000/69.5 = 115108
UTCTL0 = SSEL1 + TXEPT;
ME1 |= UTXE0 + URXE0;
// IE1 |= UTXIE0 + URXIE0;
P3SEL |= BIT5 + BIT4; //Pin P3.4,P3.5used by USART module
// P3DIR |= BIT4; //Pin P3.4 is output
TXBUF0 = 'A';
}