CN102411550A - I2C bus controlled device based apparatus and method - Google Patents

I2C bus controlled device based apparatus and method Download PDF

Info

Publication number
CN102411550A
CN102411550A CN2011102470972A CN201110247097A CN102411550A CN 102411550 A CN102411550 A CN 102411550A CN 2011102470972 A CN2011102470972 A CN 2011102470972A CN 201110247097 A CN201110247097 A CN 201110247097A CN 102411550 A CN102411550 A CN 102411550A
Authority
CN
China
Prior art keywords
address
bus
master controller
devices
driving circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011102470972A
Other languages
Chinese (zh)
Inventor
胥伟志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN2011102470972A priority Critical patent/CN102411550A/en
Publication of CN102411550A publication Critical patent/CN102411550A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to an apparatus and a method for controlling I2C devices, in particular relates to an apparatus and a method for controlling a plurality of same I2C devices on an I2C bus. For the problems in the prior, the invention provides an apparatus and a method for controlling a plurality of same devices on an I2C bus, which are implemented through the following steps: receiving a control command of a master controller by a driving circuit; changing an address command on an address bus between the driving circuit and a slave device; setting an effective address of the slave device; then carrying out communication connection between the master controller and the slave device at the effective address by the I2C bus, thereby improving the flexibility of an I2C bus controlled device. In the invention, through mutually connecting a master control circuit, the driving circuit and the slave device, and combining a series of implementation steps, a function of controlling a plurality of same devices is completed. The apparatus and method provided by the invention are mainly applied to the filed of controlling a plurality of same devices by an I2C bus.

Description

A kind of apparatus and method based on I2C bus controller spare
Technical field
The present invention relates to the control device and the method for I2C device, especially a kind of a plurality of identical I2C device and method on the I2C bus, controlled.
Background technology
Along with I2C bussing technique full-fledged, the device of band I2C bus functionality is applied in military and civilian's article each side widely, like storer, calendar clock chip etc.But; Band I2C bus functionality from device (because the master controller of ordering with transmissions such as processor carries out communication; Therefore be also referred to as from device) its limitation arranged; Because master controller (the transmitting control commands visit is microprocessor from device on bus) visit realizes that through its address of devices communication connects from device, and is confirmed by device (1~3 s') few in number relevant pins (draw high or drag down) from address of devices; Limit the effective number of links of device identical on the I2C bus, under a stable condition, restricted the circuit application design.
Summary of the invention
Technical matters to be solved by this invention is: to the problem of above-mentioned existence; The apparatus and method of a plurality of identity units of control on a kind of I2C bus are provided; Receive the main controller controls order through driving circuit, change driving circuit and the address command from the address bus between the device, be provided with effectively from address of devices; And then the carrying out communication from device through the I2C bus and be connected of master controller and effective address, improved the dirigibility of I2C bus controller spare.
The technical scheme that the present invention adopts is following:
A kind of method based on I2C bus controller spare comprises step b, and driving circuit receives the master controller order, and gives from device transmission address command through the address control line; Be provided with effectively behind address of devices, master controller with have setting up communication from device through the I2C bus and being connected of effective address.
Among the said step b from device at least one.
Said is one from device; Step b concrete steps are: driving circuit receives the master controller address command, and gives from device transmission address command through the address control line, receives said address from device; Its address is set to effectively; Saidly become effectively from device from device, master controller is through time-delay simultaneously, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.
Said from least two of devices; Step b concrete steps are: driving circuit receives the master controller address command; And pass through the address control line and give from device transmission address command; Receive said address command from device, be provided with and set up effective that communication is connected, and setting is not set up invalid from address of devices that communication is connected with master controller from address of devices with master controller; Simultaneously master controller is through time-delay, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.
Also comprise step a initialization from address of devices before the said step b, promptly, feasible identical from address of devices through the address date of driving circuit control from device, realize initialization from address of devices.
A kind of device based on I2C bus controller spare comprises master controller, driving circuit, receives main controller controls, and according to the main controller controls order, sends the effective address data;
From device, be used to receive the order of driving circuit address date, make effective from address of devices;
Said master controller is connected with driving circuit, and driving circuit is connected from the device bus with a plurality of, master controller with set up communication from device through the I2C bus and be connected.
Said driving circuit is the TTL driving circuit.
In sum, owing to adopted technique scheme, the invention has the beneficial effects as follows:
Receive the main controller controls order through driver; Change the bus addressing order, be provided with from address of devices, and then master controller effectively is connected through the I2C communication from device with the address; Utilize this method; Can control a plurality ofly from device simultaneously, be by A0, A1, A2 decision from address of devices originally for example, has 2 at most 3=8, and control now from the quantity of device far away more than 8, because can receive the control command of master controller through driver; The addressed command of control I2C bus, make identical from device one effective from address of devices, and the invalid mode of remaining address; Master controller is through the transmission lag order simultaneously; Make be set up from address of devices after, transmissions need visit from the address of devices order, set up the communication connection with corresponding from device; If to control other from device, method and above-mentioned similar then.As previously mentioned, can control at least one simultaneously, improve of the dirigibility of total line traffic control from device from device, after promptly one of them is accomplished from the device stores data, method that just can be same, master controller carries out communication with another one from device and is connected; Perhaps one of them can utilize the method to visit other normally from device from component failure.
Description of drawings
The present invention will explain through example and with reference to the mode of accompanying drawing, wherein:
Fig. 1 is principle of the invention figure.
Embodiment
Disclosed all characteristics in this instructions, or the step in disclosed all methods or the process except mutually exclusive characteristic and/or the step, all can make up by any way.
Disclosed arbitrary characteristic in this instructions (comprising any accessory claim, summary and accompanying drawing) is only if special narration all can be replaced by other equivalences or the alternative features with similar purpose.That is, only if special narration, each characteristic is an example in a series of equivalences or the similar characteristics.
Shown in Fig. 1, the present invention includes master controller, transmitting control commands is given driving circuit, through the I2C bus be connected from the device both-way communication; Driving circuit receives main controller controls, and according to the main controller controls order, sends the effective address data; From device, be used to receive driving circuit address date order, make effective from address of devices, master controller through the time-delay order after, guarantee that from address of devices the back being set effectively sets up communication with master controller through the I2C bus and be connected.Said master controller is connected with driving circuit, and driving circuit is connected from the device bus with a plurality of, master controller be connected through bus from device.Wherein driving circuit with carry out communication from device through the address control bus, master controller and from passing through the I2C bus communication between the device.
A kind of method based on I2C bus controller spare, step comprises:
Step a: initialization is from address of devices, promptly through the address date of driving circuit control, makes from the identical realization of address of devices to initialization from address of devices from device.
Step b, if when device is one, driving circuit receives the master controller address command; And pass through the address control line and give from device transmission address command; Receive said address from device, its address is set to effectively, saidly becomes effectively from device from device; Simultaneously master controller is through time-delay, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.(comprise n if be at least two from device from device; N is more than or equal to 2) time; Driving circuit receives the master controller address command; And pass through the address control line and give from device transmission address command, be provided with and set up effective that communication is connected, and setting is not set up invalid from address of devices that communication is connected with master controller from address of devices with master controller; Simultaneously master controller is through time-delay, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.
Wherein driving circuit is the TTL driving circuit, such as the driving circuit of realizing through 54LS244.
This method is exactly to send the address control command through master controller to give driving circuit; Driving circuit receives the address control command of master controller; And master controller need visit be set to effective address from address of devices; Other are set (are called the master controller visit from address of devices and inconsistent from address of devices) from address of devices and primary controller visit from the address of devices invalid address, after being set up from address of devices, master controller is through the delay operation in several cycles so; Assurance needs visiting from address of devices when consistent from address of devices and master controller of visit, master controller with set up communication from device through the I2C bus and be connected.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature or any new combination that discloses in this manual, and the arbitrary new method that discloses or step or any new combination of process.

