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.

[参考译文] MSP430F5500:使用乱码字符和 USB_init ()时程序无法正常工作

Guru**** 2484615 points


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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1228091/msp430f5500-the-program-does-not-work-properly-with-garbled-characters-and-usb_init

器件型号:MSP430F5500

您好!  

问题1:
我正在评估 USB CH1的示例代码。
我正在使用 JAVA 演示终端和 TearTarm 进行通信测试、但当我从 Java 发送时、字符出现乱码。

===终端显示===
Rx->ネョ0 "ノS:
09.
===========================

此外、如果我从 TearWarm 发送"AAA (CR)"、它将不会显示、并且 Java 窗口会在一段时间后关闭。 我已安装32位版本的 Java。
有可能得到一些建议吗?

问题2.
我还在测试是否要将 USCI (使用驱动程序库)合并到 USB CH1项目中。 如果 main()在初始化 USB 后对 USCI 进行了初始化,则 USCI 不工作。 波特率设置为8MHz、9800BPS、ns1。
调用 usb_setup()→usb_init()时似乎停止工作。 通过 USCI 中断来确认操作。
有可能得到一些建议吗?

谢谢。

Conor

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

    尊敬的 Conor:

    让我花一点时间来研究这一点、如果您已研究过 USB 到 UART 桥接器示 例、该示例会在设置 USB 外设后初始化 UART (USCI_A1)。

    此致、

    Luke