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 TX 中断问题

Guru**** 2611385 points
Other Parts Discussed in Thread: MSPM0G3507

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1441535/mspm0g3507-uart-tx-interrupt-issue

器件型号:MSPM0G3507

工具与软件:

大家好! 我将使用 MSPM0G3507 MCU 开发一个新项目、并且我已经使用用于 TX 和 RX 管理的中断([禁用 FIFO 的情况下])开发了自己的 USART 驱动程序。

TX 中断存在以下问题。

为了使用 USART 发送新的字节流、我将其上传到内部循环缓冲器中、然后我启用 TX 中断、但它不会自动进入、但第一次[在 MCU 打开后]除外。

要触发 TX 中断、我必须手动发送第一个行车记录仪。 是否正常? 中断不应该仅自动进入启用它吗?

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

    不、如果您没有要发送的数据、该怎么办? 您只会在通过发送第一个字符在裤子中发出它后获得中断。