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
Posted: Mon Aug 20, 2007 9:19 am
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
Posted: Mon Aug 20, 2007 10:01 am
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
Posted: Wed Aug 22, 2007 10:23 am
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.
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