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.

[参考译文] MSP430F5252:使用 TIRTOS 以不同的波特率打开 UART

Guru**** 2502205 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/935001/msp430f5252-open-uart-with-different-baud-rates-with-tirtos

器件型号:MSP430F5252

您好!

在我的设计中,我遇到了 UART 配置的问题:在配置相同的多个设备之间,速度似乎不同。

在我的某些产品上,使用具有以下配置的 UART 可以获得更好的结果:

{
.outputBudrate = 9600、
.inputClockFreq = 32768、
.prescalar = 3、
hwRegUCBRFx = 0、
hwRegUCBRSx = 4、
过采样= 0
}、 

在其它设备上,通过此配置可获得最低的错误率:

{
.outputBudrate = 9600、
.inputClockFreq = 32768、
.prescalar = 3、
hwRegUCBRFx = 0、
hwRegUCBRSx = 3、
过采样= 0
} 

我要做的是能够使用其中一种配置打开 UART,当我打开 UART 时如何选择波特率?

感谢您的帮助!

Clement

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    输入频率为低电平。 为了减少误差、您需要更高的输入频率。 请在用户指南中找到更好的配置。  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、冬季、

    感谢您的回答、这实际上非常明显!

    此致、

    Clement