摘要
SD卡以其优越的性能在嵌入式设备上得到广泛的应用。介绍在S1C33L05处理器上利用SPI总线进行SD卡的功能扩展。首先介绍具体硬件接口电路的设计,然后介绍利用SD卡的R1应答模式和处理器进行SPI总线通信的通信协议,并在此基础上实现SD卡驱动程序,最后介绍利用S1C33L05处理器的硬件中断实现热插拔的方法。实验表明,该方案在实际的应用系统中运行可靠,实用性强,在其他需要进行SD卡硬件扩展的嵌入式系统中也有很好的参考价值。
SD cards have been widely used in the embedded devices as its superior performance. How to expand the function of SD card on S1C33L05 proccessors by SPI bus, use specific protocol on the SPI bus and implement this SD card driver, which based on the hardware platform are introduced. Then the use of the R1 response patterns of SD cards to communicate with processor is proposed. An effective implementation of the method of hot - swappable is given. It shows that it is reliable and practical in the actual applications,and this scheme has a good reference value which required to expand hardware for SD card on embedded system application.
出处
《现代电子技术》
2009年第14期195-196,199,共3页
Modern Electronics Technique
基金
湖北省自然科学基金资助(2006ABA017)
湖北省教育厅重点科研资助项目(D200710002)