摘要
文章从嵌入式Linux系统下MDM9607平台的SPI驱动程序设计出发,介绍了SPI通信流程和体系结构,分析了标准4线、扩展6线SPI驱动原理并给出了部分关键程序的代码,通过软件配置给出了可供上层调用的API函数,并分别对标准4线、扩展6线SPI驱动进行了测试验证,实验结果表明该类驱动能够精确地完成实时数据传输,对SPI外设的驱动程序设计具有较强的参考意义,可广泛应用于CPE、4G模组、5G模组、物联网等设备。
Starting from the design of SPI driver for MDM9607 platform under embedded Linux system,this paper introduces the SPI communication process and architecture,analyzes the principle of standard 4-wire and extended 6-wire SPI driver,and gives the code of some key programs.Through software configuration,it gives the API functions that can be called by the upper layer,and tests and verifies the standard 4-wire and extended 6-wire SPI drivers respectively.The experimental results show that this kind of driver can accurately complete the real-time data transmission,which has strong reference significance for the driver design of SPI peripherals,and can be widely used in CPE,4G module,5G module,Internet of Things and other devices.
作者
姜育生
梁妮
贺国旗
JIANG Yusheng;LIANG Ni;HE Guoqi(Shaanxi Open University,Xi'an 710119,China)
出处
《现代信息科技》
2023年第2期149-152,共4页
Modern Information Technology
基金
陕西哲学社会科学重点研究基地项目(22JZ019)。