用计算机控制 MSP430(USB?)
我希望使用 TI MSP430 或类似器件从我的计算机控制一堆 LED。
我的电脑是 Macbook Air,所以看起来我唯一可以通信的端口是 USB。 MSP430 有一个 USB 端口,但除了对芯片进行编程之外,我找不到任何有关使用 USB 端口进行任何操作的信息。有没有办法解决这个问题,使用 USB 与开发板通信?
谢谢!
I'm looking to control a bunch of LEDs from my computer, with a TI MSP430 or similar.
My computer is a Macbook Air, and so it looks like the only port I can communicate with is USB. The MSP430 has a USB port, but I can't find any information about using the USB port for anything besides programming the chip. Is there a way around this, to use USB to communicate with the board?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用的是内置 USB 硬件的处理器之一,那么您应该查看此 德州仪器页面,其中描述了 MSP USB 的功能。它包含实现 HID 类设备所需的 USB 软件堆栈的链接。
If you are using one of the processors with built in USB hardware then you should look at this Texas Instruments Page which describes the capabilities of the MSP USB. It includes links to the USB software stack that you will need to implement an HID class device.
我在这里看到另外两个选择。您还可以使用:
a)
USB <->; LPT 适配器直接控制 LED — 在这种情况下,原理图非常简单。请参阅如何完成;
b)
USB <->; COM
或USB <-> RS232 适配器通过 RS232 与控制器进行通信 - 在这种情况下,您必须实现一些简单的协议来与控制器进行通信,但整个解决方案仍然比使用 USB 的解决方案简单得多/代码>。
I see two more options here. You can also use:
a)
USB <-> LPT
adapter to control the LEDs directly — in this case the schematics are extremely simple. See how it's done;b)
USB <-> COM
orUSB <-> RS232
adapter to communicate with the controller via RS232 — in this case you'll have to implement some simple protocol for communication with the controller, but the whole solution would still be much simpler than the one withUSB
.MSP430 系列 5 和系列 6 微控制器(即 MSP430x6xx 和 MSP430x5xx)具有内置 USB 模块,允许与 PC 进行通信,并可用于通过 USB 控制 MSP430。在此处下载 MSP430 USB 开发人员包:http://www.ti.com/tool/msp430usbdevpack并使用 USB CDC 或 HID API 堆栈根据您的要求开发应用程序。如果您使用 CDC(COM 端口),您可以使用终端程序发送命令来控制 LED,或者如果您使用 HID 堆栈,您可以使用开发人员包中包含的 hidDemo PC 软件来发送/接收命令。
The MSP430 Series 5 and Series 6 micro controllers (i.e. MSP430x6xx and MSP430x5xx) have built in USB modules that allow communication from PC and could be used to control the MSP430 via USB. Download the MSP430 USB Developers package here: http://www.ti.com/tool/msp430usbdevpack and use the USB CDC or HID API stacks to develop an application as per your requirements. In case you are using CDC(COM port) you may use a Terminal program to send the commands to control LEDs or if you use the HID stack, you may use the hidDemo PC software included in the Developers package to send/receive commands.