摘要
针对RT-Thread操作系统下I^2C总线驱动展开研究,对驱动结构进行介绍与分析。以STM32F407VG上的软件I2C驱动移植为例介绍了驱动移植步骤,并通过STM32F407VG读写24LC02B的实例,详细介绍I^2C编程步骤及技术细节。最后通过实验验证I^2C驱动移植及编程的有效性。实验结果表明,RT-Thread操作系统下的I^2C总线驱动结构简洁,且易于移植及进行程序设计。
Aiming at the 12 C bus driver of RT-Thread operating system, the structure of 12 C bus driver is presented and analyzed. The 12 C driver migration process is introduced with the example of the I2C drive migration for STM32F407VG, and by the read/write 24LC02B through STM32F407VG, the PC programming steps and technical details are introduced. Finally, an experiment is taken to verify the ef- fectiveness of the migration and programming of I2C driver. The experiment results show that the I2C bus driver structure of RT Thread is simple and easy for migration.
出处
《单片机与嵌入式系统应用》
2016年第12期26-30,共5页
Microcontrollers & Embedded Systems