请教i2c没有应答的问题-电压正常 主机波形正常
调试一个i2c设备,我是直接用应用程序来操作的i2c-0。主机输出波形是正常的,但是从机无应答。
这波形不正常。
ACK应该是低电平。
而且ACK应该是从设备给出,也就是所谓的“应答”。
你需要仔细看一下I2C协议。
7.2 Acknowledge
Data transfer with acknowledge is obligatory. The acknowledge-related
clock pulse is generated by the master. The transmitter releases the
SDA line (HIGH) during the acknowledge clock pulse.
The receiver must pull down the SDA line during the acknowledge clock
pulse so that it remains stable LOW during the HIGH period of this
clock pulse (see Fig.7). Of course, set-up and hold times
(specified in Section 15) must also be taken into account.