Embodiment
Now will be in detail with reference to embodiment of the present invention, non-common ground series bus physical layer is realized.When describing in conjunction with embodiment when of the present invention, will be understood that to be not intended to limit the invention to these embodiments.On the contrary, the present invention is intended to cover and can be included in the spirit and scope of the present invention that accessory claim limits with interior alternate embodiment, remodeling and equivalent.
And, in below of the present invention, describing in detail, illustrated many specific detail, so that complete understanding of the present invention to be provided.Yet those of ordinary skill in the art will recognize that the present invention can implement under the situation that does not have these specific detail.In other cases, do not describe known method, process, parts and circuit in detail, to avoid that each side of the present invention is fogged.
With reference to Fig. 2, illustrate not common ground buses circuit 100 according to one embodiment of the invention.As shown in Figure 2, common ground buses circuit 100 does not comprise three bus modules 102,104 and 106.Bus module 102,104 is in 106 on (stand on) different voltage (for example, V0 or ground, V1 and V3).Be apparent that to those skilled in the art according to embodiment of the present invention, common ground buses circuit 100 can not comprise the bus module greater or less than three.
In common ground buses circuit 100 not, input voltage signal is the input from node 162.Input voltage signal is converted into current signal.In another embodiment of the invention, input signal can be a current signal, in this case, can save the step or the process of conversion.Then, current signal is transmitted between bus module 102,104 and 106, and is converted into the voltage signal from node 122 outputs.After this manner, input signal is transferred to low common-mode voltage end from high common-mode voltage end.
Bus module 102 comprises MOSFET 125, MOSFET 126 and the current source 127 that is set to current mirror.Similarly, bus module 104 comprises MOSFET 145, MOSFET146 and the current source 147 that is set to current mirror, and bus module 106 comprises MOSFET 165, MOSFET166 and the current source 167 that is set to current mirror.
As shown in Figure 2, when input voltage is in low state, IN=0, switch or MOSFET 164 will be switched on.That is, when input voltage is lower than the V3 certain value for example more than 0.8 volt the time, MOSFET 164 will be switched on.MOSFET 165 and MOSFET 166 form current mirror, make electric current flow through one from the current path of V3 through MOSFET 164, MOSFET 165, MOSFET 145 and MOSFET 125 to VO or ground.This electric current also flows to V0 through resistor 124, produces voltage signal on resistor 124.In other words, resistor 124 converts current signal to voltage signal.Inverse gate 123 is connected to resistor 124, to export an output signal at node 122 places.Will appreciate that output voltage will be in low state, OUT=0, that is, when input voltage was in low state, the output voltage at node 122 places equaled 0 or ground in the bus module 102.
On the other hand, when input voltage is in high state, IN=1, MOSFET 164 will be disconnected.Promptly, the amount that is lower than V3 when input voltage is less than certain value for example 0.3 volt the time, MOSFET 164 will be disconnected, there is not electric current to flow through that current path, the input of inverse gate 123 will be in low state, make output voltage be in high state, OUT=1, that is, the output voltage at node 122 places equals V1 in the bus module 102.Therefore, observe from bus module 106 (high common-mode voltage end: VDD=V3, signal GND=V2) can be transferred to bus module 102 (low common-mode voltage end: VDD=V1, GND=V0).The communication between the common ground buses module is not described in detail in Fig. 7, Fig. 8 a and Fig. 8 b.
And the maximum voltage drop of observing MOSFET 125 in that current path, MOSFET 145 and MOSFET 165 two ends is approximately equal to or less than the difference between the supply voltage of bus module 102,104 and 106.For example, the maximum voltage drop at MOSFET 145 two ends of bus module 104 is illustrated by equation 1-3, and is as follows:
The voltage (V196) of voltage (the V192)-node 196 of the Vds=node 192 of MOSFET 145; (1)
The Vgs ≈ V2 of the Vgs+MOSFET 145 of V192=V2-MOSFET 146; (2)
The Vgs ≈ V1 of the Vgs+MOSFET 125 of V196=V1-MOSFET 126; (3)
Therefore, the Vds of MOSFET 145 approximates (V2-V1).Those of ordinary skill in the art will appreciate that high voltage V3 is not applied on any single MOSFET, but has been divided into several small voltages.
With reference to Fig. 3, illustrate not common ground buses circuit 200 according to one embodiment of the invention.As shown in Figure 3, common ground buses circuit 200 does not comprise three bus modules 202,204 and 206, and bus module 202,204 and 206 is on the different voltage [for example, V0 (or ground), V1 and V3].Be apparent that to those skilled in the art, this not common ground buses circuit 200 can comprise bus module greater or less than three.
In common ground buses circuit 200 not, input voltage is the input from node 222.When input voltage is in the state of hanging down, switch or MOSFET 224 will be disconnected.Current source 227, MOSFET 226 and MOSFET 225 form current mirror, make electric current flow through one from the current path of V3 through MOSFET 265, MOSFET245 and MOSFET 225 to V0 or ground.This electric current resistor 264 of also flowing through produces voltage signal at resistor 264 places.Resistor 264 converts current signal to voltage signal.Inverse gate 263 is connected to resistor 264, to export an output signal at node 262 places.Will appreciate that when the input voltage at node 222 places was in the state of hanging down, the output voltage at node 262 places will be in high state in the bus module 206.
When input voltage was in high state, MOSFET 224 will be switched on.The grid of MOSFET225 is dragged down.To not have any current flows through resistor 264.The input of inverse gate 263 will be in high state, and the output voltage at node 262 places will be in low state.
Therefore, input voltage signal converts current signal to by current mirror and switch 224.Then, current signal transfers to bus module 206 from bus module 202 through bus module 204, and current signal is converted into output voltage signal then, and this output voltage signal is from node 262 outputs.Input signal is transmitted paramount common-mode voltage end from low common-mode voltage end.
With reference to Figure 4 and 5, wherein illustrate not vertical altogether bus circuit 300 according to embodiment of the present invention.Vertical bus circuit 300 comprises a plurality of bus modules 302,304,306 and 308 that are connected to traversal trunk module 301.For illustrative purposes, 4 bus modules have been shown among Fig. 4, yet, should be appreciated that embodiment of the present invention can support one or more bus modules.Traversal trunk module 301 has public ground with bus module 302.Traversal trunk 301 is to have the typical bus module that is used to send with the sending node 452 and the receiving node 454 of received signal.For example, bus module 302,304,306 and 308 is connected respectively to a plurality of battery pack 392,394,396,398 of battery 390.A plurality of equipment (not shown) as analog front-end equipments and so on also are connected respectively to bus module 302,304,306 and 308.The microprocessor (not shown) also can be connected to traversal trunk module 301, so that the numerical data such as the magnitude of voltage of battery pack 392,394,396,398 can be transferred to microprocessor.For example, analog front-end equipments can be connected to battery pack 392, is used for the voltage transitions of battery pack 392 is become digital signal and gives microprocessor with this digital data transmission.Bus module 302,304,306 can be identical with each bus module in 308, and be formed the independent integrated circuit that can be connected in series and be connected to battery 390.
Preferably with reference to Fig. 5, bus module 302 comprises signal sending circuit 382, signal receiving circuit 384 and switching circuit 386.Switch 386 serves as common ground compatible transceiver, to send and to receive earth signal altogether.Switching circuit 386 only is activated in public ground node or minimum bus module 302.Signal sending circuit 382 is similar with bus module 102 and 106 shown in Figure 2, and signal receiving circuit 384 is similar with bus module 202 and 206 shown in Figure 3.
Signal sending circuit 382 comprises sending node 402 that is connected to MOSFET 404 and the current mirror 406 that is used for voltage signal is converted to current signal.The current flows through resistor 408 of current signal is to be converted into voltage signal.Protective circuit 410 is connected to resistor 408, with the voltage clamp at 411 places or be restricted to certain value, avoids overvoltage with protective circuit.
Signal receiving circuit 384 comprises MOSFET 422 and is used for voltage signal is converted to the current mirror 424 of current signal.The resistor 426 that is connected to current mirror 424 converts current signal to voltage signal.This voltage signal will be exported at node 430 places by MOSFET 428, resistor 432 and inverse gate 434.
Switching circuit 386 comprises switch 388 and MOSFET 389, is used for disconnecting the data communication path between (open) or closed (cloSe) transmission part 382 and the receiving unit 384.
Now refer again to Fig. 4, when according to the vertical altogether bus circuit 300 of embodiment of the present invention operations, the sending node 452 of the sending node of arbitrary bus module or traversal trunk module 301 can be used to send signal in the bus module 302,304,306,308.In addition, all receiving nodes 430,431,433,435 of bus module 302,304,306,308 and the receiving node 454 of traversal trunk module 301 can be used to received signal.
For example, when any vertical sending node place in sending node 402,442,444 or 446 sends signal, resistor 408 will be via the transmission current path received current signal that comprises node 370,372,374,376 and 378, and converts current signal to voltage signal.Voltage signal is transferred to receiving unit 384, and as shown in Figure 5, bus module 302,304,306 and 308 receiving node 430,431,433 and 435 will be exported this signal then.Similarly, when signal when the sending node 452 of traversal trunk module 301 is sent out, bus module 302,304,306 and 308 receiving node 430,431,433 and 435 will be exported this signal.
Each bus module in the bus module 302,304,306,308 can form identical integrated circuit (IC) chip.The switch 388 of lowermost bus module 302 is by configuration pin 387 controls.At lowermost level (stage), the switch 388 of bus module 302 keeps conducting state, and in other levels, the switch 352,354,356 of bus module 304,306,308 keeps off-state.
And in lowermost level, switch 388 remains closed, and the voltage-driven switch 389 of resistor 408 produces a voltage signal at pullup resistor 303 places that are connected to voltage source Vcc.The voltage signal driven MOS FET 422 at pullup resistor 303 places, as shown in Figure 5 and current mirror 424, electric current will flow through the received current path that comprises node 371,373,375,377 and 379 like this.Node 371 is connected to ground.When bus module 308 was the highest module, node 379 was connected to the power supply (power) of this bus module.Then, bus module 302,306,304 and all receiving nodes 430,431,433 and 435 of 308 will receive a voltage signal.As shown in Figure 4, the voltage signal at pullup resistor 303 places also is transferred to the receiving node 454 of traversal trunk module 301.
In addition, when signal is sent out at sending node 452 places of traversal trunk module 301, MOSFET456 will be driven, and electric current will flow through pullup resistor 303, so that will come driven MOS FET 422 and current mirror 424 at pullup resistor 303 places voltage of generation.Electric current will flow through the received current path, and module 302,306,304 and all receiving nodes 430,431,433,435 of 308 will receive a voltage signal.Therefore, when any bus module of a signal from the bus module that comprises vertical bus module and traversal trunk module was sent out, each receiving node of these bus modules will receive this signal.In other words, comprise that each bus module in the bus module of vertical and traversal trunk module can be simultaneously from arbitrary bus module reception data.
In addition, for the arbitration purpose, universal serial bus needs " line with " (WIRE AND) function.With reference to Fig. 4, wherein bus module 302,304,306 and 308 has sending node 402,442,444 and 446 respectively.In this layout, carry out " line with " logic function according to the not common ground buses circuit 300 of embodiment of the present invention.When any sending node in sending node 402,442,444 and 446 is in low state, the electric current by the transmission current path will be worth for certain, make the voltage at resistor 408 places be in high state, and the voltage at pullup resistor 303 places is in low state.
On the other hand, when all sending nodes 402,442,444 and 446 are in high state, the electric current by the transmission current path will be about zero, make the voltage at resistor 408 places be in low state, and the voltage at pullup resistor 303 places is in high state.In other words, as long as any logical value of sending node 402,442,444 and 446 is 0, the logical value at pullup resistor 303 places just is 0.Have only each logical value of sending node 402,442,444 and 446 to be at 1 o'clock, the logical value at pullup resistor 303 places is 1.
With reference to Fig. 6, show bus topology 600 according to one embodiment of the invention.Bus topology 600 is used for the I2C bus and uses.In protocol level, it uses identical with conventional I2C.Bus topology 600 comprises a plurality of vertical bus modules 612,614 and 616 and a plurality of traversal trunk module 622 and 624.For illustrative purposes, figure 6 illustrates three bus modules.Yet, should be appreciated that embodiment of the present invention can support one or more bus modules.Vertical bus module 612,614 and 616 is connected respectively to a plurality of battery pack blocks 652,654 and 656 of battery 650.According to description above, vertical bus module 612,614 and 616 is on the different voltage, can be by the I2C agreement with other bus module communication.
With reference to Fig. 7, show not common ground buses circuit 700 according to one embodiment of the invention.As shown in Figure 7, common ground buses circuit 700 does not comprise four bus modules 702,704,706 and 708.Bus module 702,704,706 and 708 for example is connected respectively to a plurality of battery pack 732,734,736 and 738 of battery 730.Be apparent that to those skilled in the art common ground buses circuit 700 can not comprise that these bus modules can be connected to the battery pack of equal number more than four bus modules.
Bus module 702,704,706 and 708 comprises a plurality of voltage sources 722,742,762 and 782 of floating.In addition, bus module comprises buffer 724,744,764 and 784.In addition, bus module comprises switch 726,746,766 and 786.
In the not common ground buses circuit 700 according to embodiment of the present invention, the voltage that the voltage at voltage source 782 two ends equals battery pack 738 multiply by COEFFICIENT K, and wherein, for example, K can equal 0.8, that is, and and V1=VBT1*K, wherein K=0.8.The voltage at voltage source 762,742 and 722 two ends equals the voltage of battery pack 736,734 and 732 respectively, (for example, V2=VBT2, V3=VBT3, V4=VBT4).
In this layout, when all switches 726,746,766 and 786 disconnected, buffer 724,744,764 and 784 input voltage will equal the voltage difference of voltage source 782 and battery pack 738, (for example, VBT1-V1).
As long as any one switch closure in the switch 726,746,766 and 786, buffer 724,744,764 and 784 input voltage will equal local ground.For example, in this case, the input voltage of buffer 744 equals the voltage of battery pack 732, (for example, VBT4).
Therefore, not common ground buses circuit 700 satisfied requirements as universal serial bus such as I2C buses, and can be used for not having publicly but the system that is connected in series for identical purpose.Not common ground buses circuit 700 according to embodiment of the present invention is suitable for the battery that its voltage has tolerance, as is used for battery of motor vehicle etc.
In addition, can be used to comprise CLOCK and DATA bus according to the structure of the not common ground buses circuit 700 of one embodiment of the invention, to observe as bus protocols such as I2C bus protocols.
With reference to Fig. 8 a and Fig. 8 b, show not common ground buses circuit 800 according to one embodiment of the invention.Bus circuit 800 comprises four bus modules 802,804,806 and 808, and these bus modules can be identical and be formed independent integrated circuit.Bus module 802,804,806 and 808 is connected to four battery pack 832,834,836 and 838 of battery 830.
For clarity sake, will describe bus module 802 and 808 as an example in detail hereinafter.Shown in Fig. 8 a and Fig. 8 b, bus module 802 comprises the voltage source 850 of floating that is connected to switch 856 and buffer 881.The voltage of voltage source 850 floated is directly proportional with the voltage of battery pack 832.Switch 856 is by signal input node 854 controls.Signal output node 882 is served as in the output of buffer 881.In this layout, the bus module 802 of bus circuit 800 is similar to the bus module 702 of bus circuit shown in Figure 7 700.
When all signal input nodes 855,857,859 of bus module 804,806 and 808 disconnected switch 865,867,869, buffer 881,883,885 and 887 output node 882,884,886 and 888 output will change with the input signal of signal input node 854.
Bus module 808 comprises two resistors 892 and 890, operational amplifier 894, MOSFET 898 and resistor 897.An input node of operational amplifier 894 is connected to resistor 892 and 890.The grid of MOSFET 898 is connected to the output of operational amplifier 894.Resistor 897 is connected to another input of operational amplifier 894 and the source electrode of MOSFET 898.Thereby, produce a reference current, and this reference current is directly proportional with the voltage of voltage group 838.Bus module 808 also comprises the resistor 848 that is connected to MOSFET 898 and MOSFET 895, and the grid of MOSFET 895 is connected to resistor 848 with the formation voltage source 840 of floating.
As indicated above, the voltage that five-star voltage source produces is less than the voltage of corresponding battery pack, and the voltage that the voltage source of all the other grades produces equals the voltage of corresponding battery pack.
In addition, voltage source 840 comprises the switch 844 that is used for resistor 846 is coupled to the resistor 848 of voltage source 840.Switch 844 is by configuration pin 845 controls.
In one embodiment, each bus module 802,804,806 and 808 can form identical integrated circuit (IC) chip.
As shown in Fig. 8 a and Fig. 8 b, bus module 808 is in the superlative degree, it is low that the input of configuration pin 845 will keep, and switch 844 will remain closed, and makes the voltage at voltage source 840 two ends of bus module 808 be lower than the voltage at voltage source 850 two ends of bus module 802.It is high that the input of all the other bus modules 802,804 and 806 configuration pin keeps.
Although the description of front and accompanying drawing have embodied the preferred embodiments of the invention, but will be understood that, can carry out in preferred embodiments variously increasing, changing and replace, and not break away from spirit and scope that limit, principle of the present invention as accessory claim.Those of ordinary skill in the art will appreciate that, the present invention can be with being used for practice of the present invention and being specially adapted to specific environment and form, structure, layout, ratio, material, element and parts and otherwise many changes that operation requires are used, and do not depart from principle of the present invention.Therefore, at present will to be considered to all be illustrative and nonrestrictive to disclosed embodiment in all fields, and scope of the present invention pointed out by accessory claim and legal equivalents thereof, and be not limited to the description of front.