使用vc#2008通过USB端口与at90usb1287通信 [英] communicating with at90usb1287 by usb port using vc# 2008

查看:131
本文介绍了使用vc#2008通过USB端口与at90usb1287通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Windows窗体应用程序项目.与我的AVR微控制器通讯时遇到严重问题:at90usb1287.我已经使用vc#设计了一个表单,并根据用户的输入,将数据发送到AVR Micro的eeprom.我想通过USB端口将数据发送到它的eeprom中.有什么办法吗?

I am working on a windows forms application project. I have a serious problem in communicating with my avr microcontroller: at90usb1287. I have designed a form using vc# And according to the input from the user, am going to send data to eeprom of the avr micro. I want to send data into its eeprom via nothing but the usb port. Is there any way to do this? somebody plz help!

推荐答案



要与AVR通信,您将需要Atmel提供的AtUsbHid.dll.您应该与他们联系或尝试从他们的网站获取dll.我很确定他们也有一些示例(至少对于连接控制器的基本内容而言).
Hi,

to communicate with the AVR, you will need the AtUsbHid.dll provided by Atmel. You should contact them or try to get the dll from their website. I''m pretty sure they also have some examples (at least for basic stuff as connecting to the controller)


我非常怀疑这里的人是否有知识可以帮助您.最好与硬件制造商联系并从他们那里获取信息
I very much doubt that anybody here has the knowledge to help you with that. Much better to contact the hardware manufacturers and get the information from them


您是否可以简单地使用编程器软件来修改EEPROM?还是您特别需要能够使用在VS中制作的应用程序对其进行修改?

如果您确实需要在VS项目中执行此操作,那么我可以想到两个选择.要么为AVR编写一些代码,然后读取它的EEPROM并通过USB发送(不幸的是,为微控制器和USB编写代码相当复杂(除非它具有内置的USB功能))*.或者,您可以弄清楚编程器软件和/或编程器板是如何对AVR进行编程的.我以前没有使用过AVR芯片(只是其他微控制器),所以我对此没有太大帮助.

*不幸的是,USB比诸如串口之类的简单工具难用得多,因此编写程序以使用USB与您的AVR进行通信将相当复杂.
Could you not simply use the programmer software to modify the EEPROM? Or do you specifically need to be able to modify it using the application your making in VS?

If you do need to do it with your VS project, then there are two choices that I can think of. Either write some code for the AVR that will read it''s EEPROM and send it over USB (Unfortunately, writing code for microcontrollers and USB is fairly complicated (unless it has inbuilt USB functionality))*. Or you could figure out how the programmer software and/or the programmer board programs the AVR. I haven''t used AVR chips before (just other microcontrollers), so I''m not much help with that.

*Unfortunately, USB is much harder to use than something simple like a serial port, so it will be fairly complicated writing the program to use USB to talk to your AVR.


这篇关于使用vc#2008通过USB端口与at90usb1287通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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