Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

usb interfacing with microcontroller

Status
Not open for further replies.

lovelyrain

Newbie level 5
Joined
Jul 11, 2011
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347
please i need help to interface my pc with microcontroller using usb . the design is for a multimeter
 

xpress_embedo

Advanced Member level 4
Joined
Jul 5, 2011
Messages
1,165
Helped
161
Reputation
396
Reaction score
191
Trophy points
1,353
Location
India
Activity points
10,573
You need a controller having usb module.
Several controller are there in market.
Try using PIC18F4550 it having usb in built and microchip has also provided the free usb stack for its implementation.
 

lovelyrain

Newbie level 5
Joined
Jul 11, 2011
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,347
do i need a software on my pc to do d interfacing
 

nandhu015

Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,965
Helped
300
Reputation
600
Reaction score
224
Trophy points
1,353
Location
India
Activity points
9,845
Yes, at least a usb to serial driver..
 

pjmelect

Advanced Member level 2
Joined
May 13, 2012
Messages
536
Helped
125
Reputation
250
Reaction score
121
Trophy points
1,323
Activity points
4,597
Might I suggest that you use a USB to TTL serial adapter available from eBay for only a few pounds/dollars, these work well provided you do not want very high speed. If you get one of these type modules I recommend that you get a FT232RL type as they have Windows 8 drivers as well as handshaking.
 

nick703

Advanced Member level 1
Joined
Oct 17, 2011
Messages
411
Helped
21
Reputation
44
Reaction score
22
Trophy points
1,298
Location
surat
Activity points
3,855
yes pjmelect is right if u using FT232RL then it is the best converter of USB TO UART.

in this configuration u have to code your microcontroller side UART configure and this chip working . please read datasheet to understand how to connect with microcontroller to PC.

BUT IF U WANT TO CONNECT USING USB THEN PIC HAS A PROVIDED MICROCHIP APPLICATION LIBRARY TO USING CDC CLASS .
 

xpress_embedo

Advanced Member level 4
Joined
Jul 5, 2011
Messages
1,165
Helped
161
Reputation
396
Reaction score
191
Trophy points
1,353
Location
India
Activity points
10,573
In any case you need an application on pc side.
My suggestion is that either use usb-hid class or usb-cdc class
First make your usb device using pic and test it with pc.
For usb hid class you can use hid terminal from mikroelektronika and for usb cdc class you can use hyperterminal.
After testing your device move further.
If you use usb hid class then there is a usb hid tempelate in visual basic from which you can develop your own gui.

- - - Updated - - -

http://helmpcb.com/software/usb-hid-template-for-visual-basic-2005
 

jpsganesh

Full Member level 3
Joined
Aug 17, 2009
Messages
175
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Location
India
Activity points
2,285
Any sample code pls. I'm not good in programing.
Need PIC18F4550 sample code in C with configuration bits to interface with PC through USB.
 

jpsganesh

Full Member level 3
Joined
Aug 17, 2009
Messages
175
Helped
22
Reputation
44
Reaction score
21
Trophy points
1,298
Location
India
Activity points
2,285
sure i'll try & let u all know the result. thanks for the link.
 

embpic

Advanced Member level 3
Joined
May 29, 2013
Messages
742
Helped
80
Reputation
160
Reaction score
77
Trophy points
1,308
Location
india
Activity points
5,213
if you wanna implement USB on 18f4550 then use microchip MLA it can help you much more.
 

horace1

Advanced Member level 5
Joined
Nov 18, 2008
Messages
2,123
Helped
596
Reputation
1,188
Reaction score
573
Trophy points
1,393
Location
Norwich, UK
Activity points
13,071

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top