Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

How to start on USB with PIC

Status
Not open for further replies.

annna

Member level 2
Joined
Jun 17, 2010
Messages
52
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
pak
Activity points
1,682
I have been given the task to learn USB communication between PIC and PC. I have studied a little bit of PIC microcontroller using PICBASIC but I am new to handle PIC using C language. Therefore I need you guys to help me out that how should I start??
 

joseMiguel

Member level 5
Joined
Jan 10, 2011
Messages
83
Helped
10
Reputation
20
Reaction score
10
Trophy points
1,288
Location
Montpellier FRANCE
Activity points
1,856
Hi,

Just to describe my experience.
1) For begining i bought a PICDEM FS USB based on PIC18F4550. (you can buy other demo boards)
it handles only device USB at full speed
2) i installed the firmware and the PC demos and i have played with it.
3) I built my own specific board
4) i did my PC interface using C# express 2010
regards
JoseMiguel
 

annna

Member level 2
Joined
Jun 17, 2010
Messages
52
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
pak
Activity points
1,682
Actually I don't know even the basics of USB. So I can not understand how to start, where to study about the firmware etc. Any link or book that may help me to learn the firmware easily from the basics.... Reply soon....

Regards....
 
Last edited:

Nick C.

Full Member level 5
Joined
Dec 19, 2002
Messages
281
Helped
33
Reputation
66
Reaction score
25
Trophy points
1,308
Activity points
2,213
Annna,

Find yourself a copy of Jan Axelson's excellent book, USB Complete. This should be a good place to start,
and as a bonus, it covers both C and PicBasic Pro.

Jan Axelson's Lakeview Research

If money is more plentiful than time, then conside HIDmaker FS. This suite will write the code for you,
both on the PC side AND the PIC side. It will also output PBP code. The only downside is the cost - $600USD.

HIDmaker FS - Total Solution USB Programming
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,273
Trophy points
1,413
Location
Southwest, USA
Activity points
62,490
Hi Annna,

The foremost book on the subject is still Jan Axelson's book:

USB Complete: The Developer's Guide (Complete Guides series)

There are other published texts on the subject, however the list is unfortunately very short and Jan's book stands far above the other few.

Developing a USB device can be extremely difficult to rather painless depending the protocol model being implemented.

As JoseMiguel recommended, the best approach maybe to purchase a development board which is well documented and supported.

I have at least one of each of the following:

PICDEM Full Speed USB

PIC18F47J53 FS USB PIM Demo Board

PIC18F46J50 FS USB Demo Board

PIC18 Explorer Board

Explorer 16 Development Board

The first three choices are the least expensive $40-$60 USD and most likely the best choices for the novice. The second and third items are PIMs which you can plug into an PIC18 Explorer board in the future.

Also be sure and download/read the user manuals, guides and other docs pertaining to USB on the product pages above, they contain a wealth of information concerning USB development.

I also have the:

Low Pin Count USB Development Kit

It's an inexpensive kit, however to debug an app requires purchasing additional accessories. I believe one of the two PIMs I list above to be a better choice.

I prefer Microchip's Dev Boards for the development of commercial applications, they are extremely well documented, supported and large user base.

However if you desire a board for educational purposes only, you might take a look at MikroE's

EasyPIC6 Development System

This latest dev board has a Microchip ICD port making it compatible with MPLAB and supported compilers, earlier versions require the use of MikroE's compilers and IDE, unless you want to do some fancy footwork. Personally, I find their boards way too cluttered to do commercial development, but they do offer a lot of bang for the buck for students.

Checkout the following for more info on the USB Protocol:

Embedded USB - a brief tutorial

USB interface tutorial covering basic fundamentals

Hope the info helps in your endeavors.
 

annna

Member level 2
Joined
Jun 17, 2010
Messages
52
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
pak
Activity points
1,682
Okay here I am again.......... I am now able to do simple USB communication....... And now I want to make an interface between two mass storage devices so that I can transfer data from one device to another without using a PC..... I want to make it a simple one, that it transfers data of only one format....... I know it's not simple or easy, but I really need help...... Can anyone explain to me the procedure how to do this????
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,663
Helped
14,076
Reputation
28,409
Reaction score
12,742
Trophy points
1,393
Location
Bochum, Germany
Activity points
276,908
And now I want to make an interface between two mass storage devices so that I can transfer data from one device to another without using a PC.
You'll need a host interface USB processor, e.g. a PIC24. Or more exactly two host interfaces or an additional USB hub. You can e.g. refer to some PIC reference projects that access an USB memory stick. You should also consider, that the throughput provided by full speed USB isn't particularly mind blowing. Depending on your application, it may be meaningful to revert to a high speed USB controller.
I know it's not simple or easy.
That's for sure.
 

squallrod

Newbie level 1
Joined
Aug 16, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,287

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top