CN104298625A - IIC device address detection method and device - Google Patents

IIC device address detection method and device Download PDF

Info

Publication number
CN104298625A
CN104298625A CN201410534816.2A CN201410534816A CN104298625A CN 104298625 A CN104298625 A CN 104298625A CN 201410534816 A CN201410534816 A CN 201410534816A CN 104298625 A CN104298625 A CN 104298625A
Authority
CN
China
Prior art keywords
iic
device address
iic equipment
equipment
write operation
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
CN201410534816.2A
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.)
Lontium Semiconductor Corp
Original Assignee
Lontium Semiconductor Corp
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 Lontium Semiconductor Corp filed Critical Lontium Semiconductor Corp
Priority to CN201410534816.2A priority Critical patent/CN104298625A/en
Publication of CN104298625A publication Critical patent/CN104298625A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices

Abstract

The invention discloses an integrated circuit bus IIC device address detection method used for screening effective IIC device addresses. The method includes the following steps: sequentially detecting device addresses of all the IIC devices correlated on an integrated circuit bus according to the preset detection sequence, wherein the detection operation includes accessing the IIC devices according to the device addresses that the IIC devices correspond to; determining that the device addresses that the IIC devices correspond to are the effective device addresses when the access is successful. An IIC device address detection device corresponding to the method is further disclosed. By means of the method, the effective IIC device addresses can be screened quickly from the device addresses that all the IIC devices correspond to, and the method saves time and is high in efficiency.

Description

A kind of detection method of IIC device address and device
Technical field
The present invention relates to IC bus field, particularly relate to a kind of detection method and device of IIC device address.
Background technology
IC bus IIC is the control bus of a kind of simple, two-way, scale-of-two, the synchronous serial of PHILIPS company exploitation.Iic bus communication is for preserving various parameter configuration, be widely used in various electronic system, need the IIC equipment by iic bus associates to obtain relevant information when debugging these electronic systems, each the IIC equipment on iic bus has independently device address.
In theory, iic bus can associate at most 128 IIC equipment, the device address of each IIC equipment of association is different; The scope of described device address can be 0 ~ 127, and in the assigning process of the IIC device address of reality, operating personnel, due to misoperation, can to the device address of some IIC equipment assignment error, or forget for IIC equipment distributing equipment address; Thus cause these IIC device accesses abnormal, waste access resources.Therefore, need a kind of detection method of IIC device address badly, the device address being associated in each IIC equipment on IC bus is detected, determine effective device address.
Summary of the invention
In view of this, fundamental purpose of the present invention is the detection method and the device that provide a kind of IIC device address, rapid screening can go out effective IIC device address from the address of all devices of iic bus association.
For achieving the above object, the invention provides a kind of detection method of IIC device address, the method comprising the steps of:
According to the detection ordering preset, successively detection operation is carried out to current each IIC equipment be associated on IC bus;
Described detection operation comprises:
According to the device address that described IIC equipment is corresponding, described IIC equipment is conducted interviews;
When accessing successfully, determine that the device address that described IIC equipment is corresponding is effective device address.
Preferably, described default detection ordering is:
By the sequence detection that each the IIC equipment corresponding device address be associated on IC bus is ascending;
Or
By the sequence detection that each the IIC equipment corresponding device address be associated on IC bus is descending;
Or
By the random sequence detection randomly drawed of each the IIC equipment corresponding device address be associated on IC bus.
Preferably, described conducting interviews to IIC equipment comprises:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, judge the access success to IIC equipment.
Preferably, described conducting interviews to IIC equipment comprises:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described read operation, the service data that service data corresponding for described write operation is corresponding with described read operation is compared;
When comparison result is consistent, judge the access success to IIC equipment.
Preferably, described IIC equipment conducted interviews comprise:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment, and within the time interval of presetting, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
The service data that service data corresponding for described write operation is corresponding with described read operation is compared;
When comparison result is consistent, judge the access success to IIC equipment.
Preferably, said method also comprises:
The corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it is preserved.
Preferably, said method also comprises:
When accessing unsuccessful, the device address corresponding to current accessed IIC equipment is revised.
Present invention also offers a kind of pick-up unit of IC bus IIC device address, comprising:
Detection module, for according to the detection ordering preset, carries out detection operation to current each IIC equipment be associated on IC bus successively;
Described detection module comprises:
Addressed location, for according to device address corresponding to described IIC equipment, conducts interviews to described IIC equipment;
Determining unit, for when accessing successfully, determines that the device address that described IIC equipment is corresponding is effective device address.
Preferably, described addressed location comprises:
Write operation subelement, for according to device address corresponding to described IIC equipment, carries out write operation to described IIC equipment;
Read operation subelement, for according to device address corresponding to described IIC equipment, carries out the read operation corresponding with described write operation to described IIC equipment;
Comparer unit, compares for the service data that service data corresponding for described write operation is corresponding with described read operation.
Preferably, the said equipment also comprises:
Storage unit, for preserving the corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it.
Apply the detection method of IIC device address provided by the invention, for all IIC equipment be associated on IC bus, the device address corresponding according to each IIC equipment, successively it is conducted interviews according to the detection ordering preset, determine when accessing successfully that the device address that this IIC equipment is corresponding is effective device address, thus rapid screening goes out effective IIC device address, time-saving and efficiency from device address corresponding to all IIC equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the process flow diagram of IIC device address of the present invention detection method;
Fig. 2 is the detail flowchart of IIC device address of the present invention detection method;
Fig. 3 is the another detail flowchart of IIC device address of the present invention detection method;
Fig. 4 is the another detail flowchart of IIC device address of the present invention detection method;
Fig. 5 is the another process flow diagram of IIC device address of the present invention detection method;
Fig. 6 is the another process flow diagram of IIC device address of the present invention detection method;
Fig. 7 is the detailed construction schematic diagram of IIC device address of the present invention pick-up unit;
Fig. 8 is the another detailed construction schematic diagram of IIC device address of the present invention pick-up unit;
Fig. 9 is the another detailed construction schematic diagram of IIC device address of the present invention pick-up unit;
Embodiment
Core of the present invention is to provide a kind of IIC device address detection method, rapid screening can go out effective IIC device address, increase work efficiency from all IIC device addresses.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The communication of IIC IC bus, due to its simplicity, is extensively incorporated in electronic system, for preserving various parameter configuration.Iic bus has two bus lines, and one is serial data line (SDA), and one is serial time clock line (SCL).SDA is responsible for data transmission, and SCL is responsible for the clock synchronous of data transmission.IIC equipment is connected on the iic bus controller of processor by these two buses, utilizes iic bus controller to come checkout equipment address in the embodiment of the present invention.
Please refer to Fig. 1, show the process flow diagram of IIC device address of the present invention detection method, specifically comprise the following steps:
Step S101: according to the detection ordering preset, according to the device address that IIC equipment is corresponding, conducts interviews to current each IIC equipment being associated in IC bus successively;
In the embodiment of the present invention, when needs detect IIC device address, iic bus controller, according to the access order preset, conducts interviews to each the IIC equipment be associated on IC bus successively.
In the embodiment of the present invention, various ways can be adopted to the order that each IIC equipment conducts interviews.Suppose currently in contemporary integrated circuits bus to be associated with 128 IIC equipment, the device address of described 128 IIC equipment is 0 ~ 127.
Can conduct interviews from the order that each IIC equipment corresponding device address is ascending, the alphabetical i in device address represents, i is positive integer.Access from the IIC equipment of device address i=0, according to formula i=i+1, add up successively.Concrete, after i=0 access in device address terminates, perform formula i=i+1, now i=1,1<128, conducts interviews to device address i=1, follow-uply performs successively.In the embodiment of the present invention, due to IC bus can associate multiple equipment, therefore, need to judge the value of each cumulative i, judge whether i is less than 128, when judging i<128, the device address corresponding to current i conducts interviews.
In the embodiment of the present invention, can also conduct interviews from the order that each IIC equipment corresponding device address is descending, the alphabetical i in device address represents, i is positive integer.Access from the IIC equipment of device address i=127, according to formula i=i-1, successively decrease successively.Concrete, after i=127 access in device address terminates, perform formula i=i-1, now i=126, i>0, conducts interviews to device address i=126, follow-uply performs successively.In the embodiment of the present invention, general gets the minimum value that i=0 is associate device, performs and can terminate to perform to device address i=0.
In the embodiment of the present invention, the unordered mode randomly drawed can also be adopted, to IIC equipment corresponding to 0 ~ 127 device address with the form of unordered array, randomly draw and conduct interviews, in the embodiment of the present invention, randomly draw but not repeated accesses.
Step S102: judge whether to access successfully;
In the embodiment of the present invention, iic bus controller, to after the IIC equipment that hangs on iic bus sends request of access signal, if obtain the response of IIC equipment, is then accessed successfully.Therefore, in the embodiment of the present invention, judge, each time by after the access of a certain IIC device address, whether to obtain the response of IIC equipment corresponding to this IIC device address.
Step S103: when accessing successfully, determines that the device address that described IIC equipment is corresponding is effective device address.
In the embodiment of the present invention, iic bus controller sends interrogation signal, and after all IIC equipment be associated on IC bus receive signal, the IIC equipment with effective IIC device address can respond iic bus controller.
Therefore, when conducting interviews to a certain IIC device address, when obtaining the response of the corresponding IIC equipment in this device address, judge that this IIC device address is as effective IIC device address.
Iic bus communication is widely used in electronic system, comprise consumer electronics scheme, Industry Control scheme and some integrated circuit (IC) chip etc., usually need IIC equipment to obtain relevant information when these product solution are debugged, the device address of IIC equipment must be known before IIC equipment debugging, the IIC device address detection method that the application embodiment of the present invention provides, iic bus controller is according to the detection ordering preset, device address access order limits by this detection ordering, the IIC equipment be associated in bus is conducted interviews successively according to device address and judges whether to access successfully in order, address when accessing successfully can be defined as required effective IIC device address, thus detect the effective address of all IIC equipment, step is simple, time-saving and efficiency.The method detects in a computer, fast operation, can a key fast automatic acquisition IIC device address.
In the detection method of IIC device address provided by the invention, as Fig. 2, IIC equipment is conducted interviews and comprises:
Step S201: according to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
Each IIC equipment be associated in bus has the device address of its correspondence, and iic bus controller carries out write operation according to the IIC device address that each IIC equipment is corresponding to this IIC equipment.
Step S202: when within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, judges the access success to IIC equipment.
After bus controller carries out preservation operation to described IIC equipment corresponding address, if preserve successfully, an answer signal will be received, be generally ack signal.Ack signal is that IIC equipment returns, if IIC equipment is Hardware I IC interface, be exactly so that hardware produces, if equipment is software simulation IIC interface, the software being exactly so equipment returns.But for iic bus controller, be that hardware produces or software simulation without pipe, anyway be exactly whether to receive ack signal to judge whether IIC equipment receives previous data/order.After carrying out write operation, wait the answer signal of IIC equipment to be subjected, there is a default threshold value time of wait, receives answer signal and is considered as write operation success, wait more than threshold time and no longer wait for, be considered as write operation failure in this threshold time.Write operation success then can successfully be preserved IIC device address, now can successful access to IIC equipment, and this address is effective device address.
The above-mentioned step for conducting interviews to IIC equipment describes, and accesses the mode also having other, as Fig. 3, shows the process flow diagram to the another way that IIC equipment conducts interviews in the detection method of IIC device address of the present invention, comprising:
Step S301: according to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
The write operation described in the rapid S201 of course synchronization of described write operation is identical.
Step S302: when within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
When bus controller receives the answer signal of described IIC equipment to write operation in the threshold time preset, described IIC equipment is successfully preserved, now carrying out read operation to the address of this equipment again, read this device address, is the first threshold time in described default threshold time.
Step S303: when within the time interval of presetting, when receiving the answer signal of described IIC equipment to described read operation, the service data that service data corresponding for described write operation is corresponding with described read operation is compared;
After carrying out read operation, same write operation, IIC equipment also has an answer signal after completing read operation, iic bus controller waits for that IIC equipment returns read operation answer signal after carrying out read operation to IIC device address, equally also there is a default threshold time time waited for, for the Second Threshold time, the read operation answer signal receiving IIC equipment within the Second Threshold time then reads successfully to this device address, the address date that the address date store write operation and read operation are read is compared, judge that whether the data that read operation is read are consistent with the data that write operation writes.
Step S304: when comparison result is consistent, judges the access success to IIC equipment.
When judging to draw the data that described read operation is read and the data consistent that described write operation writes, expression can pass through this this IIC equipment of IIC device address successful access, and described device address is effective address.
Method shown in Fig. 3 is compared with Fig. 2 method, successfully prove to turn increase read operation and read operation response after successful access at write operation, response proves that address is after the effective address that can access, again write operation and read operation result are compared and judge whether unanimously to obtain effective device address, further judgement ensures that device address can be accessed, for effective address, reliability is higher.
In fact, sometimes IIC traffic operation can allow the ack signal not having IIC equipment, communication is being paid no attention to completely, or under allowing that the possible various situation such as loss, mistake, overlap occurs, the response can not carrying out IIC equipment judges, as shown in Figure 4, for there is no the method flow diagram conducted interviews to IIC equipment during answer signal, comprising:
Step S401: according to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment, and within the time interval of presetting, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
The address that bus controller is corresponding to IIC equipment carries out write operation memory address respectively and address is read in read operation, read operation is carried out after write operation, the midfeather time is no more than a certain Preset Time and thinks that described read operation is corresponding with this write operation, also can write operation and read operation carry out simultaneously, as long as to the operation of same IIC equipment, there is no answer signal after write operation and read operation.
Step S402: the service data that service data corresponding for described write operation is corresponding with described read operation is compared;
Judging whether the address that write operation stores and the address that read operation stores can access this IIC equipment, when there is no answer signal, whether unanimously comparing to the write operation address date obtained and the address date that read operation obtains.
Step S403: when comparison result is consistent, judges the access success to IIC equipment.
When the write operation address date of corresponding same IIC equipment is consistent with read operation address date, proves this address IIC equipment correspondence therewith, this IIC equipment can be accessed by this address, when there is no answer signal also can judgment device address effective.
Sometimes, the device address of an IIC equipment can be multiple according to capacity, and such as iic bus communication EEPROM is with EEPROM (Electrically Erasable Programmable Read Only Memo), is the storage chip that after a kind of power down, data are not lost.EEPROM on computers or specialized equipment can be wiped existing information, and reprogramming, when its capacity is greater than 256 byte, an IIC equipment can have multiple device address, is also just equivalent to the IIC of multiple low capacity from equipment.If device address is 0 ~ 127 have 128, all attempt accessing comparison to these 128 IIC device addresses, all qualified IIC device addresses are all preserved, all effective addresses of IIC equipment can be obtained by the method.
When this IIC equipment with multiple device address also has multiple, can only retain the IIC circuitry that will operate complete, the iic bus partial circuit of other equipment disconnects, to retaining the device address needing the IIC equipment utilization said method of operation to determine this IIC equipment, carry out IIC equipment operating one by one again, determine the device address of all IIC equipment.
Above-mentioned Fig. 2, Fig. 3 and Fig. 4 illustrate the method that IIC equipment conducts interviews, and as shown in Figure 5, corresponding to the method for Fig. 1, after having determined effective device address, also comprise:
Step S104: the corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it is preserved.
After determining that device address effectively, then by this address can successful access to this IIC equipment, described address and described IIC equipment have corresponding relation, this corresponding relation is stored, preserve the effective address of the required IIC equipment obtained, the effective address corresponding relation of each IIC equipment can be preserved successively, also can unify to preserve after the effective address checking out each IIC equipment.
Pass through said method, the device address that known all IIC equipment is corresponding, can obtain and preserve the effective address of all effective IIC equipment, can also compare by the effective address of IIC equipment obtained and the device address of known IIC equipment, the device address of IIC equipment got as found and the discrepant part in device address of actual IIC equipment, can detect that corresponding part IIC circuit exists abnormal.
In addition, also have the situation that when attempting accessing by device address, address is invalid, as shown in Figure 6, corresponding to Fig. 1, also comprise:
Step S105: device address corresponding to current accessed IIC equipment time unsuccessful to IIC device access processes.
By a certain IIC device address can not successful access to IIC equipment time, corresponding relation can not be set up with IIC equipment in this address, be considered as invalid address, now bus controller carries out process correction by the treatment mechanism of oneself to this invalid address, and then access contrast is attempted to next address, the IIC device address that can have access to equipment until all preserves.
Chip research staff to design after IIC circuitry when debugging, device address due to IIC equipment arranges the device address of the IIC equipment slipping up or sometimes forget setting, is easy to determine that whether the IIC circuitry designed is correct by the method for above embodiment.The partial circuit design checking out during problem and process IIC equipment is had in IIC circuit design, when IIC circuit design is correct, all effective device address of IIC equipment can also be detected, when forgetting the device address of IIC equipment, the plenty of time need not be spent to check, and circuit confirms the device address of IIC equipment, also need not carry out loaded down with trivial details operation and search data information table, can when not increasing cost, effective device address of one key fast automatic acquisition IIC equipment, greatly increase work efficiency, easily know problem place thus process, auxiliary R & D design debugging.
Corresponding with the detection method of IC bus IIC device address provided by the invention, in the present invention, also relate to a kind of pick-up unit of IC bus IIC device address, function is realized by the detection module of inside, described detection module structural representation as shown in Figure 7, comprising: addressed location 201 and determining unit 202;
Wherein:
Described addressed location 201, for according to device address corresponding to described IIC equipment, conducts interviews to described IIC equipment;
Described determining unit 202, for when accessing successfully, determines that the device address that described IIC equipment is corresponding is effective device address.
The IIC device address pick-up unit that the application embodiment of the present invention provides, when needs carry out address detected to IIC equipment, addressed location 201 in detection module conducts interviews to equipment according to the address that IIC equipment is corresponding according to preset order, whether determining unit 202 accesses successful judgement to access, access and successfully then described IIC device address is defined as effective device address, determine effective device address of all IIC equipment be associated in bus fast, time-saving and efficiency.
Fig. 8 shows, and the structural representation of addressed location 201 in IIC device address pick-up unit Fig. 7 of the present invention, comprising: write operation subelement 301, read operation subelement 302 and contrast subunit 303;
Wherein:
Described write operation subelement 301, for according to device address corresponding to described IIC equipment, carries out write operation to described IIC equipment;
Described read operation subelement 302, for according to device address corresponding to described IIC equipment, carries out the read operation corresponding with described write operation to described IIC equipment;
Described comparer unit 303 is compared for the service data that service data corresponding for described write operation is corresponding with described read operation.
As shown in Figure 9, be also provided with in the detection module of IIC device address provided by the invention pick-up unit: storage unit 203;
Described storage unit 203 is for preserving the corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it.
After effective device address of all IIC equipment be associated in bus is determined by determining unit 202, storage unit 203 is preserved this effective address and the corresponding relation of IIC equipment that can be had access to by address.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Finally, also it should be noted that, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.
For convenience of description, various unit and subelement is divided into describe respectively with function when describing device corresponding to above the method.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing of the present invention.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, uses computer equipment to perform the method described in some part of each embodiment of the present invention or embodiment.
Be described in detail method and apparatus provided by the present invention above, apply specific case herein and set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1. a detection method for IC bus IIC device address, is characterized in that, comprising:
According to the detection ordering preset, successively detection operation is carried out to current each IIC equipment be associated on IC bus;
Described detection operation comprises:
According to the device address that described IIC equipment is corresponding, described IIC equipment is conducted interviews;
When accessing successfully, determine that the device address that described IIC equipment is corresponding is effective device address.
2. method according to claim 1, is characterized in that, described default detection ordering is:
By the sequence detection that each the IIC equipment corresponding device address be associated on IC bus is ascending;
Or
By the sequence detection that each the IIC equipment corresponding device address be associated on IC bus is descending;
Or
By the random sequence detection randomly drawed of each the IIC equipment corresponding device address be associated on IC bus.
3. method according to claim 1, is characterized in that, described conducting interviews to IIC equipment comprises:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, judge the access success to IIC equipment.
4. method according to claim 1, is characterized in that, described conducting interviews to IIC equipment comprises:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described write operation, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
When within the time interval of presetting, when receiving the answer signal of described IIC equipment to described read operation, the service data that service data corresponding for described write operation is corresponding with described read operation is compared;
When comparison result is consistent, judge the access success to IIC equipment.
5. method according to claim 1, is characterized in that, conducting interviews to described IIC equipment comprises:
According to the device address that described IIC equipment is corresponding, write operation is carried out to described IIC equipment, and within the time interval of presetting, according to the device address that described IIC equipment is corresponding, the read operation corresponding with described write operation is carried out to described IIC equipment;
The service data that service data corresponding for described write operation is corresponding with described read operation is compared;
When comparison result is consistent, judge the access success to IIC equipment.
6. method according to claim 1, is characterized in that, also comprises:
The corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it is preserved.
7. method according to claim 1, is characterized in that, also comprises:
When accessing unsuccessful, the device address corresponding to current accessed IIC equipment is revised.
8. a pick-up unit for IC bus IIC device address, is characterized in that, comprising:
Detection module, for according to the detection ordering preset, carries out detection operation to current each IIC equipment be associated on IC bus successively;
Described detection module comprises:
Addressed location, for according to device address corresponding to described IIC equipment, conducts interviews to described IIC equipment;
Determining unit, for when accessing successfully, determines that the device address that described IIC equipment is corresponding is effective device address.
9. device according to claim 8, is characterized in that, described addressed location comprises:
Write operation subelement, for according to device address corresponding to described IIC equipment, carries out write operation to described IIC equipment;
Read operation subelement, for according to device address corresponding to described IIC equipment, carries out the read operation corresponding with described write operation to described IIC equipment;
Comparer unit, compares for the service data that service data corresponding for described write operation is corresponding with described read operation.
10. device according to claim 8, is characterized in that, also comprises:
Storage unit, for preserving the corresponding relation of described effective device address and this effective device address IIC equipment corresponding with it.
CN201410534816.2A 2014-10-11 2014-10-11 IIC device address detection method and device Pending CN104298625A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410534816.2A CN104298625A (en) 2014-10-11 2014-10-11 IIC device address detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410534816.2A CN104298625A (en) 2014-10-11 2014-10-11 IIC device address detection method and device

