1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我在我的自定义板与PIC32 MX27 0F256D和配置使用PMP通过MHC。我已经配置了8位数据-不需要地址复用-数据只出现在PMP总线-连同RD+WR信号。我需要使用PMA的一部分,因为PMA不能启用,所以我应该能够独立使用这些引脚。但我发现这是非常令人沮丧的,我不能控制PMA的一部分的引脚:(我写简单的HI /低信号上的一个端口引脚,它没有显示任何东西。我还尝试使用PMA的其他引脚,但看到相同的结果。在代码中,如果我注释了DVVPMP00IMALIZIZE()行,那么我可以在那些PMA共享引脚上得到预期的输出。看来MHC没有为PMCON寄存器生成所需的ADRMUX位。我不知道如何跟踪实际写入的值。有人观察到类似的情况吗?有谁能帮助我知道我错过了什么?会真正感谢任何指针
以上来自于百度翻译 以下为原文 Hi, I am working on my custom board with PIC32MX270F256D and configuring using PMP through MHC. I have configured for 8bit data - and don't need Address multiplexing - data only appear on PMP bus - along with RD + WR signals. I need to use the pins which are part of PMA bus, since PMA is not enabled I should be able to use these pins independently. But I found this very frustrating that I am not able to control pins that are part of PMA :( I am writing simply hi/low signal on one of the port pin, and it does not show anything. I also tried using other pin of the PMA but seeing the same result. When in the code, if I comment out DRV_PMP0_Initialize() line, then I can get expected output on those PMA shared pins. It seems like MHC is not generating required ADRMUX bits for PMCON register. I am not sure how can I track to the actual values that are written. Has anyone observed anything similar? Can anyone help me on what I am missing? would really apreciate any pointer Thanks Silas |
|
相关推荐
2个回答
|
|
HiI搜索更多,我发现如下:HTTP://www. McCHIP.COM/FUMMS/FANDSPED/695870,PMA引脚不能用作输出-如此悲伤,但当我实际上提到了勘误表文档//WW1.MICCHIP.COM/DeLoSt/En/DeViCIDOC/80531 C.PDFI发现P5上有一个WORKONT-设置PMP地址功能,然后简单地写到PMA寄存器,而不是使用LATX:)我猜这应该工作-但会尝试在我的董事会实际和确认。我会在这里找到我的欢呼!西拉斯
以上来自于百度翻译 以下为原文 Hi I searched more and I found the following : http://www.microchip.com/forums/FindPost/695870 which says that the PMA pins cannot be used as outputs - so sad But when I actually referred to the errata document http://ww1.microchip.com/downloads/en/DeviceDoc/80531C.pdf I found that on P5, there is a workaround - set the PMP address functionality and then simply write to PMA register instead of using LATx :) I guess this should work - but will try actually on my board and confirm.. will post here what I find Cheers! Silas |
|
|
|
HII做了这个测试设置:使用PIC32 MX795F512L与TFT LCD - I配置的PMP作为8位使用RD+WR。并且还配置了两个引脚SCL5和SDA5-PIN 49和50作为I2C,这些引脚是PMA引脚的一部分,并且测试I2C功能,并且它工作得很好:所以我的假设是,这也应该像PIC32 MX27 0F256D一样工作。我猜,因为在MHC引脚表窗口中,我可以当PMA引脚不使用它们作为地址总线,因此允许重新映射这些引脚:SoScript功能:
以上来自于百度翻译 以下为原文 Hi I did this test setup: Using PIC32MX795F512L along with TFT LCD - I configured PMP to use use as 8Bit with RD+WR. And also configured two pins SCL5 and SDA5 - pins 49 and 50 as I2C, these pins are part of the PMA pins, and test the I2C functionality, and it works fine :) So my assumption is that this should also work as expected for device PIC32MX270F256D. I guess that since in the MHC pin table window, I can assign functionality to the PMA pins when not using them as address bus and thus allows remapping those pins :) Cheers Silas |
|
|
|
只有小组成员才能发言,加入小组>>
5237 浏览 9 评论
2027 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3202 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
772浏览 1评论
662浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
590浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
672浏览 0评论
572浏览 0评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 00:09 , Processed in 1.321525 second(s), Total 78, Slave 62 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号