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.
我用MSP430G2553中USCI的UART模式
在计算Baud Rate时,用User Guide上的公式去计算,算出来与User Guide上的表格参数不同?
Low-Frequency Baud Rate Generation模式下,UCOS16=0
N = fBRCLK/Baudrate
UCBRx = INT(N)
UCBRSx = round( ( N – INT(N) ) × 8 )
如果我今天用的fBRCLK=16MHz
希望Baud rate=9600bps
则N=16000000/9600=1666.666667
UCBRx = INT(1666.666667)=1666
UCBRSx = round( ( 1666.666667 – 1666 ) × 8 )=round(0.666667*8)=round(5.333336)=5
但是User Guide上的表格却是
UCBRx = 1666
UCBRSx = 6
然后我又在这个网站上做在线计算 http://processors.wiki.ti.com/index.php/USCI_UART_Baud_Rate_Gen_Mode_Selection
算出来的结果一样是
请问有是否有人知道这是怎么算的?