Publications (1)

Publication Number Publication Date
CN104298625A true CN104298625A (en) 2015-01-21

Family

ID=52318356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410534816.2A Pending CN104298625A (en) 2014-10-11 2014-10-11 IIC device address detection method and device

Country Status (1)

Country Link
CN (1) CN104298625A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354157A (en) * 2015-11-26 2016-02-24 北京天诚盛业科技有限公司 Method, device and system for configuring IIC (Inter-Integrated Circuit) device
CN108880916A (en) * 2018-08-21 2018-11-23 郑州云海信息技术有限公司 A kind of Fault Locating Method and system based on iic bus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1212517A (en) * 1997-08-28 1999-03-31 三星电子株式会社 Serial data communication between integrated circuits
CN101071394A (en) * 2006-05-08 2007-11-14 中兴通讯股份有限公司 Inter-board transparent transmission bus test device and method
US7383364B2 (en) * 2003-07-31 2008-06-03 International Business Machines Corporation Device address locking to facilitate optimum usage of the industry standard IIC bus
CN101937413A (en) * 2010-10-21 2011-01-05 成都优博创技术有限公司 Communication method of I2C bus
CN102169463A (en) * 2011-04-28 2011-08-31 杭州华三通信技术有限公司 Inter-integrated circuit (IIC) bus-based manufacturing information acquisition method and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1212517A (en) * 1997-08-28 1999-03-31 三星电子株式会社 Serial data communication between integrated circuits
US7383364B2 (en) * 2003-07-31 2008-06-03 International Business Machines Corporation Device address locking to facilitate optimum usage of the industry standard IIC bus
CN101071394A (en) * 2006-05-08 2007-11-14 中兴通讯股份有限公司 Inter-board transparent transmission bus test device and method
CN101937413A (en) * 2010-10-21 2011-01-05 成都优博创技术有限公司 Communication method of I2C bus
CN102169463A (en) * 2011-04-28 2011-08-31 杭州华三通信技术有限公司 Inter-integrated circuit (IIC) bus-based manufacturing information acquisition method and equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354157A (en) * 2015-11-26 2016-02-24 北京天诚盛业科技有限公司 Method, device and system for configuring IIC (Inter-Integrated Circuit) device
CN108880916A (en) * 2018-08-21 2018-11-23 郑州云海信息技术有限公司 A kind of Fault Locating Method and system based on iic bus
CN108880916B (en) * 2018-08-21 2021-06-29 郑州云海信息技术有限公司 IIC bus-based fault positioning method and system

