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.

MSP430x2xx芯片手册里串口通信波特率2400 时钟32768hz UCBRSx寄存器配置有错



手册上写的是UCBRSx = 6 但是经计算 n=32768/2400=13.65 ,UCBRSx = round((13.65-13)*8)= 5 。

  • 很少用这个波特率。计算了一下,果然是这样。汗~~

    另外,发现晶振使用1000000Hz时,表上UCRx=8,UCBRSx=6也有类似问题

  • 手册

    15.3.10.1 Low-Frequency Baud Rate Mode Setting
    In the low-frequency mode, the integer portion of the divisor is realized by the prescaler:
    UCBRx = INT(N)
    and the fractional portion is realized by the modulator with the following nominal formula:
    UCBRSx = round( ( N – INT(N) ) × 8 )
    Incrementing or decrementing the UCBRSx setting by one count may give a lower maximum bit error for any given bit. To determine if this is the case, a detailed error calculation must be performed for each bit for each UCBRSx setting.

  • 学习了。还是手册靠谱,很多汉语的资料都没说这一点