简体   繁体   English

用电脑控制MSP430(USB?)

[英]Controlling MSP430 with computer (USB?)

I'm looking to control a bunch of LEDs from my computer, with a TI MSP430 or similar. 我希望通过TI MSP430或类似设备从我的计算机控制一堆LED。
My computer is a Macbook Air, and so it looks like the only port I can communicate with is USB. 我的电脑是Macbook Air,所以看起来我唯一能与之通信的端口是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. MSP430有一个USB端口,但除了编程芯片之外,我找不到任何有关使用USB端口的信息。 Is there a way around this, to use USB to communicate with the board? 有没有办法解决这个问题,使用USB与电路板通信?

Thanks! 谢谢!

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. 如果您使用其中一个内置USB硬件的处理器,那么您应该查看这个描述MSP USB功能的德州仪器页面 It includes links to the USB software stack that you will need to implement an HID class device. 它包含实现HID类设备所需的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. a) USB <-> LPT适配器直接控制LED - 在这种情况下,原理图非常简单。 See how it's done ; 看看它是如何完成的 ;

b) USB <-> COM or USB <-> 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 with USB . b) USB <-> COMUSB <-> RS232适配器通过RS232与控制器通信 - 在这种情况下,你必须实现一些简单的协议与控制器通信,但整个解决方案仍然比有USB那个。

The MSP430 Series 5 and Series 6 micro controllers (ie MSP430x6xx and MSP430x5xx) have built in USB modules that allow communication from PC and could be used to control the MSP430 via USB. MSP430系列5和系列6微控制器(即MSP430x6xx和MSP430x5xx)具有内置USB模块,允许从PC通信,并可用于通过USB控制MSP430。 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. 在此处下载MSP430 USB开发人员包: http//www.ti.com/tool/msp430usbdevpack并使用USB CDC或HID API堆栈根据您的要求开发应用程序。 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. 如果您使用CDC(COM端口),您可以使用终端程序发送命令来控制LED,或者如果您使用HID堆栈,您可以使用Developers包中包含的hidDemo PC软件来发送/接收命令。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM