CN108494889A - Telecommunication circuit based on I2C buses and adjustment method - Google Patents
Telecommunication circuit based on I2C buses and adjustment method Download PDFInfo
- Publication number
- CN108494889A CN108494889A CN201810125084.XA CN201810125084A CN108494889A CN 108494889 A CN108494889 A CN 108494889A CN 201810125084 A CN201810125084 A CN 201810125084A CN 108494889 A CN108494889 A CN 108494889A
- Authority
- CN
- China
- Prior art keywords
- peripheral components
- interface
- conversion
- main device
- devices
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5046—Resolving address allocation conflicts; Testing of addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40052—High-speed IEEE 1394 serial bus
- H04L12/40078—Bus configuration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Bus Control (AREA)
- Information Transfer Systems (AREA)
Abstract
The invention discloses a kind of telecommunication circuit and adjustment method based on I2C buses, the circuit includes main device and conversion I2C devices, main device and conversion I2C devices are both provided with I2C interface and translation interface, the I2C interface of main device is for connecting the first peripheral components, the translation interface of main device is connect with the translation interface of conversion I2C devices, and the I2C interface of conversion I2C devices is for connecting the second peripheral components;When being connected to the first peripheral components and the second peripheral components address conflict of I2C buses all the way, I2C devices are converted by introducing, non- I2C protocol datas are converted with I2C protocol datas, realize the data double-way transmission between main device and the second peripheral components, solve the problems, such as the 12C address conflicts of the first peripheral components and the second peripheral components, it is not necessary that the peripheral components of conflict are adjusted in other 12C buses, the stationarity of software and hardware is improved;Circuit structure is simple simultaneously, and cost is relatively low.
Description
Technical field
The present invention relates to communication control fields, more particularly to a kind of telecommunication circuit and adjustment method based on I2C buses.
Background technology
Modern larger communication equipment and electromechanical equipment are to pass through I2C buses (Inter- by many electronic devices
Integrated Circuit, internal integrated circuit bus) it is formed by connecting;I2C buses are the one kind developed by Philips companies
Simply, bidirectional two-line synchronous serial bus, it is only necessary to transmit data between the device that both threads can be on being connected to bus.
Main device and multiple peripheral components can be connected with I2C buses all the way, the address of peripheral components by address of devices and is drawn
Foot address two parts composition, totally seven encode;Address of devices is the intrinsic address coding of I2C devices, and device has just been given when dispatching from the factory
It is fixed, it can not change;Pin address is determined by the address pin of I2C bus peripheral components, and power supply is being connect in circuit just according to device
Pole, ground connection or hanging difference form different address codes, and it is total that pin number of addresses determines that same device can access I2C
The maximum number of line.
And communication port is only built by I2C buses all the way between device in traditional technology, because each device is in I2C buses
Address uniqueness need to conflict in the process of development when two address of devices with I2C buses all the way clash
Device be transferred to other I2C buses, to cause the entanglement and variation of software and hardware, production efficiency is reduced, to increase
Production cost.
Invention content
Based on this, in view of the above-mentioned problems, the present invention provides a kind of telecommunication circuit and adjustment method based on I2C buses,
To solve the problems, such as I2C address conflicts, production cost is reduced.
A kind of telecommunication circuit based on I2C buses, including main device and conversion I2C devices;
The main device and the conversion I2C devices are both provided with I2C interface and translation interface;
The I2C interface of the main device is for connecting the first peripheral components;
The translation interface of the main device is connect with the translation interface of the conversion I2C devices, the conversion I2C devices
I2C interface is for connecting the second peripheral components.
In one embodiment, the telecommunication circuit based on I2C buses further includes first resistor and second resistance;
One end of the first resistor connects the I2C interface of the main device, and the other end of the first resistor is for connecting
Connect first peripheral components;
One end of the second resistance connects the I2C interface of the conversion I2C devices, and the other end of the second resistance is used
In connection second peripheral components.
First resistor and second resistance play the role of break-make road and matching impedance in circuit, increase the switching of break-make road
The option of operation effectively reduces amplitude and the duration of ring overshoot, is conducive to the reception of signal.
In one embodiment, the translation interface is USB interface, and the I2C devices of converting convert I2C chips into USB;
Main device and USB conversion I2C chips equipped with USB interface are with hot-swappable, easy to carry, standard is unified, can connect multiple set
The standby and fast advantage of communication speed.
In one embodiment, the translation interface is USB2.0 interfaces.
In one embodiment, the conversion I2C devices include UART conversion I2C chips or SPI conversion I2C chips.
In one embodiment, the telecommunication circuit based on I2C buses further includes hub, one end connection of the hub
The USB interface of the main device, the other end of the hub connect the USB interface of the USB conversions I2C chips;By drawing
The access amount of conversion I2C devices can be increased by entering hub, so that the peripheral components of conversion I2C devices connection corresponding number, are realized
Main device is with regard to operable multiple peripheral components.
In one embodiment, the hub includes passive Hub, active hub or intelligent HUB.
In one embodiment, the conversion I2C devices are equipped with multiple I2C interfaces.
In one embodiment, second peripheral components are that display screen controls chip.
A kind of adjustment method based on I2C buses, includes the following steps:
Second peripheral components are connected to the I2C interface of main device, and second peripheral components are debugged;
When detecting that second peripheral components are connected to the addresses I2C of the first peripheral components of the I2C interface of main device
When conflict, the connection of second peripheral components and the main device is disconnected;
Second peripheral components are connected to the I2C interface of conversion I2C devices, and the conversion I2C devices are turned
Alias is connected to the translation interface of the main device, so that second peripheral components are communicated with the main device, and
Second peripheral components are debugged.
The above-mentioned technical proposal of the present invention has the advantages that:When the first periphery for being connected to same I2C buses all the way
It, will by introducing conversion I2C devices between main device and the second peripheral components when the address conflict of device and the second peripheral components
Non- I2C protocol datas are converted with I2C protocol datas, realize the data double-way transmission between main device and the second peripheral components,
Solve the problems, such as the I2C address conflicts of the first peripheral components and the second peripheral components, without the peripheral components adjustment that will conflict
Onto other I2C buses, the stationarity of software and hardware is improved;Circuit structure is simple simultaneously, and actual product is easily designed and raw
Production, cost are relatively low.
Description of the drawings
Fig. 1 is the First Principle block diagram of the telecommunication circuit based on I2C buses in the embodiment of the present invention;
Fig. 2 is the functional block diagram of the I2C bus communication circuitries of traditional technology;
Fig. 3 is the second functional block diagram of the telecommunication circuit based on I2C buses in the embodiment of the present invention;
Fig. 4 is the flow chart of the adjustment method based on I2C buses in the embodiment of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, by the following examples, it and combines attached
The telecommunication circuit based on I2C buses of the present invention is further elaborated in figure.
It should be appreciated that unless otherwise defined, all of technologies and scientific terms used here by the article and belong to the present invention's
The normally understood meaning of those skilled in the art is identical;Term " first ", " second " etc. are used for description purposes only, and cannot
It is interpreted as indicating or implying that relative importance knows the quantity for implicitly indicating indicated technical characteristic;Define as a result, " the
The feature of one ", " second " etc. can explicitly or implicitly include one or more this feature;In description of the invention
In, unless otherwise indicated, " multiple " are meant that two or more.
It should be noted that when an element is considered as " connection " another element, it can be directly to separately
One element may be simultaneously present centering elements.On the contrary, when element is connect referred to as " direct " with another element, do not deposit
In intermediary element.
A kind of telecommunication circuit based on I2C buses is provided in the embodiment of the present invention, as shown in Figure 1, including 10 He of main device
Convert I2C devices 20;Main device 10 and conversion I2C devices 20 are both provided with I2C interface and translation interface;The I2C of main device 10
Interface 120 is for connecting the first peripheral components 40;The translation interface of the translation interface 110 of main device 10 and conversion I2C devices 20
210 connections, the I2C interface 220 of conversion I2C devices 20 is for connecting the second peripheral components 30.
It is a kind of communication device for mutually converting non-I2C protocol datas and I2C protocol datas to convert I2C devices 20.Turn
It can be that USB (UniversalSerial Bus, universal serial bus) converts I2C devices to change I2C devices 20, and USB converts I2C dresses
USB interface and I2C interface have been installed, usb protocol data can be converted to I2C protocol datas, I2C protocol datas can also have been converted
For usb protocol data.
Non- I2C protocol datas refer to the translation interface by the translation interface 110 and conversion I2C devices 20 of main device 10
210 data being transmitted are different from I2C protocol datas, and non-I2C protocol datas can be usb data, and usb data is main device
10 are transmitted with conversion I2C devices 20 by usb bus.
In the present embodiment, the first peripheral components 40 are equipped with I2C interface 420, the I2C interface 120 and first of main device 10
The I2C interface of peripheral components 40 is connected by I2C buses, realizes the I2C protocol datas of main device 10 and the first peripheral components 40
Transmitted in both directions.
In the present embodiment, the second peripheral components 30 are equipped with I2C interface 320, the I2C interface 220 of conversion I2C devices 20 with
The I2C interface 320 of second peripheral components 30 connects.
When the needs of main device 10 are communicated with the second peripheral components 30, main device 10 is sent out by its translation interface 110
Send non-I2C protocol datas to conversion I2C devices 20, which is converted to I2C agreement numbers by conversion I2C devices 20
According to, and the I2C protocol datas are sent to the second peripheral components 30 by I2C interface 220.Similarly, when the second peripheral components 30
When needing to be communicated with main device 10, I2C protocol datas are sent to by the second peripheral components 30 by its I2C interface 320 to be turned
Change I2C devices 20, I2C protocol datas are converted to non-I2C protocol datas by conversion I2C devices 20, and by the non-I2C protocol datas
It is sent to main device 10 by translation interface 210;Main device 10 and the second peripheral components 30 are realized by converting I2C devices 20
Bidirectional data transfers.
In the prior art, as shown in Fig. 2, the interface definition between device only has I2C all the way, main device 10 passes through with all the way
I2C buses are connect with the first peripheral components 40, the second peripheral components 30, main device 10 and first the 40, second periphery of peripheral components
Device 30 only carries out transmitted in both directions by I2C buses all the way, when the address conflict of the first peripheral components 40 and the second peripheral components 30
When (i.e. address is identical), the peripheral components of conflict can only be adjusted in other I2C buses, and cause the entanglement of software and hardware
And variation, production efficiency is reduced, to increase production cost.And in the present embodiment, by main device 10 and the second periphery
Conversion I2C devices 20 are introduced between device 30, non-I2C protocol datas are converted with I2C protocol datas, realize 10 He of main device
Data double-way transmission between second peripheral components 30, solves the addresses I2C of the first peripheral components 40 and the second peripheral components 30
The problem of conflict, improves the stationarity of software and hardware it is not necessary that the peripheral components of conflict are adjusted in other I2C buses;Together
When circuit it is simple, actual product is easily designed and production, and cost is relatively low.
The telecommunication circuit based on I2C buses in the embodiment of the present invention, as shown in Fig. 2, further including first resistor 70 and
Two resistance 80;The I2C interface 120 of one end connection main device 10 of first resistor 70, the other end of first resistor 70 is for connecting
First peripheral components 40;The I2C interface 220 of one end connection conversion I2C devices 20 of second resistance 80, second resistance 80 it is another
End is for connecting the second peripheral components 30.
In the present embodiment, first resistor 70 and second resistance 80 are as the resistance concatenated in signal chains, first resistor 70
With the open circuit that can lead to circuit when 80 non-access communications circuit of second resistance, first resistor 70 and second resistance 80 rise in circuit
To the effect on break-make road.
In the present embodiment, first resistor 70 and second resistance 80 are as the resistance concatenated in signal chains, because on circuit board
Signal wire have characteristic impedance, if between this feature impedance and source impedance and load impedance mismatch will produce reflection,
Back wave is superimposed to form standing wave on the line with incidence wave;When this occurs, different location different frequency on circuit
On amplitude it is all different, can in the line generate ring, overshoot phenomena such as.By concatenating first resistor 70 and second resistance 80
Mode reduces amplitude and the duration of ring overshoot, therefore first resistor 70 and second resistance 80 play in the present embodiment
The effect of matching impedance.
In conclusion by introducing first resistor 70 and second resistance 80, first resistor 70 and second resistance 80 are in circuit
In play the role of break-make road, increase the option of break-make road handover operation, be convenient for circuit developer;70 He of first resistor simultaneously
Second resistance 80 plays the role of matching impedance, amplitude and the duration of ring overshoot is effectively reduced, conducive to connecing for signal
It receives.
In one embodiment, conversion I2C devices 20 are conversion I2C chips, and chip generally refers to the carrier of integrated circuit,
And integrated circuit after design, manufacture, encapsulation, test as a result, typically one can use immediately it is independent whole
Body.
In the present embodiment, conversion I2C chips are provided with I2C interface and translation interface, are connected and are converted by I2C buses
The translation interface 110 of I2C chips and the second peripheral components 30, the translation interface 210 and main device 10 of converting I2C chips connects;
The non-I2C protocol datas that main device 10 is sent out are converted into I2C protocol datas by converting I2C chips, it also can be by I2C agreement numbers
According to non-I2C protocol datas are converted to, the bidirectional data transfers of main device 10 and the second peripheral components 30 are realized.
Optionally, conversion I2C chips can be replaced by converting I2C microcontrollers;It converts I2C microcontrollers and is equipped with translation interface
210 and I2C interface 220, translation interface 210 connect with the translation interface 110 of main device 10, I2C interface 220 and the second peripheral device
The I2C interface 320 of part 30 connects, and realizes the bidirectional data transfers of main device 10 and the second peripheral components 30.
Optionally, conversion I2C chips can be replaced by converting I2C adapters, and conversion I2C adapters are equipped with translation interface
210 and I2C interface 220, belong to simple signal conversion equipment, being different from microcontroller etc. has the device of complete computer,
Therefore under the control of external computer terminal, pair of main device 10 and the second peripheral components 30 may be implemented in conversion I2C adapters
It is converted to data.
It should be noted that conversion I2C chips, conversion I2C microcontrollers and converting I2C adapters setting in the present embodiment
As meter thinking, role with the effect reached be, but the complex degree of structure of three and other purposes have difference
Property, user can select according to self-demand.
In one embodiment, as shown in figure 3, convert I2C devices 20 can be USB conversion I2C chips, USB relative to
I2C is another external bus standard, for specification master unit and being connected and communicate with from component.At this point, translation interface 210 is
USB interface, main device 10 and USB conversion I2C chips are both provided with I2C interface and USB interface.
In one embodiment, USB converts I2C chips and converts I2C chips into USB2.0;Translation interface 210 is USB2.0
Interface;USB2.0 is a kind of USB interface gone out as standard development using USB2.0 agreements, is connect relative to USB1.0 interfaces and USB1.1
Mouthful, faster, application range is wider for USB2.0 interfaces transmission speed, and USB2.0 interfaces become the general-purpose interface of hardware vendor.
In another embodiment, USB converts I2C chips and converts I2C chips into USB3.0, and translation interface 210 is
USB3.0;Compared to USB2.0, USB3.0 interfaces maximum transfer speed faster, is not widely used at present.
As described above, the main device 10 for being provided with USB interface has, hot-swappable, easy to carry, standard is unified, it is more to connect
A equipment and the fast advantage of communication speed, therefore the USB conversion I2C chip mating with main device 10 improves signal conversion speed
It spends, simplify operation;Chip includes the silicon chip of integrated circuit, volume very little simultaneously so that USB convert the volumes of I2C chips compared with
It is small, it can correspondingly reduce the volume of circuit board.
Main device 10 converts the data transmission of I2C chips realization and the second peripheral components 30 by USB so that main device 10
The second peripheral components 30 equipped with I2C interface can be operated as operation USB device.
In one embodiment, conversion I2C devices 20 can be UART (Universal Asynchronous
Receiver/Transmitter, universal asynchronous receiving-transmitting transmitter) conversion I2C chips, UART is a kind of asynchronous receiving-transmitting transmitter,
The data that it will be transmitted is converted between serial communication and parallel communications.Main device 10 and UART conversion I2C chips are equal
It is provided with UART interface and I2C interface, converting I2C chips by UART is used as centering elements connection main device 10 and the second periphery
Device 30 is mutually converted UART protocol data and I2C protocol datas so that main device 10 can be as operating UART equipment
Equally operate the second peripheral components 30.
In one embodiment, conversion I2C devices 20 can be SPI (Serial Peripheral Interface, string
Row Peripheral Interface) conversion I2C chips, a kind of high speeds of SPI, full duplex, synchronization communication bus.Main device 10 and SPI conversions
I2C chips are both provided with I2C interface and SPI interface, and convert I2C chips by SPI builds communication port, SPI into centering elements
The SPI protocol data that main device 10 is sent out are converted to I2C protocol datas by conversion I2C chips, and SPI converts I2C chips and can also incite somebody to action
I2C protocol datas are converted to SPI protocol data, and main device 10 is converted I2C chips by SPI and realized and the second peripheral components 30
Data transmission.
As described above, user can select corresponding conversion I2C devices 20 according to the interface of actual demand and main device 10, with
Realize the data transmission between main device 10 and the second peripheral components 30.
The telecommunication circuit based on I2C buses of the embodiment of the present invention, as shown in figure 3, further including hub 90, hub 90
One end connection main device 10 USB interface, hub 90 the other end connection USB conversion I2C chips USB interface.
Hub 90 (HUB) major function is to carry out regeneration shaping amplification to the signal received, to expand the biography of network
Defeated distance, while all nodes are concentrated on the node centered on it.
In the present embodiment, 90 quantity of hub can be one or more, and the USB interface of each hub 90 can be with
There are one or it is multiple, hub 90 can be passive Hub, active hub or intelligent HUB.
For example, the telecommunication circuit based on I2C buses in the present embodiment includes a hub 90, and the hub
90 USB interface has 5, and hub 90 can be connect with 5 USB conversion I2C chips by usb bus, each USB conversions
I2C chips are connected by I2C buses with corresponding peripheral components, therefore the main device 10 set there are one USB interface can be grasped simultaneously
Make 5 peripheral components.
As described above, by introducing hub 90, the access amount of USB conversion I2C chips is increased, so that USB converts I2C
Device connects the peripheral components of corresponding number, realizes the main device 10 of USB interface there are one setting with regard to operable multiple peripheral components.
In one embodiment, conversion I2C devices 20 are equipped with multiple I2C interfaces so that conversion I2C devices 20 can with it is multiple
Peripheral components are connected by I2C buses, at this point, main device 10 is operable multiple by the multiple I2C interfaces for converting I2C devices 20
Peripheral components.
For example, conversion I2C devices 20 are set there are two I2C interface, conversion I2C devices 20 pass through I2C buses and two
Peripheral components connect, therefore main device 10 by set there are two I2C interface conversion I2C devices 20 operate two peripheral components.
As described above, being equipped with multiple I2C interfaces by converting I2C devices 20, it can increase and convert the connection of I2C devices 20
Peripheral components realize that main device 10, with regard to operable multiple peripheral components, while reducing practical application by a translation interface
The volume of middle printed circuit board.
In one embodiment, the second peripheral components 30 are that display screen controls chip, main device 10 and the first peripheral components
40 are connected by I2C buses, and display screen controls chip and connect by I2C buses with conversion I2C devices 20, conversion I2C devices 20
Translation interface 210 connect with the translation interface of chip, main device 10 pass through convert 20 operating display of I2C devices control core
Piece.
It should be noted that the first peripheral components 40 and the second peripheral components 30 refer to the device for having I2C interface, at this
The second peripheral components 30 are that display screen controls chip in embodiment, can not the second peripheral components 30 be limited to display screen control
Chip, the second peripheral components 30 further include other devices with I2C interface, and details are not described herein.
A kind of adjustment method based on I2C buses is provided in the embodiment of the present invention, as shown in figure 4, and together referring to Fig.1
To Fig. 3, this approach includes the following steps:
S1:Second peripheral components 30 are connected to the I2C interface 120 of main device 10, and the second peripheral components 30 are carried out
Debugging.
Main device 10 is provided only with an I2C interface, and the I2C interface 120 of main device 10 has connected the first peripheral components 40
I2C interface 420, in debugging process, by the I2C interface 120 of the I2C interface 320 of the second peripheral components 30 and main device 10 into
Row connection, and the second peripheral components 30 are debugged.At this point, main device is only by the same as I2C buses all the way and the first peripheral device
Part 40, the connection of the second peripheral components 30, since the first peripheral components 40 and the second peripheral components 30 are on I2C buses all the way
There is uniqueness, main device 10 can find the second peripheral components 30 according to the addresses I2C, realize main device 10 and the second periphery for address
The bidirectional data transfers of data 30.
S2:When detecting the I2C address conflicts of the second peripheral components 30 and the first peripheral components 40, the second periphery is disconnected
The connection of device 30 and main device 10, the first peripheral components 40 connect the I2C interface 120 of main device 10.
First peripheral components 40, the second peripheral components 30 with I2C buses all the way with main device 10 by connecting, when detecting
When the I2C address conflicts of the first peripheral components 40 and the second peripheral components 30, main device 10 fails to search out according to the addresses I2C
Two peripheral components 30 lead to not transmission data to establish communication port.At this point, disconnecting the I2C interface 120 and the of main device 10
The connection of two peripheral components 30, so that the I2C interface 320 of the second peripheral components 30 is in blank state.
S3:Second peripheral components 30 are connected to the I2C interface 220 of conversion I2C devices 20, and will conversion I2C devices 20
Translation interface 210 be connected to the translation interface 110 of main device 10 so that the second peripheral components 30 are led to main device 10
Letter, and the second peripheral components 30 are debugged.
The I2C interface 320 of second peripheral components 30 and the I2C interface 120 of conversion I2C devices 20 are attached, second
Peripheral components 30 and conversion I2C devices 20 can transmitted in both directions I2C protocol datas by I2C buses;It simultaneously will conversion I2C devices 20
Translation interface 210 connect the translation interface 110 of main device 10, transmit non-I2C between main device 10 and conversion I2C devices 20
Protocol data;And the second peripheral components 30 are debugged.I2C devices 20 are converted by non-I2C protocol datas and I2C protocol datas
It is converted, establishes the data transmission channel of main device 10 and the second peripheral components 30, to realize main device 10 and the second periphery
The bidirectional data transfers of device 30 solve the problems, such as the I2C address conflicts of the first peripheral components 40 and the second peripheral components 30,
Without the peripheral components of conflict are adjusted in other I2C buses, the stationarity of software and hardware is improved.
Optionally, which applies in the development process of circuit board, and main device 10, conversion are provided on circuit board
I2C devices 20, the first peripheral components 40, the second peripheral components 30, first resistor 70 and second resistance 80.The one of first resistor 70
The I2C interface 120 of end connection main device 10, the other end of first resistor 70 connect the first peripheral components 40, the second peripheral components
30 are connected to the I2C interface 120 of main device 10 by second resistance 80, and are debugged to the second peripheral components 30.
When detecting the I2C address conflicts of the second peripheral components 30 and the first peripheral components 40, main device 10 can not root
Carry out data transmission according to the addresses I2C and the second peripheral components 30;Connect between the second peripheral components 30 and main device 10 at this point, deleting
The second resistance 80 connect, so that the data transmission channel of main device 10 and the second peripheral components 30 is breaking, the second peripheral device at this time
The I2C interface 320 of part 30 is in blank state.
Then, then by second resistance 80 it is welded between the second peripheral components 30 and conversion I2C devices 20, i.e.,:Second electricity
One end of resistance 80 connects the I2C interface 320 of the second peripheral components 30, the I2C interface 220 of other end connection conversion I2C devices 20.
Main device 10, conversion I2C devices 20, second resistance 80 and the second peripheral components 30 form communication loop, main device 10 at this time
The debugging to the second peripheral components 30 can be realized with the second peripheral components 30 with transmission data between each other.Wherein, second resistance
80 play the role of break-make road and matching impedance in circuit.
The advantageous effect of method in the present embodiment:Realize main device 10 and the second peripheral components 30 by converting I2C devices
20 bidirectional data transfers, without removing the peripheral components of I2C address conflicts from circuit board, without redesign circuit
Plate;Circuit is simple simultaneously, and actual product is easily designed and production, cost are relatively low.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art
For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention
Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of telecommunication circuit based on I2C buses, which is characterized in that including main device and conversion I2C devices;
The main device and the conversion I2C devices are both provided with I2C interface and translation interface;
The I2C interface of the main device is for connecting the first peripheral components;
The translation interface of the main device is connect with the translation interface of the conversion I2C devices, the I2C of the conversion I2C devices
Interface is for connecting the second peripheral components.
2. a kind of telecommunication circuit based on I2C buses according to claim 1, which is characterized in that further include first resistor
And second resistance;
One end of the first resistor connects the I2C interface of the main device, and the other end of the first resistor is for connecting institute
State the first peripheral components;
One end of the second resistance connects the I2C interface of the conversion I2C devices, and the other end of the second resistance is for connecting
Connect second peripheral components.
3. a kind of telecommunication circuit based on I2C buses according to claim 1 or 2, which is characterized in that the translation interface
For USB interface, the I2C devices of converting convert I2C chips into USB.
4. a kind of telecommunication circuit based on I2C buses according to claim 3, which is characterized in that the translation interface is
USB2.0 interfaces.
5. a kind of telecommunication circuit based on I2C buses according to claim 1 or 2, which is characterized in that the conversion I2C
Device includes UART conversion I2C chips or SPI conversion I2C chips.
6. a kind of telecommunication circuit based on I2C buses according to claim 3, which is characterized in that further include hub, institute
The one end for stating hub connects the USB interface of the main device, and the other end of the hub connects the USB and converts I2C cores
The USB interface of piece.
7. a kind of telecommunication circuit based on I2C buses according to claim 6, which is characterized in that the hub includes
Passive Hub, active hub or intelligent HUB.
8. a kind of telecommunication circuit based on I2C buses according to claim 1 or 2, which is characterized in that the conversion I2C
Device is equipped with multiple I2C interfaces.
9. a kind of telecommunication circuit based on I2C buses according to claim 1 or 2, which is characterized in that second periphery
Device is that display screen controls chip.
10. a kind of adjustment method based on I2C buses, which is characterized in that include the following steps:
Second peripheral components are connected to the I2C interface of main device, and second peripheral components are debugged;
When detect second peripheral components and be connected to the main device I2C interface the first peripheral components occur I2C
When address conflict, the connection of second peripheral components and the main device is disconnected;
Second peripheral components are connected to the I2C interface of conversion I2C devices, and the conversion of the conversion I2C devices is connect
Mouth is connected to the translation interface of the main device, so that second peripheral components are communicated with the main device, and to institute
The second peripheral components are stated to be debugged.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810125084.XA CN108494889B (en) | 2018-02-07 | 2018-02-07 | Communication circuit based on I2C bus and debugging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810125084.XA CN108494889B (en) | 2018-02-07 | 2018-02-07 | Communication circuit based on I2C bus and debugging method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108494889A true CN108494889A (en) | 2018-09-04 |
CN108494889B CN108494889B (en) | 2021-05-28 |
Family
ID=63344739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810125084.XA Active CN108494889B (en) | 2018-02-07 | 2018-02-07 | Communication circuit based on I2C bus and debugging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108494889B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827268A (en) * | 2022-05-12 | 2022-07-29 | 合肥宏晶半导体科技有限公司 | Remote debugging method and device |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101229432A (en) * | 2007-10-26 | 2008-07-30 | 北京大学 | Method of controlling action emulation and system thereof |
CN101315617A (en) * | 2007-06-01 | 2008-12-03 | 鸿富锦精密工业(深圳)有限公司 | Bus circuit device |
US20090222807A1 (en) * | 2008-02-28 | 2009-09-03 | Mark Yi-Li Fu | Updating Firmware in a Display Device Using a Serial Bus |
US20090234998A1 (en) * | 2008-03-12 | 2009-09-17 | Hon Hai Precision Industry Co., Ltd. | Connection system |
CN101539900A (en) * | 2008-03-18 | 2009-09-23 | 英业达股份有限公司 | Device for solving conflict generated between two I<2>C slave devices with same addressing address |
CN102567270A (en) * | 2011-12-05 | 2012-07-11 | 深圳市金凯博自动化测试有限公司 | USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter |
CN102866683A (en) * | 2012-07-26 | 2013-01-09 | 苏州市大富通信技术有限公司 | Signal conversion device and automatic testing system |
CN105589380A (en) * | 2014-11-11 | 2016-05-18 | 瑞萨电子株式会社 | Connection Relation Detecting System, Information Processing Apparatus, And Connection Relation Detecting Method |
-
2018
- 2018-02-07 CN CN201810125084.XA patent/CN108494889B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101315617A (en) * | 2007-06-01 | 2008-12-03 | 鸿富锦精密工业(深圳)有限公司 | Bus circuit device |
CN101229432A (en) * | 2007-10-26 | 2008-07-30 | 北京大学 | Method of controlling action emulation and system thereof |
US20090222807A1 (en) * | 2008-02-28 | 2009-09-03 | Mark Yi-Li Fu | Updating Firmware in a Display Device Using a Serial Bus |
US20090234998A1 (en) * | 2008-03-12 | 2009-09-17 | Hon Hai Precision Industry Co., Ltd. | Connection system |
CN101539900A (en) * | 2008-03-18 | 2009-09-23 | 英业达股份有限公司 | Device for solving conflict generated between two I<2>C slave devices with same addressing address |
CN102567270A (en) * | 2011-12-05 | 2012-07-11 | 深圳市金凯博自动化测试有限公司 | USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter |
CN102866683A (en) * | 2012-07-26 | 2013-01-09 | 苏州市大富通信技术有限公司 | Signal conversion device and automatic testing system |
CN105589380A (en) * | 2014-11-11 | 2016-05-18 | 瑞萨电子株式会社 | Connection Relation Detecting System, Information Processing Apparatus, And Connection Relation Detecting Method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114827268A (en) * | 2022-05-12 | 2022-07-29 | 合肥宏晶半导体科技有限公司 | Remote debugging method and device |
CN114827268B (en) * | 2022-05-12 | 2024-05-10 | 合肥宏晶半导体科技有限公司 | Remote debugging method and device |
Also Published As
Publication number | Publication date |
---|---|
CN108494889B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101335736B (en) | High-speed peripheral interconnecting interface | |
US8730978B2 (en) | Analog front end protocol converter/adapter for SLPI protocol | |
CN209030353U (en) | Interface circuit and device | |
WO2019072218A1 (en) | Method and device for signal conversion, home bus system (hbs) circuit, and user equipment | |
CN108494889A (en) | Telecommunication circuit based on I2C buses and adjustment method | |
CN110377540A (en) | Master-slave equipment switching device and terminal device under a kind of mode based on USB_OTG | |
CN106713094A (en) | 1394 data collection module | |
CN101030185B (en) | Device for updating USB switching cascade line | |
CN212064011U (en) | Electrical port module | |
CN203847102U (en) | CAN bus and 485 bus node circuit | |
CN206696843U (en) | A kind of USB turns UART communication modules | |
CN210867765U (en) | Remote control network switch | |
CN114442514A (en) | USB3.0/3.1 control system based on FPGA | |
CN107070547B (en) | A kind of CPCI type gigabit Ethernet device with failure monitoring ability | |
CN206363306U (en) | A kind of terminal and its serial communication circuit | |
CN113032321B (en) | Address extension circuit, communication interface chip and communication system | |
CN211906270U (en) | 485 device and RS485 interface of self-adaptation serial bus polarity | |
CN211124035U (en) | PAM4 optical module I2C communication system | |
CN209860929U (en) | Communication bus structure | |
CN211183988U (en) | Novel P L C wireless gateway device | |
CN209118135U (en) | A kind of automobile-used CAN bus telecommunication circuit of electrical salf-walking | |
CN216527155U (en) | Data line for communication between two USB HOST interface devices | |
CN208369602U (en) | A kind of combination function network interface card | |
CN108089481A (en) | A kind of automobile detection system circuit based on CAN/LIN | |
CN105512066B (en) | Soft starter communication protocol conversion device and method based on profibus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |