CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC18F4550 CDC + HID

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Nicce



Joined: 14 Sep 2010
Posts: 5

View user's profile Send private message

PIC18F4550 CDC + HID
PostPosted: Fri Jan 07, 2011 2:33 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 07, 2011 11:29 am     Reply with quote

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

View user's profile Send private message

PostPosted: Fri Jan 07, 2011 1:24 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Jan 08, 2011 5:58 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Aug 13, 2013 8:17 am     Reply with quote

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: 19539

View user's profile Send private message

PostPosted: Tue Aug 13, 2013 8:44 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Aug 13, 2013 11:26 am     Reply with quote

Ttelmah wrote:

ex_usb_hid_and_cdc.c

Thanks!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group