完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在PIC32 MX507F512L上使用PMP模块上的芯片选择。我可以配置芯片选择极性,读/写频闪,地址/数据线,没有问题。芯片选择线去它们所配置的极性。然而,当我写数据时,芯片选择不活跃。我在我的范围内看到了数据/地址和写选通。我已经尝试了单和双缓冲模式没有运气。我生成了配置代码的和谐,但它没有任何选择,使芯片选择功能,所以我添加代码,使他们,但我一定错过了一些东西。有没有其他人对此有问题或者知道如何工作?我已经附加了配置代码。if结尾的DRVYPMP00MODECOMFIGO()语句中说,PLIPHYPMPION SHIPSIPOPtiONTRORATION=真,PLBIYPMPION SHIPSIPOPTIONTRORATION=真PLIBYPMPIPCHIPSEXTXXActual= FalSENAL帮助将不胜感激!-克雷格
以上来自于百度翻译 以下为原文 I am trying to use the chip select on the PMP module on the PIC32MX507F512L. I can configure the chip select polarity, read/write strobes, address/data lines with no problem. The chip select lines to go to the polarity they are configured for. However the chip select does not active when I write data. I do see the data/address and write strobe on my scope. I have tried both the single and dual buffer modes with no luck. I generated the configuration code with HARMony but it does not have any options for enabling the chip select functions, so I added code to enable them, but I must be missing something. Has anyone else had a problem with this or know how to get it working? I have attached the configuration code. The if statements at the end DRV_PMP0_ModeConfig() say that PLIB_PMP_ExistsChipSelectoperation = True, PLIB_PMP_ExistsChipSelectoperation = True PLIB_PMP_ChipSelectXIsActive = False Any help will be greatly appreciated! - Craig Attachment(s) drv_pmp_static.c (6.28 KB) - downloaded 99 times |
|
相关推荐
1个回答
|
|
我已经尝试了另一个芯片(PIC32 MX795F512L)在Explorer 16板上。我构建和运行的PMPLLCD示例程序,与和谐来。程序运行并在LCD上显示一个消息。在探险家BD上的LCD不需要一个芯片选择线。然后,我将下列行添加到DRVYPMP00MODICONFECT()函数://允许PMA14和PMA15用于SpCultSPLiBiBPMPPADADESREST(PMPASIDIO0,0xC000);//配置芯片选择PMPYCHIP选择功能选择(PMPASIDIO 0,PMCS1A和ApPMCS2AASCHIPOSSELL);PaypHypIpHypIdTytOne,PMPIOPLEMPITIOAcLEVELIVELIN;PLMPYPMPIPCHIPLEXTXFULL(PMPAIDID0,PMPHCHIPSELECTUTHONTY One);与以前相同的结果,芯片选择线(PMA14/RD11)应该是高的(它在添加代码之前是低的),但是在写入数据时它不脉冲(PMWR做脉冲)。必须是一些秘密,使芯片选择线…
以上来自于百度翻译 以下为原文 I have tried this with another chip (PIC32MX795F512L) on the Explorer 16 board. I built and ran the pmp_lcd example program that comes with Harmony. The program runs and displays a message on the LCD as it should. The LCD on the Explorer bd. doesn't need a chip select line. Then I added the following lines to the DRV_PMP0_ModeConfig() function: // enable PMA14 & PMA15 for chip selects PLIB_PMP_AddressPortEnable(PMP_ID_0, 0xc001); // configure chip select PLIB_PMP_ChipSelectFunctionSelect(PMP_ID_0, PMCS1_AND_PMCS2_AS_CHIP_SELECT); PLIB_PMP_ChipSelectXPolaritySelect(PMP_ID_0, PMP_CHIP_SELECT_ONE, PMP_POLARITY_ACTIVE_LOW); PLIB_PMP_ChipSelectXEnable(PMP_ID_0, PMP_CHIP_SELECT_ONE); Same results as before, the chip select line (PMA14/RD11) goes high as it should (it was low before adding the code), but it doesn't pulse when the data is written (PMWR does pulse). There must be some secret to enabling the Chip Select lines... |
|
|
|
只有小组成员才能发言,加入小组>>
5248 浏览 9 评论
2036 浏览 8 评论
1956 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3217 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2264 浏览 5 评论
781浏览 1评论
676浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
602浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
684浏览 0评论
581浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 11:29 , Processed in 1.266305 second(s), Total 76, Slave 60 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号