Current detection circuit with over-current protection

09588155 ยท 2017-03-07

Assignee

Inventors

Cpc classification

International classification

Abstract

Threshold detection for load current on a bus involves generating an output current representative of the load current using a transconductance circuit, sampling the output current during a quiescent phase of the bus to produce a sample current, generating a compensation current that is proportional to the transconductance gain associated with the transconductance circuit, where the compensation current is a function of the sample current, combining the output current, the sample current, the compensation current, and a reference current representative of a threshold value for the load current to produce a combined current, and using a discriminator during an active phase of the bus to output a first value when the sum current exceeds the threshold value and a second value when the combined current is less than the threshold value.

Claims

1. A load current detection circuit for detecting a load current on a bus, the detection comprising: a transconductance circuit that converts a voltage across a sense resistor carrying the load current into an output current; a sample-and-hold circuit that samples the output current during a quiescent phase of the bus to produce a sample current, wherein the sample-and-hold circuit includes a first transistor with a first W/L dimension, wherein the first transistor is used to sample and hold the output current during the quiescent phase of the bus; a distortion-compensating circuit with a gain, for producing a compensation current that is a function of the sample current, wherein the distortion-compensating circuit includes a second transistor with a second W/L dimension different from the first W/L dimension, and a gate of the first transistor is connected to a gate of the second transistor in a current-mirror configuration; a combining circuit that combines the output current, the sample current, the compensation current, and a reference current representative of a threshold value for the load current to produce a combined current; and a discriminator, connected to the combining circuit, that generates a discriminator output having a first value when the combined current exceeds the threshold value and a second value, different from the first value, when the combined current is less than the threshold value.

2. The load current detection circuit of claim 1, wherein the apparatus is part of a monitoring and/or control device attached to the bus.

3. The load current detection circuit of claim 1, wherein the bus is a Distributed Systems Interface Version 3 (DSI3) compatible bus and the threshold value is representative of the I.sub.RESP value of the DSI3 protocol.

4. The load current detection circuit of claim 1, wherein the compensation current is equal to the gain of the distortion-compensating circuit multiplied by the sample current.

5. The load current detection circuit of claim 1, wherein the gain of the distortion-compensation circuit is between unity and 1/100.

6. The load current detection circuit of claim 1, wherein: the discriminator output is operatively connected to a monitoring and/or control device that is attached to the bus; and the monitoring and/or control device generates a reply on the bus as a function of the discriminator output.

7. A method for threshold detection of a load current on a bus, the method comprising: generating an output current representative of the load current on the bus using a transconductance circuit; sampling the output current during a quiescent phase of the bus to produce a sample current, wherein the sampling is performed by a sample-and-hold circuit that includes a first transistor with a first W/L dimension that is used to sample and hold the output current during the quiescent phase of the bus; generating a compensation current that is proportional to a transconductance gain associated with the transconductance circuit, wherein the compensation current is a function of the sampled current, and wherein the compensation current is generated by a distortion-compensating circuit that includes a second transistor with a second W/L dimension that is different from the first W/L dimension, and a gate of the first transistor is connected to a gate of the second transistor in a current-mirror configuration; combining the output current, the sample current, the compensation current, and a reference current representative of a threshold value for the load current to produce a combined current; and using a discriminator during an active phase of the bus to generate a discriminator output having a first value when the combined current, received from the combining circuit, exceeds the threshold value and a second value when the combined current is less than the threshold value.

8. The method of claim 7, wherein the method is exercised by a monitoring and control device attached to the bus.

9. The method of claim 7, wherein the bus is a Distributed Systems Interface Version 3 (DSI3) compatible bus and the threshold value is representative of the I.sub.RESP value of the DSI3 protocol.

10. The method of claim 7, wherein the transconductance circuit comprises a differential pair of transistors.

11. The method of claim 7, wherein the compensation current is generated using a distortion-compensating circuit, and the compensation current is equal to the gain of the distortion-compensating circuit multiplied by the sample current.

12. The method of claim 7, wherein the compensation current is generated using a distortion-compensating circuit, and the gain of the distortion-compensation circuit is between unity and 1/100.

13. The method of claim 7, wherein: the discriminator output is operatively connected to a monitoring and control device that is attached to the bus; and the monitoring and control device generates a reply on the bus as a function of the discriminator output.

Description

BRIEF DESCRIPTION OF THE DRAWINGS

