Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method and device for realizing accessing multiple I2C slave device by programmable device

A device and access operation technology, which is applied in the direction of instrumentation, electrical digital data processing, etc., can solve the problems of low line and inability to use the I2C bus, and achieve the effects of stable and reliable operation, reduced development costs, and high efficiency

Active Publication Date: 2008-03-12
WUHAN ZHONGXING SOFTWARE CO LTD
View PDF0 Cites 39 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both of these methods implement routing by controlling one line of the I2C bus, and the other line is connected to all I2C slave devices. If an I2C slave device connected to the I2C bus is damaged, this line will appear. The situation of being pulled low all the time makes other devices unable to use the I2C bus, so the selection methods of these two I2C slave devices are risky

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 device for realizing accessing multiple I2C slave device by programmable device
  • Method and device for realizing accessing multiple I2C slave device by programmable device
  • Method and device for realizing accessing multiple I2C slave device by programmable device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to solve the disadvantages of the traditional technical solutions, the present invention further elaborates a method and device for accessing multiple I2C slave devices with a programmable device according to the present invention through the following specific examples. The specific implementation is described in detail below, But not as a limitation to the present invention.

[0054] As shown in FIG. 1, it is a hardware connection diagram of the device in the embodiment of the present invention. The device is composed of a CPU, a programmable device and multiple I2C slave devices, wherein the CPU is connected to the programmable device through a local bus, and the serial clock line and serial data line of each I2C interface in the multiple I2C slave devices are respectively connected to the The corresponding clock lines and data lines drawn from the I / O pins of the programmable device are connected, and the multiple I2C slave devices connected to the programm...

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 and a relevant facility to fulfill access on a plurality of I2C slave components with programmable components; wherein, the method comprises the following steps: (1) Select an I2C slave component to be accessed in a plurality of I2C slave components, and write circuit selection information for accessing the I2C slave component into a register group inside the programmable component; meanwhile, connect an I2C controller inside the programmable component with the I2C slave component in a corresponding circuit according to the information; (2) Write the data information, which is needed in accessing the I2C slave component, into the register group in the programmable component, and send a command to start access operation on the I2C slave component; (3) Follow the time sequence in I2C bus specifications to execute access operation on the I2C slave component according to the data information inside the register group. When a CPU accesses a plurality of I2C slave components, the method provided in the invention has advantages of simple and flexible operation, stable and reliable running, high efficiency, high speed and low single-board development cost.

Description

technical field [0001] The invention relates to a method for realizing reading and writing operations on a plurality of I2C slave devices by using a programmable device in the communication field, and also relates to a device for realizing access to a plurality of I2C slave devices by using an existing programmable device. Background technique [0002] The I2C bus interface has the characteristics of less signal lines and easy operation. In the field of communication equipment, the I2C bus interface has been more and more widely used. In standard applications, each I2C device has a unique device address, and the I2C controller implements read and write operations on slave devices connected to the I2C bus by distinguishing device addresses. However, in practical applications, it is necessary to access multiple I2C devices with the same device address. For example, the device addresses of small-package optical modules are all "A0H" or "A2H" solidified in E2PROM. [0003] To 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
IPC IPC(8): G06F13/40G06F13/42
Inventor 何秀红徐宏毅
Owner WUHAN ZHONGXING SOFTWARE CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More