PORTS Forum

Ports and Interfaces => USB => Topic started by: Brewerswin28 on December 02, 2010, 11:36:07 am

Title: Write EEPROM with PC app in C#
Post by: Brewerswin28 on December 02, 2010, 11:36:07 am
Hello All,

I am trying to write to the (external) EEPROM of my HID device using usb communication to my PC.  My device is currently being recognized because I modefied the example code available on Jan Axelsons website.
http://www.lvr.com/hidpage.htm
The processor which i am using is the AT90USB162. 
My problem is that I do not know how to write bytes to specified memory locations on the EEPROM chip using this PC application.  If anyone could offer me some insight or sample code, that would be greatly appreciated.

Regards,

-Brian
Title: Re: Write EEPROM with PC app in C#
Post by: Jan Axelson on December 03, 2010, 10:10:16 am
The PC application can write whatever it wants to the device. It's up to the device firmware to figure out what to do with it. So you need to define and implement a protocol that tells the device firmware how to use the received data. The AVR forums such as www.avrfreaks.net might be a better place for AVR-specific details.

Jan
Title: Re: Write EEPROM with PC app in C#
Post by: Guido Koerber on December 03, 2010, 10:40:31 am
Not sure if this is a controller specific question, could be a question about the USB protocol as well. Without further details we can not help.