View previous topic :: View next topic |
Author |
Message |
JamesW,Rochester,UK Guest
|
Using USB and an EEPROM to create a memory stick (& keyb |
Posted: Wed Mar 03, 2010 10:57 am |
|
|
Hi folks,
I don't know if anyone can offer any pointers here.
I am trying to make my own memory card using a pic and a 512KB eeprom. Is this possible?
What I need to do is create a usb device that has a singe button on it, that when pressed runs a very small executable program from the memory card.
Thoughts were to incorporate a keyboard HID and a mass storage device, but I'm not really sure if this is the right way to go about it.
Thanks in advance
James |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Mar 03, 2010 1:54 pm |
|
|
The device should implement the mass storage device class, if it's
intended to be written as a memory, but I don't see a purpose for HID.
If a dedicated PC application is providing the device interface,
you can use any USB device class of your choice. |
|
|
JamesW, Rochester, UK Guest
|
|
Posted: Mon Mar 08, 2010 4:14 am |
|
|
Thanks for the tip.
What do I do with regards to a file system on it? Can I just allow access to the eeprom, or do i need to be a bit more sophisticated?
Cheers
James |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Mon Mar 08, 2010 12:16 pm |
|
|
Mass storage device class uses a logical block addressing with 512 Byte blocks for small memory. File system
handling is done on the PC side. But you may want to preformat the file system and create fixed entries in the
FAT and root directory for files controlled by your application. |
|
|
|