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

Is it low USB speed supported on CDC CCS library?

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



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

Is it low USB speed supported on CDC CCS library?
PostPosted: Sat Sep 12, 2020 10:14 am     Reply with quote

Is it possible to use a PIC18F14K50 USB in low speed mode?

I'm developing a portable device and need to use a 6MHz Crystal so I need to use low speed mode.
_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Sat Sep 12, 2020 10:28 am     Reply with quote

Yes.
However remember that not all devices support low speed.
So you cannot support bulk transfers on a low speed device, which
rules out an MSD device for example.
HID device, no problem.
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Sat Sep 12, 2020 10:56 am     Reply with quote

I must to declare something else or with this is enough?


Code:
#fuses NOWDT,PUT,HS,PLLEN,CPUDIV1,USBDIV1,MCLR,BROWNOUT,NOLVP,PROTECT,NOCPD,BORV30 //18F14K50
#use delay(clock=24M)

_________________
Electric Blue
Ttelmah



Joined: 11 Mar 2010
Posts: 19546

View user's profile Send private message

PostPosted: Sat Sep 12, 2020 12:44 pm     Reply with quote

#use delay(clock=24M, USB_LOW)

You have a 6MHz crystal?.
E_Blue



Joined: 13 Apr 2011
Posts: 417

View user's profile Send private message

PostPosted: Sat Sep 12, 2020 9:48 pm     Reply with quote

Yes, I have a 6MHz crystal.
_________________
Electric Blue
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