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.

[参考译文] MSP430F4152:USCI0_A0 UART 波特率生成问题

Guru**** 2445440 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1516146/msp430f4152-usci0_a0-uart-baud-rate-generation-problem

器件型号:MSP430F4152

工具/软件:

您好:

USCI UART 有点难理解。 尽管如此、我多次成功地在 F1xxx、F4xx 系列中使用了旧的 UART 模块。

使用 USCI 时、波特率比 我要低得多。 我的 SMCLK 时钟是:46*32768Hz。

我的 UART 配置:

BIS.B #081H、&UCA0CTL1;SMCLK 源+ RESET 端口
;BIS.B #000h、&UCA0CTL0;8位、1启动、LSB 在前
MOV.B #79,&UCA0BR0;低字节波特率:19200、1、50732MHz /19200=79
MOV.B #0、&UCA0BR1;高位字节
BIS.B #111100001B、&UCA0MCTL;UCOS16 Set->高频时钟需要、过采样、BRFx=15
BIS.B #1、&IE2;RX IE、IFG2寄存器、用于到达标志
BIC.B #1、&UCA0CTL1;删除 RESET

位时间由示波器测量约为1.1ms! 我尝试使用"UCOS16"位=0非常接近所需值、但 BR0=89值。

有人可以给一些建议,哪里 会是 问题?

谢谢。此致、

Joseph