完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我刚买了一个带有PIC32 MZ2064 DAA228芯片和128MB DDR的启动套件。这是很好的是有一个微型SD连接器在板上,该芯片有一个专用的SDHC控制器。我下载了数据表和外设上的所有部分。SDHC的部分具有通常列出的非常简短的解释所列出的所有控制寄存器。但是,在57.3模块操作中,它所做的一切都是指SD卡规范(当我在MEBII工作时得到SD卡时,我已经阅读过它们)。没有关于如何发送命令、读写块等的解释或示例代码!这有什么样的代码吗?他们通常有样本代码和更详细的解释大多数功能,但没有什么。我不使用和声,所以如果有一些东西不使用PLIB函数,但是如果有的话,我可以适应它。
以上来自于百度翻译 以下为原文 I just bought a starter kit with a PIC32MZ2064DAA288 chip and 128MB DDR. It's nice that is has a Micro SD connector right on the board and that the chip has a dedicated SDHC controller. I downloaded the data sheet and all the sections on the peripherals. The section for the SDHC has all the control registers listed with the usual very brief explanations. But, in 57.3 Module Operation, all it does is refer you to the SD Card specifications (I already read through them when I got the SD card on the MEB II working). There are NO explanations or sample code for how to send commands, read or write blocks, etc.!! Is there any sample code for this? They usually have sample code and more detailed explanations for most functions, but there's nothing for this. I don't use HARMony, so if there's something that doesn't use the plib functions, but if does, I can adapt it. Thanks in advance! |
|
相关推荐
2个回答
|
|
主机控制器规范的第3部分描述了如何实现功能的流程图。由于外设应该遵循规范,可能有可以在网络上可用的驱动代码的例子,可以作为起始点。
以上来自于百度翻译 以下为原文 Section 3 of the host controller specification has flow charts explaining how to implement functionality. Since the peripheral is supposed to follow the spec, there's probably examples of driver code available on the net that can be used as starting point. |
|
|
|
所以,我读了主机控制器规格,它确实提供了很多有用的信息,但是有一些东西在PIC32 MZ DA上具体实现,这在规范中没有解释,应该在PIC32 DA手册的第57节中解释,但不是。我还创建了一个HAR。MUNY项目使用SDHC控制器,并查看了代码,但很少或没有文档说明为什么它做某些事情,它的做事方式不同于说明书中所描述的。我编写了一些代码,复制了和声所做的事情,删去了许多复杂的问题。F和谐的代码。由于卡插入、删除和命令完成,我被中断,但是从来没有任何错误中断和零(零)响应。由于PIC32 DA启动套件占地面积小,我无法检查卡上的任何信号。是否有SDHC控制器的工作样例代码?
以上来自于百度翻译 以下为原文 So, I read through the Host Controller Spec and it did give a lot of useful information, but there are things that are specific to the implementation on the PIC32MZ DA that aren't explained in the spec and should be explained in Section 57 of the PIC32 DA manual, but aren't. I've also created a Harmony project using the SDHC controller and have looked at the code, but there's little or no documentation of why it does certain things and its way of doing things is different than described in the spec. I wrote some code that copies what Harmony does, cutting out a lot of the over-complication of Harmony's code. I am getting interrupts from it for card insertion, removal and command complete, but never any error interrupts and nothing (zeroes) for responses. Because of the small footprint of the PIC32 DA Starter Kit, I can't check any signals to/from the card. Does anyone have any working sample code for the SDHC controller? |
|
|
|
只有小组成员才能发言,加入小组>>
5153 浏览 9 评论
1995 浏览 8 评论
1924 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3167 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2221 浏览 5 评论
720浏览 1评论
604浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
489浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
619浏览 0评论
517浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-17 07:21 , Processed in 1.310048 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号