论文部分内容阅读
I~2C总线是一种用于IC器件之间连接的二线制总线。它通过SDA(串行数据线)及SCL(串行时钟线)两根线在连到总线上的器件之间传送信息,并根据地址识别每个器件:不管是单片机、存储器、LCD驱动器还是键盘接口。 1.I~2C总线的基本结构 采用I~2C总线标准的单片机或IC器件,其内部不仅有I~2C接口电路,而且将内部各单元电路按功能划分为若干相对独立的模块,通过软件寻址实现片选,减少了器件片选线的连接。CPU不仅能通过指令将某个功能单元电路挂靠或摘离总线,还可对该单元的工作状况进行检测,从而实现对硬件系统的既简单又灵活的扩展与控制。I~2C总线接口电路结构如图1所示。
The I ~ 2C bus is a two-wire bus used to connect IC devices. It transfers information between devices connected to the bus via two lines, SDA (serial data line) and SCL (serial clock line), and identifies each device by address: whether it is a microcontroller, memory, LCD driver, or keyboard interface. 1. The basic structure of I ~ 2C bus I ~ 2C bus standard microcontroller or IC device, which not only internal I ~ 2C interface circuit, and the internal unit circuit by function is divided into a number of relatively independent modules, through software search Site chip select, reducing the connection of device chip select line. The CPU not only can call a functional unit circuit to or from the bus by instruction, but also can detect the working condition of the unit so as to realize the simple and flexible expansion and control of the hardware system. I ~ 2C bus interface circuit structure shown in Figure 1.