USB AVR uController接口 [英] USB AVR uController interfacing

查看:109
本文介绍了USB AVR uController接口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目USB AVR uController接口.它将具有通过USB协议连接到计算机的USB AVR微控制器. AVR将做为外围板的一部分,并将其数据传输到计算机,并且计算机将通过C#屏幕中的控制台来控制板.

我现在所拥有的是C#的基础知识,并且对AVR微控制器编程(ASM)相当熟悉,但是从未使用USB AVR完成.

我对USB编程非常陌生,因此希望专家可以向我提出建议,以逐步开展该项目.

1,在价格和易于寻找方面我应该使用什么AVR.
2,在C#编程方面,在编写USB的代码和驱动程序方面必须具备的条件.
3,等等.我尚不了解要完成的项目.

I am having a project USB AVR uController interfacing. It will have USB AVR microControllers connecting to computer via USB protocol. AVR will do something as a peripheral boards and transfer it''s data to computer as well as the computer will control the board by the console in the screen made by C#.

What I have now is that the basic of C# and being quite familiar with AVR microcontroller programming (ASM) but never done with USB AVR.

I am very new with USB programming so hope experts can advise me what I have to do step by step to carry out the project.

1, What AVR I should to go with in term of pricing and ease of seeking.
2, C# programming side what I have to be equipped in term of writing code and driver for USB.
3, And etc.. which I do not know yet to go through the project.

推荐答案

1)帮不上忙-它取决于您需要的功能做任务.由于它们的规格范围很广,介于8位和32位之间,因此没有实际的方法为您提供建议.
2)简单-C#端只需要一个SerialPort,并设置了正确的参数,它就可以直接与AVR通讯. USB不是通信协议,它是物理层的描述,因此您可以指定通信协议(并在两端实现).
3)抱歉,要回答未解决的问题,需要TimeTravel .NET程序集,由于类构造函数中的矛盾问题,该程序集仍在原型中.
1) Can''t help - it depends on what features you need to do the task. Since they are available in between 8 bit and 32 bit with a wide range of specifications, there is no practical way to advise you.
2) Easy - C# side will just need a SerialPort, with the correct parameters set, and it can talk directly to the AVR. USB is not a communications protocol, it is a physical layer description, so you will ba able to specificy the communications protocol yourslef (and implement it at both ends)
3) Sorry, but answering unasked questions requires the TimeTravel .NET assembly which is still in prototype due to paradox problems in the class constructor.


我的建议是从Arduino开发套件开始.它们使用AVR微控制器,并且拥有一个庞大的社区,该社区已经创建了许多不同的项目,您可以将其用作指导.只需选择符合您要求的Arduino板(就我所知,并不是所有人都具有USB),然后通读一些入门教程.
有关更多信息,请参见以下链接:
http://arduino.cc/en/ [ ^ ]
Arduino已释放 [ http://www.technicana.com/physical-computing /73-connect-to-the-arduino-with-c-.html [ http://www.instructables.com/id/Interface-your-arduino-with -aC-program/ [ ^ ]
对于使用USB接口,您可能需要阅读FTDI虚拟串行端口,该端口可用于与在Windows上创建虚拟com端口的USB设备进行通信.
享受编码!
My suggestion is to start with an Arduino development kit. These use AVR microcontrollers and have a large community that has already created lots of different projects which you may use as guidance. Just select the Arduino board that matches your requirements (not all have USB as far as I know) and then just read through some getting started tutorials.
See these links for more information:
http://arduino.cc/en/[^]
Arduino Unleashed[^]
http://www.technicana.com/physical-computing/73-connect-to-the-arduino-with-c-.html[^]
http://www.instructables.com/id/Interfacing-your-arduino-with-a-C-program/[^]
For interfacing using USB you may want to read about the FTDI virtual serial port that may be used to communicate with an USB device which creates a virtual com port on Windows.
Enjoy coding!!


这篇关于USB AVR uController接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