完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在使用一个简单的USB程序在开发板上运行。这个PDFHTTP://WW1.MICCHIP.COM/DeLoSt/En/DeVICECDOC/7000 05316A.PDFF似乎引用了J3的不同端口,这些端口在板上的任何地方都找不到。我至今为止,我已经通过J12USB端口连接到计算机。MPLAB X作为程序员正确地读取它。使用和声,我初始化了时钟,如图中所示。我初始化了USB堆栈,如图中所示。我编译了代码并下载到PIC上,它工作了。我拔出J12USB并插入到J13USB OTG中。似乎没有什么是正确的。另外一个配置是让J12插入并在调试器中运行代码并将另一个USB插入到J13中,但也不起作用。所有跳线都处于默认位置。此外,似乎内部时钟可以达到48兆赫的USB,这是否意味着PIC32 MK可以没有外部振荡器或应该增加一个更好的精度?谢谢!
以上来自于百度翻译 以下为原文 I am having uses getting a simple USB Program Running on the development board. This pdf http://ww1.microchip.com/downloads/en/DeviceDoc/70005316A.pdf seems to be referencing different ports like J3 which I can't find anywhere on the board. What I have so far: I have the board connected to the computer through J12 USB port. MPLAB X reads it properly as the programmer. Using hARMony I initialized the clock as shown in the picture. And I initialized the USB stack like shown in the picture. I compiled the code and downloaded it to the PIC and it worked. I unplugged J12 USB and plugged it into J13 USB OTG. Nothing seems to be reading it right. Another Configuration I had was Leaving J12 plugged in and running the code in the debugger and plugging another USB into J13 but it didn't work either. All the jumpers were in their default positions. What painfully obvious beginner step am I missing? Also, it seems the internal clock can reach 48 MHZ for USB so does that mean the PIC32MK can do without an external oscillator or should one be added for better accuracy? Thanks! Attached Image(s) |
|
相关推荐
3个回答
|
|
内部振荡器对于USB来说可能不够精确。你很可能需要一个外部的。
以上来自于百度翻译 以下为原文 The Internal Oscillator is probably not accurate enough for USB. You will most likely need an external one. |
|
|
|
您好,如果您研究MK设备的数据表,DS600 01402E页162图9-1,您可以看到振荡器块被设计为没有从FRC振荡器到USB PLL输入的路径,也没有从系统PLL输出到USB PLL输入的路径。我认为这是故意的,以阻止任何人制造。配置将打破USB规范。有一个连接从FRC振荡器8兆赫到USB。这是用于USB低速操作,或者保持USB活着,以便它能够检测流量。迈西尔
以上来自于百度翻译 以下为原文 Hi, If you study datasheet for the MK device, DS60001402E-page 162 Figure 9-1, you may see that the oscillator block is designed such that there is no path from FRC oscillator to USB PLL input, nor from System PLL output to USB PLL input. I think this is deliberate, to discourage anyone from making a configuration that will break USB specification. There is a connection from FRC oscillator 8 MHz to USB. This is for USB Low speed operation, or to keep USB alive such that it may be able to detect traffic. Mysil |
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5007 浏览 9 评论
1923 浏览 8 评论
1853 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3070 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2145 浏览 5 评论
579浏览 1评论
435浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
478浏览 0评论
372浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
856浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 15:34 , Processed in 1.226845 second(s), Total 104, Slave 87 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191