View previous topic :: View next topic |
Author |
Message |
bharatwalia
Joined: 04 May 2009 Posts: 35 Location: India
|
usb example project |
Posted: Thu Jun 25, 2009 2:25 pm |
|
|
Hi, I got a "PIC18f2550" IC can anybody get me some usb example projects so that I am able to interface my PC with the PIC.
Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Jun 25, 2009 2:37 pm |
|
|
Do you own the CCS compiler ? Look in the Examples directory.
It has all these USB examples:
Quote: |
c:\program files\picc\examples\ex_usb_hid.c
c:\program files\picc\examples\ex_usb_scope.c
c:\program files\picc\examples\ex_usb_mouse.c
c:\program files\picc\examples\ex_usb_kbmouse2.c
c:\program files\picc\examples\ex_usb_kbmouse.c
c:\program files\picc\examples\ex_usb_serial2.c
c:\program files\picc\examples\ex_usb_serial.c
c:\program files\picc\examples\ex_usb_bootloader.c
c:\program files\picc\examples\ex_usb_loadmouse.c
|
|
|
|
bharatwalia
Joined: 04 May 2009 Posts: 35 Location: India
|
|
Posted: Thu Jun 25, 2009 2:50 pm |
|
|
yes , i own a ccs compiler.But i need some PC side examples like in VC++ or in VB |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Jun 25, 2009 3:09 pm |
|
|
Look in the Code Library forum.
This is a 2-page thread which uses Microsoft .net tools to create the
PC-side USB Windows application:
http://www.ccsinfo.com/forum/viewtopic.php?t=24207
If you have current compiler maintenance with CCS, then you can
download the USB development kit files. There's a button for it in
the lower right corner of this page:
http://www.ccsinfo.com/compilerupdates.php
It has sample Windows applications written in Delphi. These are an
"Oscope" application and an "HidDemo" application. |
|
|
xuxa
Joined: 07 Jul 2009 Posts: 4
|
sample code |
Posted: Tue Jul 07, 2009 8:30 pm |
|
|
I tried to use the
Quote: | c:\program files\picc\examples\ex_usb_hid.c |
in CCS compiler.
What changes do I have to do in the code, or wich header codes and sources codes do I have to add to compile the project?
I would like to use this to make a keybord interface to a LCD display, so any character pressed in keyboard is shown on LCD.
Im from Brazil, my english is not good, thanks |
|
|
|