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.

[参考译文] CCS/TMS570LS1227:SCI TX/RX 中断都被启用、导致只发送一个字节

Guru**** 2481465 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/702124/ccs-tms570ls1227-sci-tx-rx-interrupts-both-enabled-causing-only-one-byte-to-be-sent

器件型号:TMS570LS1227
主题中讨论的其他器件:HALCOGEN

工具/软件:Code Composer Studio

您好!  

我希望使用 SCI 通过 PuTTY 终端仿真器向 TM570ls1227PGE 进行写入和读取。 为此、我在 halcogen 中启用了 SCI RX 和 TX 中断、但当我尝试在 CCS 中进行 sciSend 时、仅接收到一个字符串的单字节。 但是、当我禁用 TX 中断时、sciSend 会正常执行。  

我假设这是因为当我启用了该中断时、SCI 会中断 RX 过程来执行一个 TX"握手"。 是这样吗?  

此外、使用单个 sciREG 向终端发送信息并从终端写入的想法是否可行?  

谢谢!

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

    弯曲、

    您的 sci.c 文件中可能未定义 TE SCI 中断服务例程。 请在 VIM 模块中启用 LIN 或 SCI 中断:

    针对 SCI2/LIN 的 VIM 通道13

    针对 SCI 的 VIM 通道64