The invention discloses a method and a
system for solving I2C (Inter-
Integrated Circuit) interface communication conflicts. The method for solving the I2C interface communication conflict according to the embodiment of the invention comprises the following steps of: initializing an I2C interface, configuring a
direct memory access channel, and configuring a read command automatic
negative response; receiving a write command frame; after
application layer scheduling is completed, closing the read command automatic
negative response; sending the current data frame; and restarting the read command automatic
negative response according to the I2C interface, and restarting the read command automatic negative response according to the I2C interface and the read command automatic negative response. And different interfaces are connected with different devices. According to the embodiment of the invention, the
system for solving the communication conflict of the I2C interface comprises the CPU, the
direct memory access module, the arbitration module, the I2C automatic
NAK module and the I2C
stop signal transmission termination module, so that the communication conflict between the I2C interface and other interfaces in communication is solved; and the mutual
interference problem and the transmission error problem in a concurrent communication scene of the I2C and other interfaces are avoided.