View previous topic :: View next topic |
Author |
Message |
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
Is it low USB speed supported on CDC CCS library? |
Posted: Sat Sep 12, 2020 10:14 am |
|
|
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: 19506
|
|
Posted: Sat Sep 12, 2020 10:28 am |
|
|
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
|
|
Posted: Sat Sep 12, 2020 10:56 am |
|
|
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: 19506
|
|
Posted: Sat Sep 12, 2020 12:44 pm |
|
|
#use delay(clock=24M, USB_LOW)
You have a 6MHz crystal?. |
|
|
E_Blue
Joined: 13 Apr 2011 Posts: 417
|
|
Posted: Sat Sep 12, 2020 9:48 pm |
|
|
Yes, I have a 6MHz crystal. _________________ Electric Blue |
|
|
|