Similar Documents

Publication Publication Date Title
CN102904685B (en) A kind of processing method of hardware table item check errors and device
CN102253810B (en) Method, apparatus and system used for reading data
US8972838B2 (en) Data transmission detecting device, data transmission detecting method and electronic device thereof
CN103365701A (en) Work method of analog card reader and analog communication system
CN103247345A (en) Quick-flash memory and detection method for failure memory cell of quick-flash memory
CN103530215B (en) A kind of self checking method of internal integrated circuit main frame, device and main frame
EP2960777B1 (en) Data protection method, apparatus and device
CN115934389A (en) System and method for error reporting and handling
CN103412838B (en) A kind of expanding system, communication means, address configuration method, equipment and device
CN104298625A (en) IIC device address detection method and device
CN111694508A (en) Method and system for managing LBA overlap checks in NVMe based SSDs
US20140229796A1 (en) Electronic Control Apparatus
US9934117B2 (en) Apparatus and method for fault detection to ensure device independence on a bus
CN113946480A (en) Detection device and method for I2C bus
CN104360973A (en) Communicating system, communicating method and relevant communicating devices
CN103257905A (en) Embedded computer system stored data checking circuit and method
CN102622274A (en) Computer device and interrupt task allocation method thereof
CN112866061A (en) NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN111651007A (en) Server cabinet U bit management method and management system
CN105260133A (en) Data writing method and system for EMMC (Embedded Multi Media Card) of mobile terminal
CN105354107A (en) Data transmission method and system for NOR Flash
CN108038061B (en) Address allocation method and PLC system
CN111596199B (en) Test chip, integrated circuit test method and system and detection equipment
CN103389922B (en) For the bus ECC check system of random access memory
US10467098B2 (en) Method for supervising and initializing ports

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 230601, Hefei economic and Technological Development Zone, Anhui province innovation and entrepreneurship Park, block A, four

Applicant after: Long Xun semiconductor (Hefei) Limited by Share Ltd

Address before: 230601, Hefei economic and Technological Development Zone, Anhui province innovation and entrepreneurship Park, block A, four

Applicant before: Lontium Semiconductor Technology (Hefei) Co.,Ltd.

CB03 Change of inventor or designer information

Inventor after: Zhang Jun

Inventor after: Chen Feng

Inventor after: Su Jin

Inventor after: Xia Hongfeng

Inventor after: Tao Cheng

Inventor before: Zhang Jun

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication

Application publication date: 20150121

RJ01 Rejection of invention patent application after publication