CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Usb problems

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

Usb problems
PostPosted: Sun Jan 23, 2011 1:45 pm     Reply with quote

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: 19365

View user's profile Send private message

PostPosted: Sun Jan 23, 2011 2:44 pm     Reply with quote

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

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 23, 2011 3:08 pm     Reply with quote

thanks for ur help
_________________
...
Bilal



Joined: 24 Apr 2010
Posts: 75
Location: Islamabad

View user's profile Send private message Send e-mail

PostPosted: Sun Jan 23, 2011 3:10 pm     Reply with quote

Please can u explain me about 'USB connection sense pin'
_________________
...
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sun Jan 23, 2011 4:24 pm     Reply with quote

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

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Jan 24, 2011 9:13 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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