|
|
View previous topic :: View next topic |
Author |
Message |
hadeelqasaimeh
Joined: 05 Jan 2006 Posts: 105
|
how to interface usb |
Posted: Thu Jul 05, 2007 6:06 pm |
|
|
hi
its first time to deal with USB,i need to read from and write to , i have no idea how to start?i see the libraries and examples of ccs, but still not understand
can any body help me please? |
|
|
mskala
Joined: 06 Mar 2007 Posts: 100 Location: Massachusetts, USA
|
|
Posted: Fri Jul 06, 2007 7:13 am |
|
|
USB has a complicated spec. But you can use it with the CCS libraries without much detailed knowledge. The important thing to know is that the PIC cannot be the host, i.e. you will not be able to plug a usb thumb drive into the PIC. The libraries will allow you to easily connect your PIC to a host PC to transfer data in a number of different ways, like as a USB-RS232 bridge. |
|
|
Pret
Joined: 18 Jul 2006 Posts: 92 Location: Iasi, Romania
|
|
Posted: Mon Jul 09, 2007 5:04 am |
|
|
mskala wrote: | USB has a complicated spec. But you can use it with the CCS libraries without much detailed knowledge. The important thing to know is that the PIC cannot be the host, i.e. you will not be able to plug a usb thumb drive into the PIC. The libraries will allow you to easily connect your PIC to a host PC to transfer data in a number of different ways, like as a USB-RS232 bridge. |
Is there a place where it says that it cannot be a Host too? As i do remember there was a discution about how can you make it Host. |
|
|
Ttelmah Guest
|
|
Posted: Mon Jul 09, 2007 7:18 am |
|
|
At heart, the hardware is lacking. The USB host, has a lot of extra stuff needed that is not present in the PIC at all. :(
You can work as a host, by adding another control chip. The 'classic, is the FTDI Vinculum chip, which is a complete USB host implementation in a single chip. You can talk to this using SPI, or async serial, and software is available for it to perform standard host control functions for things like storage devices.
It is potentially possible to build a firmware host, for talking to a single device, if you have complete access to the specs for this device, know it is not going to change, and it works at slow speed, but going beyond this, a hardware solution is needed.
Best Wishes |
|
|
|
|
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
|