(1) The present invention is illustrated by way of example and is not limited by the accompanying figures, in which like references indicate similar elements.

(2) FIG. 1 is a schematic block diagram illustrating a conventional daisy-chain interconnect between a master and multiple slaves per the DSI3 standard;

(3) FIG. 2 is a schematic block diagram illustrating a daisy-chain interconnect between a master and multiple slaves, according to an exemplary embodiment of the present invention;

(4) FIG. 3 is a schematic block diagram illustrating a model of an implementation of the internal structure of a slave of FIG. 2, according to an exemplary embodiment of the present invention;

(5) FIG. 4 is a graph illustrating representative timing and magnitude of commands and replies between master and slaves during a DM sequence according to the DSI3 specification and an exemplary embodiment of the present invention;

(6) FIG. 5 is a schematic block diagram illustrating a detection circuit according to one embodiment of the present invention;

(7) FIG. 6 is a flow chart illustrating a portion of a detection process according to an embodiment of the present invention;

(8) FIG. 7 is a schematic circuit diagram illustrating a detection circuit according to an embodiment of the present invention; and

(9) FIG. 8A is a table of values associated with the detection circuit of FIG. 7 and FIG. 8B is a graph of values associated with the detection circuit of FIG. 7, according to an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

(10) Detailed illustrative embodiments of the present invention are disclosed herein. However, specific structural and functional details disclosed herein are merely representative for purposes of describing example embodiments of the present invention. The present invention may be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein. Further, the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention.

(11) As used herein, the singular forms a, an, and the, are intended to include the plural forms as well, unless the context clearly indicates otherwise. It further will be understood that the terms comprises, comprising, includes, and/or including, specify the presence of stated features, steps, or components, but do not preclude the presence or addition of one or more other features, steps, or components. It also should be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functionality/acts involved.

(12) Referring now to FIG. 2, a daisy-chain interconnect 200 between a master 210 and multiple slaves 220(1)-220(n), according to an embodiment of the present invention, is shown. The slaves 220 are connected to the master 210 in a daisy-chain fashion.

(13) In particular, the master 210 includes a two-wire interface comprising a ground wire 230 and a power/command wire 240. Each slave 220(i) includes an input wire, an output wire, and a ground wire. For example, the slave 220(1) includes an input wire 250, an output wire 260, and the ground wire 230. The ground wires 230 of the master 210 and the slaves 220 are all tied together. As can be seen, the output of the slave 220(1) is connected to the input of the slave 220(2), and so on with the output of the slave n-1 (not shown) being connected to the input of the slave n, forming a cascade or daisy chain between them.

(14) FIG. 3 is a schematic block diagram of an embodiment 300 of the internal circuitry of the slave 220(1) of FIG. 2 according to the present invention. Note that, for those elements of slaves 220(1) to 220(n) that are of importance to this discussion, for all intents and purposes, all of the slaves 220 can be understood to be structurally and functionally similar. However, this discussion focuses on the slave 220(1) so specific contextual references can be made that can aid in conveying a clear description of the invention.

(15) The slave 220(1) includes quiescent current source 310, Zener diode 320, core logic 330, reply current source 340, sense resistor 336, and core detector circuit 360. The quiescent current source 310 represents all current drawn by the circuitry of the slave 220(1) when it is idle. The reply current source 340 represents reply current injected by a slave into the loop (i.e., returned via the ground wire 230 to the master) when the slave is actively responding (typically at an I.sub.RESP or 2*I.sub.RESP level). The core logic 330 represents the functional circuitry of the slave (e.g., sensor and control for airbag or other safety feature of an automobile) as well as the logic of the slave for participating in the addressing protocol, e.g., for address determination during Discovery Mode operation per the DSI3 specification. Finally, the core detector 360 provides detection of the reply current sourced by the reply current source 340 based in part on measurement of the current sensed flowing through sense resistor 336 that is representative of the load current seen at the output of the slave 220(1) and flowing through the output wire 260.

(16) As will be understood to one skilled in the art, the slave 220(1) receives its power and ground via the input wire 250 and the ground wire 230, respectively. Further, the total of all current flowing into the slave 220(1) is equal to the total of all current flowing out of slave the 220(1).

