完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我目前正在与PIC32 MZ2046DAH176的SDHC外围设备一起工作,与EMMC设备通信。存储在响应寄存器中的数据似乎是不正确的(我用逻辑分析仪验证了这一点)用于R3响应。每个寄存器中的数据似乎被一个字节所抵消。因此,当接收到CID或CSD寄存器的内容的128位响应时,响应将是这样的(X是字节,其在128比特内的位置):SDHCRES3{x?、X15、X14、X13} SDHCRIS2 {X12X11、X10、X9}SDCDHSP1 {X8X7、X6、X5} SDHCRIS0{{X4X3、X2、X1}X0不存在于任何其他人遇到的这个寄存器中或知道补救方案吗?
以上来自于百度翻译 以下为原文 I'm currently working with the SDHC peripheral on the PIC32MZ2046DAH176 to communicate with a EMMC device. The data stored in the response registers seems to be incorrect (I verified this with a logic analyzer) for R3 responses. The data in every register seem to be offset by a byte. So when receiving a 128bit response for the content of the CID or CSD registers the response will look like this (X# being the byte and its position within the 128bits transmitted) : SDHCRESP3 {X??, X15, X14, X13} SDHCRESP2 {X12 X11, X10, X9} SDHCRESP1 {X8 X7, X6, X5} SDHCRESP0 {X4 X3, X2, X1} X0 is not present in any register Has anyone else encountered this or know of a remedy? |
|
相关推荐
1个回答
|
|
我在PIC32 MZ DA启动工具包上有一个类似的问题。我已经阅读了SDHC控制器的手册,它指向SDHC简化规范,所以我也读过了。我还看了用和声写的代码。在规范和和谐如何做之间存在着大量的矛盾,但是我已经编写了一些代码来尝试用和声的顺序来初始化SD卡。它到达了我发送CMD8的地方。我得到一个中断命令完成,但在所有的响应。我使用相同的SD卡(他们是新的)与旧的PIC32 MZ启动器套件和MEB II板使用SPI,他们工作良好。我可以从他们那里读取文件等等,所以他们应该和SDHC一起工作。那里似乎没有工作代码,至少我找不到。我会记住你和我分享,如果我找到东西,请做同样的事情。如果有人有任何工作代码,请分享!谢谢。
以上来自于百度翻译 以下为原文 I'm having a somewhat similar problem with the PIC32MZ DA Starter Kit. I've read through the manual for the SDHC controller and it points you to the SDHC Simplified Specifications, so I've read through that, too. I've also looked at code written by Harmony. There are a ton of contradictions between the specs and how Harmony does things, but I've written some code to try to initialize the SD card using Harmony's order of doing things. It gets to the point where I send a CMD8. I get an interrupt for the command being completed, but there all 0s in the response. I used the same SD cards (they are new) with the older PIC32MZ Starter Kit and MEB II board using SPI and they worked fine. I could read files from them, etc. so they should work with the SDHC. There seems to be no working code out there, at least none I can find. I'll keep you in mind to share with if I find something, please do the same. If anyone out there has any working code, please share! Thanks. |
|
|
|
只有小组成员才能发言,加入小组>>
5244 浏览 9 评论
2035 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3214 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2261 浏览 5 评论
779浏览 1评论
675浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
601浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
683浏览 0评论
580浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 22:50 , Processed in 1.475175 second(s), Total 78, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号