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.
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.hi every body
is it easy to connect a flash memory to 18f4550 and get data from it ..??
You need a USB host to communicate with a digital camera.
What is the PIC supposed to do with the data?[/QUOTE
okay, now the host is for enabling communication with camera (capture,transfer data,accessing modes,...) or for dealing with it as a normal USB enabled memory???
also I have another wonder, I have informed that pic 18f4550 can support USB so the question is why it does not deal with USB devices directly without the need of host![]()
Because it's a USB slave, NOT a host - you can't plug two flash drives together and copy from one to another, because BOTH are slaves. The USB on a PIC is a slave as well, for connecting to a PC.You need a USB host to communicate with a digital camera.
What is the PIC supposed to do with the data?[/QUOTE
okay, now the host is for enabling communication with camera (capture,transfer data,accessing modes,...) or for dealing with it as a normal USB enabled memory???
also I have another wonder, I have informed that pic 18f4550 can support USB so the question is why it does not deal with USB devices directly without the need of host![]()
As Bill says, what are you hoping to do with the data in a PIC anyway?, you don't have enough memory space to do much.
I just want to take photos from digital camera to the PIC then transfer this photo to a GPRS module in order to be send to a web page.Because it's a USB slave, NOT a host - you can't plug two flash drives together and copy from one to another, because BOTH are slaves. The USB on a PIC is a slave as well, for connecting to a PC.
As Bill says, what are you hoping to do with the data in a PIC anyway?, you don't have enough memory space to do much.
thats it!
PIC's don't have enough memory space to hold a digital photo, although it may be possible to buffer enough of it to send it in small pieces.I just want to take photos from digital camera to the PIC then transfer this photo to a GPRS module in order to be send to a web page.
But why USB?, just take the memory card out of the camera, and read that directly, which is pretty simple (compared with USB).
And makes it even more complicted to doNigel 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....