Claims (7)

1. the method based on I2C bus controller spare is characterized in that comprising step b, and driving circuit receives the master controller order, and gives from device transmission address command through the address control line; Be provided with effectively behind address of devices, master controller with have setting up communication from device through the I2C bus and being connected of effective address.
2. a kind of method according to claim 1 based on I2C bus controller spare, it is characterized in that among the said step b from device at least one.
3. a kind of method according to claim 1 and 2 based on I2C bus controller spare; It is characterized in that said when device is one; Step b concrete steps are: driving circuit receives the master controller address command, and gives from device transmission address command through the address control line, receives said address command from device; Its address is set to effectively; Saidly become effectively from device from device, master controller is through time-delay simultaneously, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.
4. based on claim 1 or 2 described a kind of methods based on I2C bus control unit spare; It is characterized in that said from least two of devices; Step b concrete steps are: drive circuit receives the master controller address command; And pass through the address control line and give from device transmission address command; Receive said address command from device; Be provided with and set up effective that communication is connected, and setting is not set up invalid from address of devices that communication is connected with master controller from address of devices with master controller; Simultaneously master controller is through time-delay, master controller with have effectively setting up communication through the I2C bus and being connected of effective address from device.
5. a kind of method according to claim 1 and 2 based on I2C bus controller spare; It is characterized in that; Comprise that also step a initialization is from address of devices before the said step b; Promptly, feasible identical from address of devices through the address date of driving circuit control from device, realize initialization from address of devices.
6. the device based on I2C bus controller spare comprises master controller, it is characterized in that also comprising:
Driving circuit receives main controller controls, and according to the main controller controls order, sends the effective address data;
From device, be used to receive the order of driving circuit address date, make effective from address of devices;
Said master controller is connected with driving circuit, and driving circuit is connected from the device bus with a plurality of, master controller with set up communication from device through the I2C bus and be connected.
7. a kind of device based on I2C bus controller spare according to claim 6 is characterized in that said driving circuit is the TTL driving circuit.
CN2011102470972A 2011-08-24 2011-08-24 I2C bus controlled device based apparatus and method Pending CN102411550A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102470972A CN102411550A (en) 2011-08-24 2011-08-24 I2C bus controlled device based apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102470972A CN102411550A (en) 2011-08-24 2011-08-24 I2C bus controlled device based apparatus and method

