摘要
I2C总线是一种用于IC器件之间连接的二线制总线,在嵌入式系统中有广泛的应用。嵌入式处理器本身携带I2C控制器时,可以直接通过配置特殊寄存器来实现I2C的功能;而当缺少I2C控制器时,则需要通过软件模拟的方法来实现。简要地叙述了I2C总线协议及其时序,并给出了I2C总线驱动在ARM S3C4510处理器下的两种实现方法,最后以模拟的实现方式给出一个应用实例。
I^2C bus is a kind of 2 -wire bus for inter- connecting the IC instruments,and widely used in embedded systems. If the embedded processor has the I^2C controller, the I^2C transportation can be achieved by configuring the specific registers of the controller. Otherwise,the I^2C's functions must be simulated by software. In this paper, the I^2C bus protocol and its timeorder are analyzed at first. Then, two approaches for implementing the I^2C bus operation instructions under the ARM S3C4510 processor are given. An example based on simulation is illustrated at last.
出处
《现代电子技术》
2007年第8期56-58,共3页
Modern Electronics Technique