检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:韩勇 张芬 魏进松 于涛 HAN Yong;ZHANG Fen;WEI Jinsong;YU Tao(PLA 63723 Troops,Xinzhou 036300,China)
机构地区:[1]中国人民解放军63723部队,忻州036300
出 处:《集成电路与嵌入式系统》2024年第4期82-87,共6页INTEGRATED CIRCUITS AND EMBEDDED SYSTEMS
摘 要:I^(2)C总线多用于嵌入式系统中多个芯片及模块间的数据通信,针对芯片的I^(2)C总线专用引脚被占用或I^(2)C总线功能需移植到其他平台等需求,现有的I^(2)C总线专用引脚使用方式存在一定的局限性。本文基于I^(2)C总线的通信机理开发了一套驱动程序,通过控制常规GPIO引脚电平模拟I^(2)C时序,实现I^(2)C总线通信功能。以STM32F103C8T6芯片为I^(2)C总线主控制器、PCF8591T A/D转换模块为I^(2)C总线从器件,对开发的I^(2)C驱动程序进行验证,试验结果表明,该驱动方式可靠、稳定。The I^(2)C bus is widely employed for exchanging data between multiple chips and modules in embedded systems.However,the utilization of dedicated I^(2)C bus pins has limitations when these pins are already occupied or when the I^(2)C bus function needs to be migrated to other platforms.In the study,a driver program is developed that leverages the communication mechanism of the I^(2)C bus.It achieves I^(2)C bus communication functionality by simulating I^(2)C timing through the control of electrical levels on conventional GPIO pins.The STM32F103C8T6 chip serves as the primary controller of the I^(2)C bus,while the PCF8591T A/D conversion module operates as the slave device.This article verifies the developed I 2C driver program,and the experimental results show that the driving method is reliable and stable.
关 键 词:I^(2)C总线 GPIO引脚 驱动 STM32 PCF8591T
分 类 号:TP311.1[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:18.219.58.157