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

MSP430FR2433 UART採用MODCLK

$
0
0

MSP430FR2433 UART採用MODCLK

設定和計算如下,但一直無法成功溝通,是哪邊計算有問題嗎?

UCA1CTLW0 |= UCSSEL__MODCLK; //5MHz

// 9600
// 5M/16/9600 = 32.55
// UCBRFx = int ( (0.552)*16) = int(8.83) => => UCBRF_8
// User's Guide Table 21-4 (P.576): 0.55 => UCBRSx = 0xAA
 UCA1BR0 = 32;
UCA1BR1 = 0x00;
UCA1MCTLW = 0xAA00 | UCOS16 | UCBRF_8;


Viewing all articles
Browse latest Browse all 3634

Trending Articles