Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for recovering I2C bus locked by slave device

A recovery method and device technology are applied in the field of computer communication to achieve the effects of improving stability and reliability and low hardware cost

Active Publication Date: 2009-06-24
ZTE CORP
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0018] The technical problem to be solved by the present invention is that the current I2C master device does not necessarily have a control register to solve the I2C bus lock state, and simultaneously all slave devices on the I2C bus cannot all have the shortcoming of automatically exiting the lock state function and according to the I2C bus It has the characteristics of controlling and detecting its slave devices, provides a recovery method after the I2C bus is locked by the slave device, and provides a recovery device after the I2C bus is locked by the slave device based on the method

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 and apparatus for recovering I2C bus locked by slave device
  • Method and apparatus for recovering I2C bus locked by slave device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Below in conjunction with accompanying drawing, the implementation of technical scheme is described in further detail:

[0031] figure 1 Shown is the flow chart of the method of the present invention. After the system is powered on, when the I2C master device detects that the I2C bus is locked by the slave device, it automatically disconnects the working power of the I2C slave device, and then resumes power supply after waiting for a set time. At this time, the I2C slave device is restored to the initial state, thus solving the lock of the slave device to the bus. The length of the above setting time depends on the load of the I2C bus and the performance of the I2C master device, and its value ranges from 0.2 seconds to 5 seconds. Second.

[0032] figure 2Shown is a functional block diagram of the recovery device after the I2C bus is locked by the slave device according to the present invention. What is marked as 201 is the master device on the I2C bus, which is the...

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 present invention relates to a recovery method and device after the I2C bus is locked by the I2C slave device. The recovery method after the I2C bus is locked by the slave device is as follows: use the I2C master device to control the working power of all I2C slave devices, and when the I2C master device detects When the bus is locked, disconnect the working power of the I2C slave device, wait for the set time and then restore the power supply, so that the I2C slave device returns to the initial state; the recovery device includes the I2C master device, the I2C slave device and the system power supply, and also adds A power switch, one end of the power switch is connected to the system power supply, and the other end is connected to the power supply of the connected I2C slave device, and its on-off is controlled by the I2C master device. Through the participation of the main CPU, the invention solves the problem of recovering the bus when the I2C slave device causes the bus to be locked, and improves the stability and reliability of the system.

Description

technical field [0001] The invention relates to a recovery method and device after an I2C bus is locked by an I2C slave device, belonging to the field of computer communication. Background technique [0002] The I2C bus (Inter-IC BUS or IIC BUS, inter-integrated circuit interconnection bus) is a set of serial buses developed by Philips (PHILIPS) for connecting microcontrollers and their peripherals. The I2C bus has two signal lines: a clock line SCL and a bidirectional data line SDA. The clock lines SCL of all devices connected to the I2C bus are connected to the SCL of the bus, and their data lines SDA are connected to the bidirectional data line SDA of the bus. The bus uses software addressing to identify each device (such as microcontrollers, memories, LCD drivers, clock chips, and other I2C bus devices), completely eliminating the need for chip select lines for each device, thus making system wiring very simple. At present, I2C has become an important global industry s...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/38
Inventor 于克泳汤宁峰邵国翟红健
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products