完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我有一个24FJ256GB106设置在USB设备模式的大容量存储,它是完美地结合我的PC作为主机。除了一个问题:我不能得到VBUS关闭,以便使用GPIO感测主机连接。PIC VBUS引脚保持在3.7V(VCC=3.3V),一旦USB已配置。我有PIC VBUS引脚直接连接到相应的引脚上的USB插座,与100K下拉电阻。RF3也作为我的传感器连接。清除UBTCONtiTS。VBUSEN,U1PWCBITS.UBPWR,没有影响,也没有设置U1OTGCONBITS。VBDSDI.我需要禁用设备VBUS,而不需要随后的USB配置。如果我在USB配置上暂停,那么VBUS=0,但是如果我运行这个主机对象,在插件之后,我还尝试使用U1OTGSTATBITS。VBSVD=1作为连接的触发器,但这不起作用。我用24FJ256GB106做了一个公平的位,包括这个实际的大容量存储设置,以前没有出现过问题。
以上来自于百度翻译 以下为原文 I have a 24FJ256GB106 set up in USB device mode for mass storage and it is working perfectly in conjunction with my PC as host. Except for one problem: I can't get Vbus to turn off in order to use GPIO sensing of host hookup. The PIC Vbus pin remains at 3.7V (Vcc=3.3V) once the USB has been configured. I have the PIC Vbus pin connected directly to the corresponding pin on the USB socket, with a 100K pull down resistor. RF3 is also connected as my sensor. Clearing U1OTGCONbits.VBUSON, U1PWRCbits.USBPWR, has no effect nor does setting U1OTGCONbits.VBUSDIS. I need to disable device Vbus without subsequently requiring a USB configuration. If I hold off on USB configuration then Vbus=0 but the host objects if I run that after plug-in. I have also tried using U1OTGSTATbits.VBUSVD=1 as a trigger for hookup but that doesn't work. I have done a fair bit with 24FJ256GB106 including this actual mass storage setup and haven't had the problem before. |
|
相关推荐
1个回答
|
|
你找到问题了吗?我与APIC24FJ256DA210有同样的问题。
以上来自于百度翻译 以下为原文 Did you find the issue? I am having the same problem with a PIC24FJ256DA210. |
|
|
|
只有小组成员才能发言,加入小组>>
5323 浏览 9 评论
2076 浏览 8 评论
1982 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3254 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2293 浏览 5 评论
835浏览 1评论
732浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
674浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
729浏览 0评论
622浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-4 05:54 , Processed in 1.048750 second(s), Total 42, Slave 37 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号