Method for solving communication deadlock of I2C (Inter-Integrated Circuit) bus

A bus communication and solution technology, which is applied in the field of system bus communication, can solve problems such as signal processing complexity, increase system cost, increase cost, etc., achieve fast and accurate I2C bus communication deadlock problem, and solve I2C bus communication deadlock problem Effect

Inactive Publication Date: 2012-06-27
广东东研网络科技股份有限公司
View PDF4 Cites 36 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The above invention patents, if I 2 When multiple master devices and multiple slave devices are connected to the C bus, multiple reset lines for detecting reset signals need to be added, which not only increases the cost of the system, but also increases the complexity of the signal of the entire device
The invention patent application document with application number 201010606296.3 discloses a method for eliminating I 2 The device and method of C bus deadlock, this eliminates I 2 The device for C bus deadlock includes a detection unit, a clock unit, and N controllable switches; the detection unit also includes a first detection unit and a second detection unit; the detection unit detects that SCL is at a high level and SDA is at a low lev

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for solving communication deadlock of I2C (Inter-Integrated Circuit) bus
  • Method for solving communication deadlock of I2C (Inter-Integrated Circuit) bus
  • Method for solving communication deadlock of I2C (Inter-Integrated Circuit) bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings, but they are not intended to further limit the present invention.

[0048] I 2 The C bus consists of a serial SDA data line and a serial SCL clock line; the I 2 The C bus is provided with a master and at least one slave. The slave is a module with programmable functions, such as a single-chip microcomputer or FPGA; the slave can also be a simple I 2 C-function interface devices, such as temperature sensors.

[0049] I 2 The C bus communication deadlock solution includes a host-based execution method and a programmable slave-based execution method.

[0050] The host-based execution method includes the following steps:

[0051] A. Monitoring I 2 The working status of the C bus; if the host cannot 2 C bus slave sends detection information, then I 2 The C bus is in a deadlock state;

[0052] B. When I 2 The C bus is in a deadlock state, th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for solving the communication deadlock of an I2C (Inter-Integrated Circuit) bus. The I2C bus comprises a serial data line (SDA) and a serial clock line (SCL); the I2C bus is provided with a host and at least one slave; the method for solving the communication deadlock of the I2C bus comprises a host-based implementation method, wherein the implementation method comprises the following steps of: (A) monitoring a working state of the I2C bus, wherein the I2C bus is in a deadlock state if the host cannot send detection information to the slave of the I2C bus; (B) when the I2C bus is in the deadlock state, resetting a host module, and controlling the SCL to generate a clock pulse signal so as to unlock the slave of the I2C in the deadlock state; and (C) after unlocking the slave, reinitializing the host module to enable the normal work of the communication of the I2C bus again. According to the method for solving the communication deadlock of the I2C bus provided by the invention, no additional circuits are added, no additional cost is increased, the method for solving the communication deadlock of the I2C bus is applicable to any slave, the problem of deadlock can be rapidly and accurately solved, and no adverse effect can be brought for the normal operation of equipment.

Description

technical field [0001] The invention belongs to the technical field of system bus communication, in particular to an I 2 C bus communication deadlock solution. Background technique [0002] I 2 The C (Inter-Integrated Circuit) bus is a type of synchronous communication used to connect microcontrollers and their peripherals. I 2 The C bus has two signal lines, an SCL clock line and a bidirectional SDA data line. I 2 The C bus has the advantages of less interface lines, simplified control methods, small device packaging, and high communication speed. Under normal circumstances, I 2 The C bus protocol can guarantee the normal read and write operations of the bus, but when the I 2 C host reset (soft reset of the system, watchdog action, abnormal power supply on the board leads to reset chip action, manual button reset, etc.) and other abnormal conditions may cause I 2 The C bus deadlock occurs, which is manifested as the SCL clock line is high, and the SDA data line is a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F13/40G06F13/42
Inventor 肖军廖国平
Owner 广东东研网络科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products