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.

[参考译文] MSPM0G3507:UART、RX 超时、FIFO、API

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1523157/mspm0g3507-uart-rx-timeout-fifo-api

器件型号:MSPM0G3507

工具/软件:

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1223660/am2634-functional-description-for-uart-rx-fifo-timeout-and-errata-for-timeout-interrupt

由于必须为 UART 的 RX 超时功能启用 FIFO、因此由于 FIFO 长度的影响、可变长度数据帧的接收并不完美。 因此、当 UART 正在接收数据时、应检测 RX 引脚的电平状态、类似于上面链路中关于 RX 超时的方法。 但是、使用传统的 API 功能来读取输入引脚、RX 引脚的读数始终为低电平。 如何读取 UART RX 引脚的电平状态?

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

    您好、

    在 MSPM0 IOMUX 中、引脚输入功能由下面的"输入多路复用器"进行选择。 因此、 一次只能将其选择为"GPIO"或"UART RX"之一、因此当其用作 UART RX 时、无法通过 GPIO 读取来读取引脚电压电平。

    可能您可以尝试使用 UART 的 STAT 寄存器中的 BUSY 位来获取 UART 状态、请在技术参考手册 UART 一章中找到更多信息。