2659|2

78

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

单片机直接读取U盘信息 [复制链接]

在Microchip的论坛中发了个帖子,询问有关单片机直接读取U盘信息的问题,有个老外回帖了,但是不太肯定他回答的正确性,希望各位大侠给点意见,谢谢!
提问:As now I'm doing a LED display project, want to show some images on the LED matrix. PIC18F4550 now can control LED display well. But I want to change to store these images in a USB flash disc, then make the PIC18F4550 to read bitmap file automatically once USB disc is plugged in. How can I make that happen? Yesterday, I attended the Microchip seminar in Australia, I asked the staff of Microchip that is there any difference of USB mass storage between USB flash disc and SD card, he said yes, they are totally different. But I just got confused, because they all compliant with USB 2.0 specification.
回答:
Basic Differences

SD/MMC Card
1. SPI or 4bit parallel bus connection between Host and Card
2. Needs an USB Adapter to translate between USB and the SD/MMC card interface
3. Can be plugged into many different devices directly.

USB Flash disc
1. USB only interface (Controller mode only)
2. Needs a USB HOST i.e. PC or PDA (with USB Host controller) to do communications.

With regards to your project
The PIC18F4550 is a controller only USB interface so cannot talk to the USB flash disc which needs a USB Host.
The SD/MMC card can be used because it uses a SPI interface, and would need some filesystem code (e.g. FAT16) so you can read the files from the SD card.

One way is to transfer the file directly to your board using the 18F4550 USB interface and external FLASH.

Alternatively when USB-OTG is released on Microchip devices it may be possible to interface with a generic Mass storage device such as a USB Flash drive.

最新回复

怎么样才能看到读卡器的接口操作呢?谢谢!  详情 回复 发表于 2007-10-4 14:43
点赞 关注

回复
举报

67

帖子

0

TA的资源

一粒金砂(中级)

沙发
 
得有一个读卡器,看看读卡器的接口操作吧
 
 

回复

64

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
怎么样才能看到读卡器的接口操作呢?谢谢!
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/10 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表