USB code samples

Have you got the greatest 48 bit multiplier ever conceived? Prove it - post your code here.

Moderator: phalanx

Post Reply
Posts: 3
Joined: Thu Mar 17, 2005 11:42 pm

USB code samples

Post by Lancecoder » Thu Mar 17, 2005 11:50 pm


Would anybody happen to have any simple[ish] USB code samples for the PIC18F2455/2550 series chips? I got my $12 olime programmer to write to an 18F2455 using the WinPic800 software, and I usually do learn better when I've got an example to read off of. The data sheet's section on USB is making very little sense to me.

I plan on finding a book on USB anyways, but if anybody's got some USB code (c or asm) that would be very helpful! I'm currently using the SourceBoost IDE with BoostC.



Posts: 29
Joined: Thu Feb 03, 2005 12:16 pm

Post by Pryankster » Fri Mar 18, 2005 12:20 am

Check out the sample USB code supplied by Microchip for their
"PICDEM USB Full speed".

This page has links to the demo board software, USB boot loader code, etc.

Another interesting resource is the USB Implementer's Forum web site.

They have a developers section with some specs and tools (if you're developing a HID device, they have a nice tool for generating the HID parameter blocks

Good luck,
-- pryankster

Posts: 40
Joined: Tue Feb 01, 2005 5:55 pm

Post by BigJP » Sat Mar 19, 2005 11:46 am

What programmer did you use and how did you set it up?? I have been looking for a cheap way to get these things programmed

Posts: 9
Joined: Mon May 14, 2007 8:24 am
Location: Rochester, NY

Post by mknudson » Tue May 15, 2007 10:48 am

A good site to look at for this is:

look under the heading:

Microchip PIC18F4550

The PIC18F4550 is in the same family as the 2550.

User avatar
Support Volunteer
Posts: 5734
Joined: Sun May 01, 2005 11:20 am
Location: St. Leonards-on-Sea, E. Sussex, UK.

Post by leon_heller » Tue May 15, 2007 11:32 am

18F2455 USB hardware and software:


Leon Heller

Earl Harding
Posts: 2
Joined: Fri Jul 09, 2010 2:40 pm

Re: USB code samples

Post by Earl Harding » Fri Jul 09, 2010 2:59 pm

The microchip applications library has a boatload of them. ... e=en547784

Post Reply