完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我试着在基于PIC32 MZ2048 EFG064处理器的自定义板上运行来自和谐V1.11的CDCKOMCORPORtiON单一示例。代码在CIPKIT WiFig板上正常工作,但不在我们的自定义板上运行。在浪费太多的精力去理解代码为什么不起作用之前,我想确保硬件设计是正确的。从我理解的(我主要是软件人),硬件设计是相当简单的。我附上我们实施的相关连接。看起来正确吗?
以上来自于百度翻译 以下为原文 I'm trying to run the CDC_COM_PORT_SINGLE sample from HARMony v1.11 on a custom board based on a PIC32MZ2048EFG064 processor. The code works properly on a Chipkit WiFire board, but doesn't run on our custom board. Before wasting too much on trying to understand why the code doesn't work, I'd like to make sure that the hardware design is correct. From what I understand (I'm mostly a software person), the hardware design is pretty straightforward. I'm attaching the relevant connections we implemented. Does it look correct? Attached Image(s) |
|
相关推荐
11个回答
|
|
这部分是足够好的(CAP在VUSB可能需要更大,但可以工作相同)。其余的示意图?
以上来自于百度翻译 以下为原文 This part is good enough (cap at VUSB may need larger, but could work all the same). And the rest of schematic? |
|
|
|
Cinzia,谢谢你的帮助。我没有自由展示整个图表,但是如果你有预想什么是错的,我可能会展示一些其他的特定部分。如果它是有用的,其余的板工作如预期(GPIOS,PWMS,SPI&I2C),它只是USB给我带来麻烦。我想我会花更多的时间在配置上。
以上来自于百度翻译 以下为原文 Cinzia, thanks for your help. I'm not at liberty to show the entire schematics, but I can probably show some other specific parts if you have a hunch on what might be wrong. If it's useful, the rest of the board works as expected (GPIOs, PWMs, SPI & I2C), it's only the USB that's giving me trouble. I guess I'll spend some more time on the configuration then. |
|
|
|
好啊!然后另一个问题可能是不正确的时钟设置…对你的板其余的好,但不适合USB…
以上来自于百度翻译 以下为原文 Ok! Then another issue could be improper Clock settings... good for the rest of your board but not suitable for USB... |
|
|
|
您好,我会检查连接器上的接地连接。USB是4线,除非你的电缆是移动PIN 5到PIN 4,你没有做出正确的连接,VUSB将不会启用PICS USB。简单的欧姆测试,PC的机箱(总是短路到USB返回)到你的地面与PC连接,而不是。(断开电源板,以防GND对底盘短路)。账单
以上来自于百度翻译 以下为原文 Hello, I would check your ground connection on connector. USB is 4 wires and unless your cable is moving pin 5 to pin 4, you are not making proper connections and VUSB will not be enabling the pics u***. Simple ohms test, chassis of PC ( always shorted to u*** return) to your ground with PC connected and not. ( disconnect your board from power in case it shorts GND to chassis also). bill |
|
|
|
你没有连接UBID/RF3。在我的测试中,和声似乎对这个PIN的状态很挑剔。它应该连接到OTG连接器的PN4,或者,如果你只使用它作为设备模式,它应该被设置为输入和接地(或设置为输出,并驱动到地)。它不应该是浮动的。
以上来自于百度翻译 以下为原文 You haven't connected USBID/RF3. Harmony seems to be picky about the state of this pin in my tests. It should be connected to PIN4 of the OTG connector, or if you are using it for device mode only, it should be set as input and grounded (or set as output and driven to ground). It should not be left floating. |
|
|
|
???????在OP的示意图中显示的ZX62D—B-5PA8是一个微型的USB - OTG连接器,GND在引脚5上。引脚4是UBID,并短路到标准微USB电缆引脚5。
以上来自于百度翻译 以下为原文 ?????? The ZX62D-B-5PA8 shown in the OP's schematic is a Micro USB-OTG connector, and GND is on Pin 5. Pin 4 is USBID, and is shorted to PIN 5 on standard Micro USB cables. |
|
|
|
我搞糊涂了。我看到您在另一个线程中写道:“使用”Apple PrimaMac配置FiBidio= on,您应该将R3/UBID浮动,或者连接到USB连接器的ID引脚,作为一个设备的适当枚举(它被USB模块拉高)。《维基百科》文章中的OTG文章还指出:“OTG电缆一端有一个微型插头,另一端有一个微型插头(它不能有两个相同类型的插头)。OTG在标准USB连接器上增加了第五个引脚,称为ID引脚;MIC-A插头具有ID引脚接地,而微B插头中的ID是浮动的。
以上来自于百度翻译 以下为原文 I'm confused. I see that you wrote in another thread: "With #pragma config FUSBIDIO = ON, you should leave RF3/USBID Floating, or connect to the ID pin of the USB connector for proper enumeration as a device (it is pulled high by the USB module). Pulling low puts the USB module in Host mode, and it will not enumerate as a device." The OTG Article on Wikipedia article also states: "An OTG cable has a micro-A plug on one end, and a micro-B plug on the other end (it cannot have two plugs of the same type). OTG adds a fifth pin to the standard USB connector, called the ID-pin; the micro-A plug has the ID pin grounded, while the ID in the micro-B plug is floating." Just to be clear, this board needs to operate as a CDC device only. |
|
|
|
只是好奇,你看过探索者16示意图吗?这与PICTail合作可能会有所帮助。当我与PIC32 MX一起工作时,这指导了我关于操作所需的最小电路的许多设计。我现在收集了一个探险家16/32 PCB,所以看看USB PICTIEXPROTER 16/32开发PCB:HTTP://www. McCHIP.COM/DealthOrthsStudio/StudioDeplix.ASPX?PARTNO = Md24000 01-2μ=源微解和UTMX介质= Link and UTMyType=FY17Q3&UTMY内容=MCU16和UTMyActudio = TealUSB USB PcTeX:HTTP://www. MyCHIP.COM/DealthTooSts/Office DeXiLIL.ASPX?PARTNO = AC164131PER浏览器16/32在网站上的描述,它应该与传统PICTAYLS兼容。也许你不需要去购买所有这些东西来获取必要的基本信息,但我会查看图表并把它们拼在一起。毕竟,这些都是经过验证的MCHP设计。
以上来自于百度翻译 以下为原文 Just curious, have you had a look at the Explorer 16 schematics? This in conjunction with the PICTail might help. When I worked with the PIC32MX, this guided me with many designs regarding minimum circuitry required for operation. I gather now there is an Explorer 16/32 PCB, so look at the USB PICTail Explorer 16/32 Development PCB: http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=DM240001-2#utm_source=MicroSolutions&utm_medium=Link&utm_term=FY17Q3&utm_content=MCU16&utm_campaign=Article USB PICTail: http://www.microchip.com/DevelopmentTools/ProductDetails.aspx?PartNO=AC164131 Per the Explorer 16/32 description on the site, it should be compatible with the legacy PICTails... Maybe you don't need to go buy all these things to get the basic information necessary, but I would look into the schematics and put the pieces together. After all, these are MCHP designs that are proven commodities. |
|
|
|
我想我弄糊涂了……-SI现在有2个项目在MZ上使用USB。第一个有UBID接地、输入和FiBidio= OFF。第二,我有UBID连接到USB连接器,FiBidio= On附着是我的顶层布局。
以上来自于百度翻译 以下为原文 I think I'm confusing myself....:-S I have 2 projects under development at the moment using USB on the MZ. In the first has USBID grounded, input and FUSBIDIO = OFF. In the second, I have USBID connected to the USB connector and FUSBIDIO = ON Attached are my top layer layouts. Attached Image(s) |
|
|
|
我在回答我自己的问题。问题在于振荡器。根据硅勘误表:修订版A1硅:晶体振荡器不能用作主振荡器(OSC1/OSC2引脚)的输入。因此,我们最终使用外部振荡器,并解决了这个问题。
以上来自于百度翻译 以下为原文 I'm replying to my own question. The problem was in the oscillator. According to the Silicon Errata: Revision A1 Silicon: A crystal oscillator cannot be used as an input to the Primary Oscillator (OSC1/OSC2 pins). So we ended up using an external oscillator, and that fixed the issue. |
|
|
|
您好,我认为VBUS在您的设计中有一个问题。一个OTG设计必须能够在VBUS /8MA上提供5V……PIC32不能提供,因为它有3.3V I/O域…所以这意味着您需要在外部开发一个(可能复杂的)OTG电路来在设备和OTG主机之间切换(I)。PIC32 MZ EF启动器套件演示如何做一个“正确”的OTG电路(查看工具箱用户手册)
以上来自于百度翻译 以下为原文 Hi, I think there is an issue with Vbus in your design. An OTG design must be able to supply 5V on Vbus / 8mA...which the PIC32 cannot supply because it has a 3.3V I/O domain... So it means that you need to develop a (possibily complex) OTG circuitry externally to switch between device and OTG HOST (if necessary). The PIC32MZ EF starter kit shows how to do a "proper" OTG circuitry (look in the kit user manual) Regards |
|
|
|
只有小组成员才能发言,加入小组>>
5170 浏览 9 评论
2001 浏览 8 评论
1931 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3176 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2228 浏览 5 评论
737浏览 1评论
622浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
509浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
635浏览 0评论
531浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-25 22:21 , Processed in 1.301111 second(s), Total 66, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号