(17) For example, in a first case, if (a) the slave 220(1) is the last slave in the daisy chain and (b) the slave 220(1) is idle, then (1) the current flowing out of the output wire 260 will be zero (since there are no downstream slaves to draw current through the output wire 260) and (2) the current flowing into the slave 220(1) via the input wire 250 will equal the quiescent current I.sub.Q-slave drawn by the slave 220(1), which current will return to ground via the ground wire 230.

(18) In a second case, if (a) the slave 220(1) is the last slave in the daisy chain and (b) the slave 220(1) is active and asserts a reply via the reply current source 340 equal to 2*I.sub.RESP, then the total current into the slave 220(1) via the input wire 250 will equal I.sub.q-slave+2*I.sub.RESP. Note that, in either the first or second case, no current flows out of the slave 220(1) (i.e., out of the output wire 260), and thus correspondingly no current flows through the sense resistor 336 (i.e., I.sub.LOAD for the slave 220(1) is zero in these cases).

(19) In a third case, if the slave 220(1) is not the last slave in the daisy chain, then the current that flows through the sense resistor 336 (also known at the load current I.sub.LOAD of the slave 220(1)) is equal to the sum of all currents drawn by idle and active slaves further downstream from the slave 220(1). For example, if one slave that is downstream from the slave 220(1) (e.g., 220(2)) is in a case two state as described previously with respect to the slave 220(1), then the load current seen by the slave 220(1) (i.e., the current drawn through sense resistor 336 and flowing out of the output wire 260 to the downstream slave would equal I.sub.q-slave(220(2))+2*I.sub.RESP(220(2)). In this third case, the current flowing into the slave 220(1) through the input wire 250 would be equal to I.sub.q-slave(220(1))+I.sub.q-slave(220(2))+4*I.sub.RESP. Note that, in practice, no two slaves will reply concurrently, and the total current draw will not equal 4*I.sub.RESP since, when a first slave senses a slave that is downstream replying, it backs off its own reply as is described with respect to the DSI3 DM protocol.

(20) The input wire 250 supplies both power and current to the circuit 300. Power and current are provided by the input wire 250 to the circuitry of the slave 220(1). In particular, some of the input current supplied via the input wire 250 is drawn by the quiescent current source 310, which represents the total quiescent draw of the slave 220(1) when it is idle. Note that the output of the quiescent current source 310 is depicted as connected to only the core logic 330, but, in practice, it should be understand to represent all current sunk by the slave 220(1) when the slave 220(1) is idle.

(21) Although some current in reality may be drawn by wire segment 390, wire segment 390 is primarily included in the model to depict that input wire 250 supplies a supply voltage to core logic 330 as it does similarly to circuitry of reply-current source 340 via wire segment 396, and additionally to core 360 via wire segment 398. Finally, control wire 392 provides an indicator from Core Detector 360 to Core Logic 330 as to whether a reply has been detected downstream from the current slave.

(22) FIG. 4 illustrates bus activity 400 for a four-slave daisy chain during an exemplary discovery protocol according to an embodiment of the present invention. The diagram is taken directly from the DSI3 specification (FIG. 6-1: Discovery Mode Example for a 4 Device Bus Segment) and while the present invention is not limited to this specific signaling or timing, the diagram and discussion from the DSI3 specification are helpful in illustrating a context of operation for this embodiment. Since the diagram is explained in the specification, it will not be described in full detail other than to point out how the current sensed at a given slave may include the cumulative quiescent currents of all the slaves that are downstream of that given slave, and, during Discovery Mode, each slave starts a reply to the discovery protocol only to shut its reply off if it detects a reply being sent by a slave that is downstream of it, i.e., I.sub.LOAD reaching I.sub.RESP above its typical idle-time cumulative downstream quiescent-current value.

(23) As illustrated, for example, note that during the first cycle of a DSI3 Discovery Mode, each of slaves 1-3 detects the current that is being added to its sense resistor by downstream slaves as all slaves ramp their reply current toward 2*I.sub.RESP. When that incremental load current reaches a threshold of I.sub.RESP at a particular slave, that particular slave cuts off its own reply current. This threshold is reached relatively quickly at slaves 1-3, each of which then cuts off its reply current. However, slave 4, being the last slave, sees no current (I.sub.LOAD) through its sense resistor so it continues to ramp its own reply current until it reaches a reply current of 2*I.sub.RESP.

(24) Slave 1 sees the downstream slaves' replies as a load current through its sense resistor ramping from 3*Iq to 2*I.sub.RESP above 3*Iq, where Iq is assumed to be the same quiescent current drawn by each of slaves 2-4. Slave 2 sees this as 2*I.sub.RESP above 2*Iq, slave 3 sees an I.sub.LOAD of 2*I.sub.RESP above 1*Iq and slave 4 sees an I.sub.LOAD of zero.

(25) Once a slave has transmitted its reply and set its address, it goes idle until all the slaves have their addresses assigned. Note that FIG. 6-1 of the DSI3 specification makes the simplifying assumptions that the quiescent current of each slave is identical and that a response current (or twice its value) can accurately be output from a slave. This is not necessarily the case, particularly with large variances in load current.

(26) FIG. 5 depicts a schematic block diagram of one possible embodiment of detector circuit 334 of FIG. 3. In particular, FIG. 5 presents an embodiment of the core detector circuit of FIG. 3 in the context of surrounding circuitry where corresponding components have corresponding labels.

(27) As shown, detector circuit 334 includes transconductance amplifier 510, sample switch 520, evaluation switch 535 and 595, sample-and-hold circuit 590, sample combining circuit 540, sample compensating amplifier 560, reference three-way combining circuit 530, and threshold discriminator 580.

(28) In operation, transconductance amplifier 510 senses the voltage drop across sense resistor 336 due to the current load of downstream slaves and translates the voltage to a proportional representative current I.sub.out. For example, a 20 mA load current may be translated to a 20 uA I.sub.out. During a slave idle period when the load current drawn through sense resistor 336 is equal to the sum of quiescent currents of slaves downstream on the daisy chain from slave 220(1), sample switch 520 is closed (while evaluation switches 535 and 595 are open) and sample-and-hold circuit 590 is used to sample I.sub.out. In this way, sample-and-hold circuit 590 stores a snapshot representative of the idle-time quiescent current drawn by the downstream slaves through sense resistor 336.

(29) Later, for example during an active reply period to a DM command, sample switch 520 is opened, and evaluation switches 535 and 595 are closed. When this happens, the previously sampled and held value of the sum representative of the downstream quiescent currents is subtracted at combining circuit 540 from the present value of I.sub.out, which value continues to ramp up in time as at least one of the downstream slaves starts to reply to the DM query.

(30) At this point, the output of combining circuit 540 could be compared with the threshold reference current I.sub.ref, which reference current is typically set to a value representative of I.sub.RESP, and a zero-crossing discriminator, such as discriminator 580, may be used to determine whether the load current through the sense resistor exceeds I.sub.RESP.

(31) However, because of the wide range of voltage drops possible across sense resistor 336 with varying load current, transconductance amplifier 510 will typically operate over a wide range, and its current output I.sub.out might not be a linear representation of the voltage drop across its input terminals 250 and 260. In particular, the transconductance gain Gm of amplifier 510 may be proportional to the voltage drop across sense resistor 336 (since it may correspond to the gate-to-source voltage V.sub.gs of the differential pair of transistors that comprise transconductance amplifier 510.

(32) For example, in a circuit of this type, when I.sub.q is set to 4 mA, I.sub.out will be approximately 4 uA, but when I.sub.q is increased to 16 mA, due to non-linearity, I.sub.out may typically be observed to 17 uA (instead of 16 uA as would be expected from a system that was linear). Thus, given an I.sub.q of 4 mA, I.sub.samp will be held at a value of 4 uA. If a slave then subsequently issues a downstream 12 mA response, I.sub.LOAD will increase to 16 mA, and I.sub.out will equal 17 uA. When I.sub.samp is subtracted from I.sub.out as part of the detection process, the result is 17 uA4 uA=13 uA, instead of an expected 12 uA. This is 1 uA more than expected, representing a full 25% of the sample current of 4 uA.

(33) Similarly, a load current of 10 mA may result in an output current of 10.5 uA and a load current of 22 mA may result in an output current of 25.125 uA for typical transconductance circuits. This non-linearity may make it difficult to select a single reference current that can be used in the detection process consistently and reliably. Because this non-linearity may cause errors in the detection process, it is preferably minimized in various embodiments of this invention. Further compensation may correct for this nonlinearity. In particular then, during the active reply mode, the sample of I.sub.out that is held by sample-and-hold circuit 590 is amplified by compensating amplifier 560 with a gain G.sub.d that is proportional to the distortion seem by transconductance amplifier 510 as the distortion changes with different quiescent-current load values through sense resistor 336. For example, with a downstream current I.sub.q of 20 mA, I.sub.out may be 20 uA and G.sub.d*I.sub.out may be 4 uA. The compensated sample (e.g., 4 uA) that is output from sample-compensating amplifier 560 is then subtracted (from the current output from combining circuit 540) at reference three-way combining circuit 530.

(34) The output of combining circuit 530 is then compared with zero at discriminator 580. The output of discriminator 580 yields a Boolean OUT signal (392) equal to a logical 1 if the output current I.sub.limit of combining circuit 530 is greater than zero, or an a Boolean OUT signal equal to a logical 0 if the output I.sub.limit of combining circuit 530 is less than or equal to zero.

(35) This logic 1 or 0 output is then utilized by the Core Logic of slave 220(1) in making a determination as to whether or not to output a reply current in response to a master DM command. If OUT==1, then I.sub.out has exceeded the reference threshold, indicating a downstream slave is responding, and slave 220(1) shuts down its reply. If OUT==0, then I.sub.out is less than the reference threshold, and no downstream slave is replying or it has not yet been determined whether a downstream slave is replying. In this case, slave 220(1) continues to ramp its output reply current toward 2*I.sub.RESP.

(36) FIG. 6 includes flowchart 600 illustrating one possible method of implementing a portion of the processing of detector circuit 334 of FIG. 3. The method is invoked by the core logic of a slave when it begins an operation requiring detection. For example, the method may begin when a slave receives a DM command from a master, and the method may be called multiple times during a DM cycle to determine whether a threshold of load current has been reached. In various embodiments, portions of the method may be exercised prior to an operation requiring detection. For example, a goal of sampling and holding of the current is to capture the quiescent current component of the load current, it is of interest to sample the load current when no devices are actively replying on the bus. This may best be achieved just prior to the issuance of a DM command or just after the issuance and before any slaves have begun to reply, this period being considered an inactive or quiescent period on the bus (at least from a reply current perspective).

(37) Once invoked, the method starts in step 610. Next, in step 620, a test is performed to determine whether the bus is idle (i.e., no downstream slaves are providing a reply on the bus to a master command). If the bus is not idle, then flow returns to start step 610. If the bus is idle, then, in step 630, a sample is taken and held whose value is representative of the quiescent current downstream of slave 220(1).

(38) For example, as illustrated in FIG. 5, transconductance amplifier 510 may be used to sense the voltage drop across sense resistor 336, producing current I.sub.out that is representative of the current flowing through sense resistor 336. Switch 520 is closed in this case, switch 535 is open, and I.sub.out is then sampled and held by sample-and-hold circuit 590.

(39) Continuing with the flow chart of FIG. 6, in step 640, a test is performed to determine if the bus is active. If in step 640, the bus is determined to be inactive (e.g., the slave is no longer in a detection mode or an interrupt has been received from a core logic unit of the slave indicating detection is no longer required), then flow returns to start step 610. If, however, in step 640, the bus is determined to be active, then, in step 650, the quiescent-current value that was sampled and held in step 630 is subtracted from the active load current value to produce a net load current value.

(40) For example, as illustrated by FIG. 5, when the bus is active, switch 535 is closed, and switch 520 is open. In this case, current I.sub.out out of transconductance amplifier 510, whose value is representative of the present active load current through sense resistor 336 from downstream slaves, flows to combining circuit 540. Additionally, the value that was held by sample-and-hold circuit 590, which value is representative of the quiescent current that was being drawn on the bus by slaves downstream of slave 220(1) when the bus was idle, is subtracted from I.sub.out by combining circuit 540 to produce a net load-current value.

(41) Referring back to FIG. 6, in step 660, the load-current value that was sampled and held in step 630 is adjusted for non-linearity that may occur in the transconductance amplification and related circuitry due to the large variance in quiescent-current level as a function of how far up or downstream 220(1) is with respect to other slaves in the daisy chain. For example, as illustrated in FIG. 5, the value that was sampled and held by sample-and-hold circuit 590 may be amplified by distortion-compensating amplifier 560 with gain G.sub.d to adjust for non-linearity.

(42) In step 670 of FIG. 6, the adjusted quiescent load-current value is subtracted from the net load current value. For example, in FIG. 5, during an active phase of the bus, switches 535 and 595 are closed, and the output of distortion-compensating amplifier 560 (that is representative of the quiescent current on the network adjusted for non-linearity) is fed to three-way combining circuit 530, where the output is subtracted from the net load-current value that is output from combining circuit 540.

(43) In step 680 of FIG. 6, a reference-current value is subtracted from the adjusted net load-current value. For example, in FIG. 5, as would be understood to one skilled in the art, three-way combining circuit 530 may be implemented as two cascaded two-way combining circuits, the first subtracting the output of distortion-compensating amplifier 560 from the output of combining circuit 540 to form a first output, and the second subtracting I.sub.ref from the first output.

(44) In an implementation of a DSI3 protocol DM solution using the present invention, I.sub.ref may be set to a value representative of a load current equal to I.sub.RESP (e.g., I.sub.ref may be set to 1/G.sub.m of I.sub.RESP, and the result of process 600 of FIG. 6 and similarly the output of three-way combining circuit 530 of FIG. 5 would be greater than zero when the bus load downstream of slave 220 exceeded I.sub.RESP, indicating that a downstream slave was replying to the master. In this case, a discriminator, e.g., discriminator 580 of FIG. 5, would detect this zero value and output a logic 1 to, for example, a core logic circuit for the slave, such as core logic circuit 330 of slave 220(1), which core logic would control reply-current generator 340 to shut down any reply current that it may have started to send. In step 690 the process completes.

(45) FIG. 7 shows a schematic circuit diagram depicting one possible implementation of detection circuit 334 of FIG. 3 according to the present invention.

(46) FIG. 7 includes sense circuit 710 and sample, subtract, adjust, and discriminate (SSAD) circuit 720. FIG. 7 also includes slave input wire 250, slave output wire 260 and slave sense resistor 336.

(47) Sense circuit 710 includes MOSFET transistors 725 and 730 differentially paired in a transconductance amplifier configuration with sense resistor 336 between their sources. In this configuration, the voltage drop across sense resistor 336 due to the downstream load current 792 that runs through resistor 336 is converted by the transconductance amplifier configuration to a current I.sub.out*, which is representative of the magnitude of the load current, as a function of the transconductance gain (G.sub.m) of the transconductance amplifier configuration. Further, bias-current sources 735 and 740 may be adjusted to bias MOSFETs 725 and 730 in such a way that transconductance gain G.sub.m of the MOSFET configuration is constant across transistor and resistor process and temperature variations.

(48) MOSFET 745 and MOSFET 750 are connected to form a current mirror. In particular, the current 796 (I.sub.out*) that is representative of the magnitude of load current (I.sub.load) drawn by slaves downstream of slave 220(1), is drawn through from drain to source of MOSFET 745. This same amount of current is then mirrored through MOSFET 750 and consequently through MOSFET 755 of SSAD 720.

(49) MOSFETs 755 and 760 are also configured in a current-mirror arrangement and consequently current 794 (I.sub.out) flowing out of the drain of MOSFET 760 is also equal to I.sub.out*.

(50) SSAD 720 also includes MOSFETs 765 and 770, sample switch 798, evaluation switches 775 and 780, capacitor 785, reference current source 791, and discriminator 790.

(51) When a discovery command is issued by the master, the slave may enter into detection mode or sampling phase. In this mode, sample switch 798 is closed, while evaluation switches 775 and 780 are open. In this configuration, a gate-to-source voltage (V.sub.gs) is established for MOSFETs 765 and 770 and across capacitor 785. V.sub.gs for MOSFET 765 corresponds to the current flow through MOSFET 765 equal to I.sub.out.

(52) During the sampling phase, I.sub.out is representative of the quiescent current on the bus (I.sub.load under bus-idle conditions, i.e., G.sub.m*I.sub.q). Before an evaluation phase, switch 798 is opened, holding the voltage from gate to source of MOSFET 765 and effectively fixing the amount of current running from drain to source of MOSFET 765.

(53) Next, during the evaluation phase, switches 775 and 780 are closed. Because MOSFET 770 is in a current-mirror configuration with MOSFET 765, the current flowing from drain to source of MOSFET 770 will be proportional to that flowing through MOSFET 765 (i.e., it is representative of the quiescent-state value of I.sub.load) but at a ratio that is determined by the relative gain of MOSFET 770 vs. MOSFET 765, identified here as G.sub.d. In one embodiment, G.sub.d is typically set to about 0.16, although it may be determined by optimizing the correction of the transconductance gain G.sub.m-induced non-linearities over the expected load currents for the system.

(54) Shortly after the system enters the evaluation mode, I.sub.out starts increasing by the amount of current drawn by downstream slaves as they start to reply to the DM command on the bus. This current will be ramping up above the value of I.sub.out sampled and held by MOSFET 765 (representative of I.sub.q) and will trend toward I.sub.q+2*I.sub.RESP as downstream slaves start to reply and all but one cancel their reply (when they detect slaves further downstream from them replying and recognize they are not the last active slave as described earlier). The one slave that determines it is to reply will continue ramping its output current toward 2*I.sub.RESP, and, as a result, I.sub.load will increment by that value, and I.sub.out will scale proportionally.

(55) Letting I.sub.samp represent the current latched by MOSFET 765, and I.sub.step represent the incremental current rise in I.sub.out above I.sub.samp (as I.sub.load tends toward I.sub.q+2*I.sub.RESP), one can see that current flows into capacitor 785 equal to the present value of I.sub.out minus (a) I.sub.samp (which is subtracted away by MOSFET 765), (b) G.sub.d*I.sub.samp (which is subtracted away by MOSFET 770), and (c) I.sub.ref which is flowing through current source 791. Thus, the current into capacitor 785 (herein I.sub.c) can be expressed as:
I.sub.c=I.sub.outI.sub.sampG.sub.d*I.sub.sampI.sub.ref, and(1)
I.sub.c=(I.sub.samp+I.sub.step)I.sub.sampG.sub.d*I.sub.sampI.sub.ref(2)
I.sub.c=I.sub.stepG.sub.d*I.sub.sampI.sub.ref(3)

(56) If G.sub.dist represents the actual distortion introduced by the non-linearity in the transconductance circuit, I.sub.c can be expressed as:
I.sub.c=(G.sub.m*I.sub.step+G.sub.dist*I.sub.samp)G.sub.d*I.sub.sampI.sub.ref(4)
I.sub.c=I.sub.samp*(G.sub.distG.sub.d)+G.sub.m*I.sub.stepI.sub.ref(5)
If G.sub.dist is approximately equal to G.sub.d, then
I.sub.c=G.sub.m*I.sub.stepI.sub.ref(6)

(57) Thus, the detector compares G.sub.m*I.sub.step with I.sub.ref to determine if a downstream slave is present. It can be appreciated that I.sub.samp*G.sub.dist can cause incorrect comparison and hence have a negative impact on the reliability of the detection process and thus its elimination is beneficial to the detection process.

(58) The portion of circuit 720 contributing this compensation factor is identified by the oval 788 in the diagram. The compensation factor has been shown to improve threshold detection by 28%. In practice, the relative gain between MOSFET 765 and MOSFET 770 can be controlled by the selection of the relative sizes (e.g., W/L) of the transistors.

(59) FIG. 8A illustrates typical values associated with one possible embodiment of detector circuit 700 of FIG. 7, and FIG. 8B illustrates a corresponding plot of compensated and uncompensated results. FIG. 8A depicts a table of current values where the first column 810 represents the varying value of quiescent current downstream of slave 220(1) corresponding to differing numbers of downstream slaves. It varies from 4 mA to 24 mA. The second column 820 represents the incremental fixed reply value of I.sub.RESP=12 mA from a given one of the downstream slaves. Columns 830 and 840 represent the current into the threshold detection capacitor of the system (e.g., capacitor 785 of FIG. 7) without compensation and with compensation, respectively. As can be seen by rearranging Equations (5) and (6) above,
I.sub.c+I.sub.ref=I.sub.samp*(G.sub.distG.sub.d)+G.sub.m*I.sub.step(uncompensated)(7)
I.sub.c+I.sub.ref=G.sub.m*I.sub.step(compensated)(8)

(60) FIG. 8B shows that, without compensation (860), when a downstream slave is signaling, even when its reply signal is fixed at 12 mA, depending on the quiescent current, the I.sub.RESP detection crossing point varies from 1.5 to 2.0 mA, whereas with compensation (880), the threshold crossing point is much more tightly held at roughly +/0.12 mA.

(61) The use of figure numbers and/or figure reference labels in the claims is intended to identify one or more possible embodiments of the claimed subject matter in order to facilitate the interpretation of the claims. Such use is not to be construed as necessarily limiting the scope of those claims to the embodiments shown in the corresponding figures.

(62) Although the invention is described herein with reference to specific embodiments, various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of the present invention. Any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element of any or all the claims.