View previous topic :: View next topic |
Author |
Message |
Nicce
Joined: 14 Sep 2010 Posts: 5
|
PIC18F4550 CDC + HID |
Posted: Fri Jan 07, 2011 2:33 am |
|
|
Hi,
Is it possible to use a PIC18F4550 as CDC and HID device with CCS USB drivers?
Best Regards,
Nicce |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jan 07, 2011 11:29 am |
|
|
Some of the CDC files that come with the compiler:
Quote: | c:\program files\picc\examples\ex_usb_serial.c
// A demonstration of the USB CDC API that is provided by CCS.
c:\program files\picc\examples\ex_usb_serial2.c
// A demonstration of the USB CDC API that is provided by CCS.
c:\program files\picc\examples\ex_usb_bootloader.c
// This program is an example stand alone USB bootloader. It uses
// the communication device class (CDC) that creates a virtual COM
//// port on your PC.
c:\program files\picc\drivers\usb_cdc.h
// Library for adding a virtual COM port on your PC over USB using
// the standard Communication Device Class (CDC) specification.
c:\program files\picc\drivers\usb_desc_cdc.h
c:\program files\picc\drivers\usb_desc_cdcboot.h |
Other USB files, including HID:
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_bootloader.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_loadmouse.c |
|
|
|
Nicce
Joined: 14 Sep 2010 Posts: 5
|
|
Posted: Fri Jan 07, 2011 1:24 pm |
|
|
Yes, I have the examples working, what I meant was if it is possible to use e.g. the PIC18F4550 as a composite device with both CDC and HID at the same time.
I know that it is possible with the Microchip stack, but is it possible with the CCS drivers?
Regards,
Nicce |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Sat Jan 08, 2011 5:58 am |
|
|
Possible yes, but unsupported. You have to understand the design of the CCS usb examples and modify them accordingly. |
|
|
fkl
Joined: 20 Nov 2010 Posts: 44
|
|
Posted: Tue Aug 13, 2013 8:17 am |
|
|
FvM wrote: | Possible yes, but unsupported. You have to understand the design of the CCS usb examples and modify them accordingly. |
Please help me how to implement it? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19550
|
|
Posted: Tue Aug 13, 2013 8:44 am |
|
|
Have you got a recent compiler?.
Have you looked in the examples?.
ex_usb_hid_and_cdc.c
Appeared late 4.130ish .
Best Wishes |
|
|
fkl
Joined: 20 Nov 2010 Posts: 44
|
|
Posted: Tue Aug 13, 2013 11:26 am |
|
|
Ttelmah wrote: |
ex_usb_hid_and_cdc.c
|
Thanks! |
|
|
|