I2C说明

      

   下图摘自NXP的SAA7144的手册

     

在写操作中,DATA传送完后slave器件内地址会默认自增,直到master产生stop信号。在读操作中,DATA传送完后若master产生了应答信号,则slave器件内地址自增,master不产生应答信号意味着master不再接收新的数据。

  以下请参考附件TI_I2C.zip中的文档

     Devices on the I2C bus only drive the bus lines LOW by connecting them to ground; they never drive the 

bus lines HIGH. Instead, the bus wires are pulled HIGH by pullup resistors, so the bus wires are HIGH when no 

device is driving them LOW.

     The I2C bus is bidirectional: the SDA line is used both for transmitting and receiving data. When a master 

reads from a slave, the slave drives the data line; when a master sends to a slave, the master drives the data

 line.

      Under normal circumstances the master drives the clock line.The slave acknowledges the byte by pulling 

SDA LOW. The master then sends a clock pulse to clock the acknowledge bit.

 

SCL线一直由master控制,SDA由数据发送方控制。硬件上,SDA和SCL开漏上拉,因此idle状态是高电平,芯片管脚可以将其拉低,因此,有应答对应数据0,无应答对应数据1。

 

参考http://hi.baidu.com/gilbertjuly/item/b67ef40a4863c7cd74cd3c09

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值