how can i add a usb flash memory to 18f4550

Status
Not open for further replies.
im not sure if thats even possible. You need a PIC that would act as a host and not a device which isnt made yet.. (i think) not sure
 
I heared about hosts... is that its function??

I thought that it enables the connection with camera to make the capture order??

so it enables transfering data from the memory of the camera that is usb accessed...???
 
A USB device is a item you plug into your PC
A USB host is either a PC or Other Device you plug your USB devices to.

Flash memory alone is different. But USB Flash Stick is a Device and you cannot (with usb) have 2 devices communicate with each other.
 
Use Compact Flash or SD a lot easier to do . using a pic as a host would take most all of it's flash. You have to bit bang it your self . They say AVR can run as a host
It you use the AT43USB380 chip then the USB host stack runs on
the chip and the USB Mass Storage Adapter runs on the CPU.
 
hi every body

is it easy to connect a flash memory to 18f4550 and get data from it ..??

It is not. First, you will need USB Host controller. I have a PIC18 code for MAX3421E USB host controller, you can look at my site to see what it looks like. Second, you'll need to write a code for Mass Storage Layer, SCSI, FAT, and finally your application. You can look at Microchip USB Stack to see what all these layers look like. Last, the thing is going to be slow. SD card connected to the same SPI port will work 10 times faster.
 
If you really want the flash drive, rather than a SD card, you can look at the FTDI Vinculum chip. In comes in a DIP eval module and provides a pretty seamless access to a USB flash drive. It even supports the file system.

I haven't used it myself, but researching it, it looks pretty good.

$24 for the evaluation DIP module from Digikey. $11 for the chip itself.
 
okay .. now my application is become more clear,

I have to take photos from a USB digital camera to the micro controller (pic)..

so I thought that I have to deal with it as a normal flash memory,isn't it?
 
 
 
 
 
Nigel the advantage of doing it USB is you dont have to worry about what protocol to use but usb. You can use a SD,XD,Compact Flash or what ever one of those 30in1 usb readers can handle....

And makes it even more complicted to do
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…