嘿,吉姆,以前的帖子是正确的,系统时钟需要24MHz的CPU和USB共享RAM。一些其他的提示应该帮助您的应用程序-在系统模块集自动调谐模式“使用USB主机时钟参考”,如果你计划使用FoSC为您的系统时钟-在CDCCUM端点描述符在文件“UbxDealthult.C'中将大小从0x08更改为0x0A/*端点描述符*//siZeof(UbjEppyDSC)、DSCyEP、YEP02IIN、γIN、CDCL IN ApEx大小、0x02、0x07、/*siZeof(UBS.EPU-DSC)*/UBS-描述符端点、/端点描述符αEP01IN、/ /端点地址中断、//ATun颂歌0x0a,0x00,//大小0x02,//际感谢,罗伊
以上来自于百度翻译
以下为原文
Hey Jim,
The previous posts are correct, the system clock need to be 24MHz for the CPU and USB to share RAM.
A couple of other tips that should help your application:
- In the System Module set Auto Tuning Mode to 'Use USB Host Clock Reference' if you plan to use FOSC for your system clock
- In the CDC Comm endpoint descriptor in the file 'u***_descriptors.c' change the size from 0x08 to 0x0A
/* Endpoint Descriptor */
//sizeof(USB_EP_DSC),DSC_EP,_EP02_IN,_INT,CDC_INT_EP_SIZE,0x02,
0x07,/*sizeof(USB_EP_DSC)*/
USB_DESCRIPTOR_ENDPOINT, //Endpoint Descriptor
_EP01_IN, //EndpointAddress
_INTERRUPT, //Attributes
0x0A,0x00, //size
0x02, //Interval
Thanks,
Roy
嘿,吉姆,以前的帖子是正确的,系统时钟需要24MHz的CPU和USB共享RAM。一些其他的提示应该帮助您的应用程序-在系统模块集自动调谐模式“使用USB主机时钟参考”,如果你计划使用FoSC为您的系统时钟-在CDCCUM端点描述符在文件“UbxDealthult.C'中将大小从0x08更改为0x0A/*端点描述符*//siZeof(UbjEppyDSC)、DSCyEP、YEP02IIN、γIN、CDCL IN ApEx大小、0x02、0x07、/*siZeof(UBS.EPU-DSC)*/UBS-描述符端点、/端点描述符αEP01IN、/ /端点地址中断、//ATun颂歌0x0a,0x00,//大小0x02,//际感谢,罗伊
以上来自于百度翻译
以下为原文
Hey Jim,
The previous posts are correct, the system clock need to be 24MHz for the CPU and USB to share RAM.
A couple of other tips that should help your application:
- In the System Module set Auto Tuning Mode to 'Use USB Host Clock Reference' if you plan to use FOSC for your system clock
- In the CDC Comm endpoint descriptor in the file 'u***_descriptors.c' change the size from 0x08 to 0x0A
/* Endpoint Descriptor */
//sizeof(USB_EP_DSC),DSC_EP,_EP02_IN,_INT,CDC_INT_EP_SIZE,0x02,
0x07,/*sizeof(USB_EP_DSC)*/
USB_DESCRIPTOR_ENDPOINT, //Endpoint Descriptor
_EP01_IN, //EndpointAddress
_INTERRUPT, //Attributes
0x0A,0x00, //size
0x02, //Interval
Thanks,
Roy
举报