Hi,
in our project, we are using 18f4620 controller.some information is saved in external eprom connected to this controller. i want to connect one pendrive (usb) to my board for collecting those data saved. (later, pendrive is connected to pc for display)
for that i have to interface one usb female connector with my pic controller.
how can i interface usb with 18f4620 ?
please help
in our project, we are using 18f4620 controller.some information is saved in external eprom connected to this controller. i want to connect one pendrive (usb) to my board for collecting those data saved. (later, pendrive is connected to pc for display)
for that i have to interface one usb female connector with my pic controller.
how can i interface usb with 18f4620 ?
The short answer is: you cannot interface a USB Device/Slave Class directly to a microcontroller which does not offer a USB Host Class interface, at least not without additional interface controller logic.
There are third party devices available to accomplish the task:
However, in the long run you maybe better off selecting a microcontroller which offers a USB Host Class Interface, such as some of the PIC24s, PIC32s or ARM Cortex-Mx series.
You might also consider writing your data to a flash card, which can be interfaced using the SPI interface already available on the PIC18 utilized in your design. The flash card can then be accessed by a PC with a flash card USB Reader/Writer interface.
No, the CP2102 is a USB Device Class Controller, you need a USB Host Class Controller.
Specifically, the CP2102 implements a USB Device CDC Class interface, a virtual serial COM port. The key terms are Device and Host, the CP2102, a USB Device, requires a USB Host to interface, such as a PC.
A USB flashdrive is a USB Device Class Interface, therefore you need a USB Host Class Interface to which the USB flashdrive connects.
You could use the CP2102 or FT232R to effectively allow your design to become a USB Device which could then download data directly to the PC without any need of a transfer media like the USB flashdrive.
Although you still might be better off replacing the PIC18F4620 with a PIC18 which offers a USB Device Class Interface, it maybe more cost effective.
You might also consider writing your data to a flash card, which can be interfaced using the SPI interface already available on the PIC18 utilized in your design. The flash card can then be accessed by a PC with a flash card USB Reader/Writer interface.
I just came across FTDI updated version of the VDrive, the VDrive3, which is preprogrammed with the firmware for reading/writing of USB flash memory devices: