Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

MSP430F2418串口接收异常

$
0
0

你好

在进行MSP430F2418串口接收时,接收300字节。会随机出现中间少一个字节,

下面是串口初始化:

UCA0CTL1 |= UCSWRST;
UCA0CTL1 |= UCSSEL_2; ////SMCLK

UCA0BR0= 0X22;
UCA0BR1 = 0x00; 
UCA0MCTL = 0x00;

UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine**
UCA0ABCTL |= UCABDEN;
P3SEL |= 0X30;
UC0IE |= UCA0RXIE;


Viewing all articles
Browse latest Browse all 3634

Trending Articles