Publications (1)

Publication Number Publication Date
CN102411550A true CN102411550A (en) 2012-04-11

Family

ID=45913629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102470972A Pending CN102411550A (en) 2011-08-24 2011-08-24 I2C bus controlled device based apparatus and method

Country Status (1)

Country Link
CN (1) CN102411550A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714036A (en) * 2013-12-20 2014-04-09 武汉精立电子技术有限公司 I2C multiplexer supporting batch reading verification and control method
CN108228520A (en) * 2018-01-10 2018-06-29 郑州云海信息技术有限公司 A kind of rapid transmission method of I2C controllers towards BMC
CN114363112A (en) * 2022-03-21 2022-04-15 佛山科学技术学院 Bus networking system and bus arbitration method
WO2022206028A1 (en) * 2021-03-30 2022-10-06 纵目科技(上海)股份有限公司 Communication system based on parallel bus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205504B1 (en) * 1998-09-30 2001-03-20 International Business Machines Corporation Externally provided control of an I2C bus
CN101140556A (en) * 2007-09-11 2008-03-12 中兴通讯股份有限公司 Method and device for realizing accessing multiple I2C slave device by programmable device
CN101295283A (en) * 2008-05-30 2008-10-29 北京星网锐捷网络技术有限公司 Bus device and data transmission method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6205504B1 (en) * 1998-09-30 2001-03-20 International Business Machines Corporation Externally provided control of an I2C bus
CN101140556A (en) * 2007-09-11 2008-03-12 中兴通讯股份有限公司 Method and device for realizing accessing multiple I2C slave device by programmable device
CN101295283A (en) * 2008-05-30 2008-10-29 北京星网锐捷网络技术有限公司 Bus device and data transmission method thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714036A (en) * 2013-12-20 2014-04-09 武汉精立电子技术有限公司 I2C multiplexer supporting batch reading verification and control method
CN103714036B (en) * 2013-12-20 2016-07-20 武汉精立电子技术有限公司 Support that batch reads I2C multiplexer and the control method of verification
CN108228520A (en) * 2018-01-10 2018-06-29 郑州云海信息技术有限公司 A kind of rapid transmission method of I2C controllers towards BMC
WO2022206028A1 (en) * 2021-03-30 2022-10-06 纵目科技(上海)股份有限公司 Communication system based on parallel bus
CN114363112A (en) * 2022-03-21 2022-04-15 佛山科学技术学院 Bus networking system and bus arbitration method

Similar Documents

Publication Publication Date Title
CN102411550A (en) I2C bus controlled device based apparatus and method
CN104517569A (en) Series-connection display system and data transmission method thereof
CN105159860A (en) Inter-integrated circuit (IIC) extended system and method
JP2016529844A (en) Configurable clock tree
KR20180116344A (en) METHOD AND APPARATUS FOR BIDIRECTIONAL COMMUNICATION
CN109995681B (en) Device and method for realizing double-master-control main-standby switching by single chip
CN104737496A (en) Method for configuring a control unit, control unit and vehicle
US20140188253A1 (en) Method and system for reprogramming
CN104464617A (en) Parallel display system and display devices thereof
CN105045746A (en) Interface expanding device
CN103077139B (en) Use integrated circuit and the control method thereof of internal integrate circuit bus
JP2014021887A (en) Numerical control device communicating with io units
CN101685428B (en) Memory system and method
CN103532866A (en) Flow control method and system for virtual machine
CN202210279U (en) Device based on inter integrated circuit (I2C) bus control components
US8330746B2 (en) Addressing method and structure for multiple chips and display system thereof
CN102110070A (en) Implementation method for improving transmission efficiency of serial peripheral interface
US20230386420A1 (en) Light source driving circuit and communication device for display system
US8578077B2 (en) Group master communication system and method for serially transmitting data in automation systems
CN105404604A (en) I2C device expansion method and device and system
CN106055509B (en) Optical fiber communication system and configuration method of optical fiber communication
EP2902997B1 (en) A system for relayed data transmission in a high-speed serial link in a display
CN107645638B (en) Video processor and backplane communication method
CN106292385A (en) The hot redundancy control system of a kind of dual CAN bus and method
TWI761624B (en) Addressing method for integrated circuit chip and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120411