Arbitration method and system of I2C (Inter-Integrated Circuit) bus

A technology of bus arbitration and arbitration method, which is applied in the arbitration method and system field of I2C bus, can solve the problems of affecting bus stability, lowering normal level, wasting bus resources, etc., and achieves improving stability and quality, increasing speed, The effect of saving bus resources

Active Publication Date: 2018-03-06
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF6 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This makes the bus resources always in the occupied state of "either A or B", resulting in a great waste of bus resources
[0005] In addition, when a master control device occupies the control right of the bus for a long time, once an abnormality occurs on the bus, such as a short circuit with the ground, the above-mentioned public scheme cannot make an immediate judgment, and it will be considered that the normal level under the control of the bus is pulled down , resulting in affecting the stability of the bus

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
  • Arbitration method and system of I2C (Inter-Integrated Circuit) bus
  • Arbitration method and system of I2C (Inter-Integrated Circuit) bus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings.

[0038] An I2C bus arbitration method of the present invention is applied in network equipment, and the network equipment includes at least two main control devices. The I2C bus is equipped with a bus arbitration unit, and the bus arbitration unit is configured with a status register, and the status register defines a BUSY flag, a WAIT flag and an ERROR flag, wherein the BUSY flag is used to indicate that the I2C The bus occupation state, the WAIT flag are used to indicate the I2C bus waiting for release status, and the ERROR flag is used to indicate the I2C bus failure state; the arbitration method of the I2C bus comprises the following steps S1-S4:

[0039] Step S1, the bus arbitration unit receives the I2C bus control request sent by the c...

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 provides an arbitration method and system of an I2C (Inter-Integrated Circuit) bus. According to both the method and system, control right of the I2C bus is allocated to a current main control device when the I2C bus is currently idle, and overall allocation on the bus control right of the above-mentioned current main control device is realized on the basis of received values, whichare of corresponding flag bits and currently fed back by a status register, when the I2C bus is not currently idle; and I2C bus communication status of each currently authorized main control device iscollected in real time, each time I2C bus communication ending of a corresponding currently-authorized main control device is determined, I2C bus control right of the corresponding currently-authorized main control device is taken back, and the above-mentioned status register is controlled to release the BUSY flag bit thereof, and the currently authorized main control device is a main control device with the currently allocated I2C bus control right. According to the method and system, free switching of the I2C bus control right under status of multiple main control devices can be realized, and a communication rate, communication stability and communication quality of the I2C bus are improved.

Description

technical field [0001] The invention relates to the field of bus communication, in particular to an arbitration method and system for an I2C bus. Background technique [0002] The I2C (Inter-Integrated Circuit) bus is a two-wire (serial data (SDA) line and serial clock (SCL) line) serial bus developed by PHILIPS, through the serial data (SDA) line and the serial The clock (SCL) line transmits information between devices connected to the bus. It is a special form of synchronous communication. It has the advantages of less interface lines, simple control methods, small device packaging, and high communication speed. It has become a microelectronic communication control. A bus standard widely used in the field. [0003] The Chinese patent application with the application publication number "CN106155971A" discloses an arbitration method for the I2C bus. The method includes: after receiving the internal integrated circuit I2C bus control request sent by the first master device, ...

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 Applications(China)
IPC IPC(8): G06F13/16G06F13/42
CPCG06F13/1605G06F13/4282
Inventor 林宁亚
Owner ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
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