TI中文支持网
TI专业的中文技术问题搜集分享网站

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

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

灰小子:

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

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

Lichen Wang:

手册

15.3.10.1 Low-Frequency Baud Rate Mode SettingIn 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.

灰小子:

回复 Lichen Wang:

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

赞(0)
未经允许不得转载:TI中文支持网 » MSP430x2xx芯片手册里串口通信波特率2400 时钟32768hz UCBRSx寄存器配置有错
分享到: 更多 (0)