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.

关于MSP430F5528 设置串口问题

Other Parts Discussed in Thread: MSP430F5528

请教专家:

我需使用 MSP430F5528 的端口 P4.4,P4.5 做UART通信口.但是通信不成功. 下面是我的设置程序.

P4SEL |= BIT4 + BIT5;

UCA1CTL1 |= UCSWRST; 

UCA1CTL1 |= UCSSEL_2;          // SMCLK 6MHz

UCA1BR0 = 0x34;                       // 波特率115200

UCA1BR1 = 0x00;                     

UCA1MCTL = 0x40;UCA1CTL1 &= ~UCSWRST;

UCA1IFG = 0x00;

UCA1IE = 0x01; 

UCA1IE |= UCRXIE;              // 使能UCA1接收中断

请专家看看是否正确, 或需怎么改