
i2c总线的 应答 和非应答 具体详细的解说,
2个回答
展开全部
首先你要搞清楚I2C主机和I2C从机,作为主机,当主机需要读取数据时,先要先向从机写从机地址,(从机收到后会发送应答信号),主机现在要切换的接收状态,是否 收到从机的应答信号(低电平);如果收到应答信号,就可以开始读写数据了,如果是主机读,主机读到数据后,要向从机发送应答信号,可以继续读。。。。如果是主机写,写完后需要检测是否接收到从机的应答信号,收到应答信号才能进行下一步。。。
非应答是在没有握手成功或者发送的数据错误时发送的信号,要求重发或者终止。。
非应答是在没有握手成功或者发送的数据错误时发送的信号,要求重发或者终止。。
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Simple rules :
1. Always need to respond the "ACK" by the i2c device which recevied current byte.
(1) the i2c device : either i2c master or slaver
(2) current byte : slave address / word address / data
2. Only need to repond the "No ACK" at last byte of read access by i2c master.
1. Always need to respond the "ACK" by the i2c device which recevied current byte.
(1) the i2c device : either i2c master or slaver
(2) current byte : slave address / word address / data
2. Only need to repond the "No ACK" at last byte of read access by i2c master.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询