Author Topic: Write EEPROM with PC app in C#  (Read 16332 times)

Brewerswin28

  • Member
  • ***
  • Posts: 4
Write EEPROM with PC app in C#
« 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

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: Write EEPROM with PC app in C#
« Reply #1 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
« Last Edit: December 03, 2010, 11:53:11 am by Jan Axelson »

Guido Koerber

  • Frequent Contributor
  • ****
  • Posts: 72
Re: Write EEPROM with PC app in C#
« Reply #2 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.