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 support@ccsinfo.com

write to usb memory device

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
delene



Joined: 13 Oct 2003
Posts: 32

View user's profile Send private message Send e-mail

write to usb memory device
PostPosted: Mon Aug 20, 2007 9:07 am     Reply with quote

Please can someone give an example on how to write data to a usb memory stick - flash drive.

Would really appreciate it if code could be posted

Many thanks
Delene
franck
Guest







PostPosted: Mon Aug 20, 2007 9:19 am     Reply with quote

You need an usb host device to write something in a memory stick. Pic are only usb devices...
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Mon Aug 20, 2007 10:01 am     Reply with quote

Remember USB is the horse that when designed by a committee becomes a camel. It might be said if RS232 (USB serial forerunner) is a flea then USB is the camel.Most often the PC is the host and USB devices are slaves. To have a PIC become the host is possible but it would need to be specifically written to support a specific USB device. Code to support all devices requires a bloated OS like windows with googles of space for driver after driver. Alternatives are MMC/SD cards since they have a PIC compatible SPI interface or there are specific chips that can interface with USB as a host and pass through data to a PIC. Search this forum I think FTDI has a usb host chip.
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Wed Aug 22, 2007 10:23 am     Reply with quote

Douglas Kennedy wrote:
Search this forum I think FTDI has a usb host chip.

Yes. It's called Vinculum http://www.vinculum.com
_________________
Read the label, before opening a can of worms.
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