完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
上周我发誓我有两个GPIO端口安装和工作。假设我做的正确,我在MHC中设置了一些默认值,用于PIN RB10-我将函数设置为“GPIO”方向,输出锁存到Low,模式数字。然后在代码中,我做了一些调用,例如:PiBixPosisPiNeCube(PosisSIDIO0,PotoShannEngB,PoxsS.BiPosiPoS10);ANPLIPBIAL PosisSpISET(PoxsSIDID0,PotoShannEngB,PoxsS.BITPoxPoS10);我有一个万用表连接,它在0到3.3V之间切换,因为我调用函数来回切换。直到今天。现在,无论我设置的还是我的切换,RB10引脚都是3.3V。上周我做的唯一不同的是,我曾经从Flash而不是ICD3编程和启动。我已经回到使用ICD3,它仍然没有工作。我也有同样的问题与另一个引脚-相同的行为。对Flash编程是否像锁定PIN配置或其他可能丢失的东西?我弄不明白为什么它不再工作了。
以上来自于百度翻译 以下为原文 Last week I swear I had two GPIO ports setup and working. Assuming I did this correctly, I had setup some defaults in the MHC for pin RB10 - I set the function as 'GPIO' Direction to Out, Latch to Low, Mode Digital. And then in code I made some calls such as: PLIB_PORTS_PinClear(PORTS_ID_0, PORT_CHANNEL_B, PORTS_BIT_POS_10); and PLIB_PORTS_PinSet(PORTS_ID_0, PORT_CHANNEL_B, PORTS_BIT_POS_10); I had a multimeter connected and it toggled between 0 and 3.3V as I called the functions to toggle back and forth. Fast forward to today. Now that same RB10 pin is 3.3V regardless of what I set or my toggles. The only thing I have done different since last week is that I for once programmed and booted from the flash rather than the ICD3. I have since gone back to using the ICD3 and it still doesn't work. I have the same problem with another pin too - same behavior. Did programming the flash do something like lock the pin configuration or something to else that I might be missing? I cannot figure out why it is no longer working. |
|
相关推荐
3个回答
|
|
你使用的是哪种PIC芯片?你用PPS给PIN分配了外围功能吗?
以上来自于百度翻译 以下为原文 Which PIC chip are you using? Have you assigned a peripheral function to that pin with PPS? |
|
|
|
|
|
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
5238 浏览 9 评论
2028 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3204 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
777浏览 1评论
666浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
595浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
676浏览 0评论
576浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 04:57 , Processed in 1.334014 second(s), Total 80, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号