CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Using USB and an EEPROM to create a memory stick (& keyb

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
JamesW,Rochester,UK
Guest







Using USB and an EEPROM to create a memory stick (& keyb
PostPosted: Wed Mar 03, 2010 10:57 am     Reply with quote

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

View user's profile Send private message

PostPosted: Wed Mar 03, 2010 1:54 pm     Reply with quote

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







PostPosted: Mon Mar 08, 2010 4:14 am     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Mar 08, 2010 12:16 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group