View previous topic :: View next topic |
Author |
Message |
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
Usb problems |
Posted: Sun Jan 23, 2011 1:45 pm |
|
|
hi. I am new to use usb MC (PIC18F4550). I am facing different problems.
Do I have to know everything about usb (protocols and other stuff) ? After that I will be able to begin to make a usb program?
And if I take a code from some where. Where I will find the driver for that to receive ma data from my PIC?
Is there any cheap (free) application for USB like a hyperterminal for Serial Port? _________________ ... |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19537
|
|
Posted: Sun Jan 23, 2011 2:44 pm |
|
|
USB CDC, can emulate a serial port.
No you don't really need to know anything aout USB. The code to do this comes with the CCS compiler (two serial USB examples).
Then the PC can use any serial program (like Hyperterm, or rather preferably almost any other serial program....).
Best Wishes |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
|
Posted: Sun Jan 23, 2011 3:08 pm |
|
|
thanks for ur help _________________ ... |
|
|
Bilal
Joined: 24 Apr 2010 Posts: 75 Location: Islamabad
|
|
Posted: Sun Jan 23, 2011 3:10 pm |
|
|
Please can u explain me about 'USB connection sense pin' _________________ ... |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sun Jan 23, 2011 4:24 pm |
|
|
Activating and deactivation of the USB interface according to VBUS is required by the USB standard. It's only relevant for selfpowered USB devices. |
|
|
dbotkin
Joined: 08 Sep 2003 Posts: 197 Location: Omaha NE USA
|
|
Posted: Mon Jan 24, 2011 9:13 pm |
|
|
More to the point... the USB connection sense pin is connected to the USB +5V line to tell the PIC when the USB interface is connected. If your project is powered from the USB interface, you don't need it since you can assume the host is always there. If your widget has its own power supply, then just use the USB power thru a resistor. |
|
|
|