Current sensing

By using two sense resistors with opposite non-linearities to compensate for direction-dependent current flow, the solution addresses non-linearity in bidirectional current sensing, ensuring accurate current monitoring in switching driver circuits.

GB2620457BActive Publication Date: 2025-04-02CIRRUS LOGIC INT SEMICON LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
GB2022012808
Authority / Receiving Office
GB · GB
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-07-08
Filing Date
2022-09-02
Publication Date
2025-04-02
Estimated Expiration
2042-09-02

AI Technical Summary

Technical Problem

Sense resistors used for current monitoring in bidirectional current paths exhibit non-linearity, leading to inaccuracies in current sensing, particularly in switching driver circuits like class-D amplifiers, due to varying spatial current density and asymmetrical current sources and sinks.

Method used

Employing two sense resistors with matching but opposite non-linearities, arranged to compensate for direction-dependent current flow, by combining their voltage measurements to cancel common-mode voltage and reduce non-linearity.

Benefits of technology

The solution effectively mitigates non-linearity issues, providing accurate current sensing by compensating for direction-dependent variations in current density, thereby enhancing the accuracy of current monitoring in bidirectional circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000001_0000
    Figure 00000001_0000
  • Figure 00000001_0001
    Figure 00000001_0001
  • Figure 00000002_0000
    Figure 00000002_0000
Patent Text Reader

Abstract

Current can flow in either direction in a bidirectional current path. First and second sense resistors 401a, 401b having a matching arrangement each pass a current corresponding to the current in the
Need to check novelty before this filing date? Find Prior Art

Description

The field of representative embodiments of this disclosure relates to methods, apparatus and / or implementations concerning or relating to current sensing. There are many applications where some sensing of an electric current is required, for instance, for control and / or protection of an electric circuit. One example where current sensing may be applied is for driver circuits for driving a load, for instance switching drivers such as class-D drivers. Figure 1 illustrates, schematically, an example of a class-D output stage 100 for driving a load 101. In the example of figure 1, the load 101, which may in some applications be a loudspeaker or other transducer, is connected in a bridge-tied-load (BTL) configuration between first and second output terminals 102a and 102b. Output terminal 102a may be selectively switched between high-side and low-side switching voltages VH and VL by high-side and low-side switches SHa and SLa respectively. Note that as used herein the terms high and low in respect to the switching voltage should be understood as referring to voltage which are more or less positive than one another and nothing is implied about the magnitude of such voltages. The high-side and low-side switches may generally be implemented by suitable transistors, such as a PMOS and NMOS device respectively. Likewise output terminal 102b may be selectively switched between the switching voltages VH and VL by switches SHb and SLb. In use, a controller 103 controls the duty cycle of switching of the respective output terminals 102a and 102b between the switching voltages so as to generate a desired differential driving signal across the load 101, e.g. based on an input signal Sin. In such a driver circuit it may be desirable to monitor, in use, the load current, for instance so as to implement overcurrent protection and / or for other control functions. In some cases, the load current may be monitored using a sense resistor 104. The sense resistor 104 may be located in a suitable path one side of the load so as to be in series with the load in all switch states of the driver, and figure 1 illustrates schematically that the sense resistor may be coupled between a midpoint connection for switches SHa and SLa and the load 101. A current monitor 105 may monitor the voltage drop across sense resistor 104 and determine the load current. An indication of the determined load current may be provided to the controller 103, e.g. for overcurrent protection. To limit power loss and heat dissipation via the sense resistor, the sense resistor 104 may be implemented to have a relatively low resistance. The sense resistor 104 may be formed from a suitable resistive material such as, for example, tantalum nitride (TaN) which can be implemented as a suitable thin film resistor. The use of such a sense resistor can provide useful current monitoring. However, in some cases, the sense resistor may exhibit non-linearity in use, which can adversely impact the accuracy of the current sensing. Embodiments of the present disclosure relate to improved current sensing circuits and to methods of operation. According to an aspect of the disclosure there is provided a current sensor for sensing current in a monitored current path, wherein the monitored current path is bidirectional such that current can flow in either direction along the monitored current path. The current sensor comprises first and second sense resistors configured to each pass a current corresponding to the current in the monitored current path. The first and second sense resistors are configured to have a matching arrangement, such that current flow through the first sense resistor, when current is flowing in one direction in the monitored current path, matches current flow through the second sense resistor, when current is flowing in the opposite direction in the monitored current path. The first and second sense resistors may each be located in the monitored current path. In some implementations, each of the first and second sense resistors may be arranged such that current can flow, via the respective sense resistor, from a respective first transistor to a respective first electrode or from the respective first electrode to a respective second transistor. For current flow in a first direction in the monitored current path, current may flow through the first sense resistor from the respective first transistor to the respective first electrode and current may flow through the second sense resistor from the respective first electrode to the respective second transistor. For current flow in a second direction in the monitored current path, current may flow through the first sense resistor from the respective first electrode to the respective second transistor and may current flow through the second sense resistor from the respective first transistor to the respective first electrode. The first transistor may be a PMOS transistor and the second transistor may be an NMOS transistor. A spatial configuration of the first sense resistor with respect to the respective first and second transistors and first electrode may match a spatial configuration of the second sense resistor with respect to the respective first and second transistors and first electrode. In some implementations, the current sensor may comprise a monitor circuit configured to determine voltages across the first and second sense resistors and to provide an indication of current in the monitored current path based on the determined voltages. In one example, the monitor circuit may be configured to generate a first summed voltage as a sum of a voltage on a first side the first sense resistor with a voltage on a first side of the second sense resistor, generate a second summed voltage as a sum of a voltage on a second side the first sense resistor with a voltage on a second side of the second sense resistor; and determine the voltage difference between the first and second summed voltages. In another example, the monitor circuit may be configured to generate a first difference voltage as the difference between voltage on first and second sides of the first sense resistor, generate a second difference voltage as the difference between voltages on first and second sides of the second sense resistor; and determine the voltage sum between the first and second difference voltages. The first side of the first and second sense resistors may be the side that receives an input current when current is flowing in the monitored current path in a first direction. In some implementations, each of the first and second sense resistors may comprise a thin-film resistor material, for example each of the first and second sense resistors may comprise a tantalum nitride resistor. In some implementations, each of the first and second sense resistors may comprise a plurality of connected resistor segments wherein at least some of the plurality of resistor segments are not co-linear. At least some of the plurality of resistor segments may be substantially parallel to one another and arranged in a serpentine or comb configuration. Each of the first and second sense resistors may comprise a plurality of sense points for sensing the voltage across at least part of the sense resistor. In some examples, each of the first and second sense resistors may comprise more than two sense points located at different locations of the sense resistor so as to enable a voltage across different parts of the sense resistor to be determined. The monitored current path may be an output path for a switching driver for driving a load in a bridge-tied-load configuration. The first sense resistor may be connected in the output path for providing an output to one side of the load and the second sense resistor may be connected in the output path for providing an output to an opposite side of the load. The current sensor may be implemented as an integrated circuit. The current sensor may be embodied as part of an electronic device. In another aspect there is provided a current sensor for sensing current in a monitored current path, wherein the monitored current path is bidirectional such that current can flow in either of a first direction or a second, opposite, direction along the monitored current path. The current sensor comprises first and second sense resistors configured to each pass a current corresponding to the current in the monitored current path. The first and second sense resistors are configured such that: a spatial arrangement of active current sources and sinks for the first sense resistor with current in the monitored path in the first direction matches a spatial arrangement of active current sources and sinks for the second sense resistor with current in the monitored path in the second direction; and a spatial arrangement of active current sources and sinks for the first sense resistor with current in the monitored path in the second direction matches a spatial arrangement of active current sources and sinks for the second sense resistor with current in the monitored path in the first direction. In some implementations, the current sources and sinks for each of the first and second sense resistors may comprise respective first and second transistors and a respective output electrode. In a yet further aspect there is provided a current sensor for sensing current in a monitored current path, wherein the monitored current path is bidirectional such that current can flow in either direction along the monitored current path, where the current sensor comprises a first sense resistor configured to pass a current corresponding to the 5 current in the monitored current path, wherein the first sense resistor exhibits a nonlinearity with direction of current flow in the monitored current path and a second sense resistor configured to pass a current corresponding to the current in the monitored current path, wherein the second sense resistor exhibits a non-linearity with direction of current flow in the monitored current path. The non-linearity of the first sense resistor is 10 opposite to the non-linearity of the second sense resistor. The non-linearity of the first sense resistor may be equal and opposite to the non-linearity of the second sense resistor. 15 It should be noted that, unless expressly indicated to the contrary herein or otherwise clearly incompatible, then any feature described herein may be implemented in combination with any one or more other described features. For a better understanding of examples of the present disclosure, and to show more clearly how the examples may be carried into effect, reference will now be made, by way of example only, to the following drawings in which: Figure 1 illustrates one example of a driver circuit with current sensing; Figure 2 illustrates the principles of a sense resistor; Figure 3 illustrates one example layout of a sense resistor with respect to high-side and low-side transistors and an output terminal; Figure 4 illustrates one example of a driver circuit with current sensing according to an embodiment; Figure 5 illustrates one example layout of first and second sense resistors according to an embodiment; Figure 6 illustrates one example of a sense resistor with a serpentine configuration; and Figure 7 illustrates a sense resistor with more than two sense points. The description below sets forth example embodiments according to this disclosure. Further example embodiments and implementations will be apparent to those having ordinary skill in the art. Further, those having ordinary skill in the art will recognize that various equivalent techniques may be applied in lieu of, or in conjunction with, the embodiments discussed below, and all such equivalents should be deemed as being encompassed by the present disclosure. Embodiments of the disclosure relate to current sensing circuitry and, in particular, to current sensing circuitry in which the monitored current path may be bidirectional. Embodiments of the disclosure also relate to methods of current sensing. As discussed above, in some applications a sense resistor may be used to provide current monitoring for a current path, for instance as discussed with reference to figure 1, a sense resistor may be used to monitor the load current in a switched driver circuit, such as a class-D driver. In some implementations, however, the sense resistor may exhibit some non-linearity in use that could negatively impact on accuracy of the current monitoring. The sense resistor may be provided by a suitable thin film resistor material, such as tantalum nitride (TaN). Typically a layer of such resistor material is patterned into a desired shape to provide the sense resistor, with at least two force points provided by electrodes for connecting the resistor to the relevant current path and also at least two sense points provided by electrodes positioned to sense a voltage drop across the resistor. For example, figure 2, illustrates a layer of resistor material 201, such as TaN, forming at least part of a sense resistor, with a pair of sense points 202 and 203 and a pair of force points 205 and 206. The force and sense points may comprise conductive material, such as metal, which contact the resistive layer, possibly by vias through one or more intervening dielectric layers. In use, current is injected into and extracted from the resistor material via the force points 205 and 206 and, in this example the arrangement of the force point 205 and 206 is such that the direction of current flow is generally expected to be in the direction illustrated by arrow 204 (which is illustrated as the x-direction in this example) and the pair of sense points 202 and 203 are displaced from one another in the direction of current flow. The dimensions of the sense resistor are selected to provide a desired nominal resistance and current handling capacity. As one skilled in the art will understand, for a generally rectangular sense resistor such as illustrated in figure 2, the resistance is nominally equal to Rs*(L / W), where Rs is the sheet resistance of the resistor material, L is the length of the resistor (in the direction of current flow, i.e. the x-direction in this example) and Wis the width of the resistor (in the y-direction in this example). To provide a suitably low resistance, e.g. of the order of a few tens of milliohms in some applications, the aspect ratio (W / L) of a generally linear sense resistor may be quite high, i.e. the width W of the sense resistor may be much greater than the length L of the sense resistor. Especially for sense resistors with such an aspect ratio, where the length in the direction of current flow is significantly lower than the width of the sense resistor, the current density through the sense resistor may, in use, exhibit some spatial variation. Factors such as the way that current is injected into or extracted from the sense resistor and / or inhomogeneity of the material of the sense resistor can lead to a spatial variance in the current density throughout the sense resistor. In some cases, the spatial variation of current density can vary dynamically in use, which can lead to non-linearities in the sensed current. In practical implementations, the pair of sense points 202 and 203 determine voltages from only part of the sense resistor, for instance the sense points may not typically extend along the whole width of the sense resistor, and thus the voltage drop between the relevant sense points 202 and 203, and hence the sensed current, depends on the relevant current densities in the region of the resistive layer 201 with close proximity to the sense points. In such a case, if the current density through the resistive layer local to the relevant pair of sense points varies, in use, in a way that is not proportional to overall current magnitude, the resultant sensed current will experience non-linearities. For the application to sense a load current in a switching driver, one factor that can lead to non-linearity is the fact that the current through the sense resistor is bidirectional. For instance, referring back to figure 1, the load current through the sense resistor 104 may flow in either direction depending on the switch state of the driver. In a first switch state, with switch SHa closed, i.e. on, (and SHb open, i.e. off) to connect one side of the load 101 to VH and switch SLb closed (and SHb open) to connect the other side of the load to VL, current will flow through switch SHa, sense resistor 104, load 101 and switch SLb. In a second switch state, with switches SLa and SHb closed (and SHa and SLb open) the current flows via these switches and in the opposite direction through the load 101 and sense resistor 104. This means that, in the first switch state, current flows into the sense resistor from switch SHa and onto the output terminal 102a and, in the second switch state, current flows from the output terminal 102a through sense resistor 104 to the switch SLa. In practice, this can alter the spatial distribution of active current sources and sinks, as seen by the sense resistor 104, especially if the source and sink for the current in the sense resistor 104 are not symmetrical with the sense points and geometry of the sense resistor 104, which can result in a spatial variation in current density throughout the sense resistor which can impact the current monitoring. In effect, the current may flow through the sense resistor in a different way when flowing in opposite directions. Therefore, a given current flowing through the sense resistor with the driver in the first switch state may give rise to a different value of sensed current compared to the same magnitude of current flowing through the sense resistor in the opposite direction with the driver in the second switch state, under the same operating conditions. For some integrated circuits, for instance integrated circuits formed into a CSP package, it may be possible to implement current force and sink paths through a metal redistribution layer (RDL), or similar planar metal layers on the chip, in a way that limits non-linearity due to spatial variation in current flow through the sense resistor. It has been proposed that the resistor current force path for the sense resistor could be formed with a circular shape in the RDL layer, to aid in uniform current density into a sense resistor when the output current path is a wafer-level chip-scale package (WLCSP) solder bump. However, other packaging technologies, e.g. such as QFN, do not have a redistribution layer and the use of a circular sense resistor may not provide the same benefits for such packaging technologies and / or can be layout inefficient. It is noted that whilst figure 1 illustrates that the sense resistor is coupled in a common path between the output terminal 102a and a midpoint node between the switches SHa and SLa, in a practical integrated circuit implementation it may generally be desirable for the sense resistor to be coupled to the outputs of the relevant transistors that provide the switches with only a relatively limited amount of intermediate metal connection. This may be more efficient in terms of minimising circuit area and / or avoiding unnecessary metallisation for conductive pathways. Thus, the high-side switch transistor may, in use, couple to the sense transistor in a way which is spatially different to the coupling between low-side switch transistor and the sense resistor. In other words, the current source(s) and sink(s), as seen by sense resistor when operating in the first driver state have a different spatial arrangement compared to the current sink(s) and source(s) as seen by the sense resistor when operating in the second switch state. Figure 3 illustrates this principle. Figure 3 illustrates one example of a possible circuit layout for the current forcing paths for high-side and low-side switches SHa and SLa and sense resistor. It should be understood, however, that the layout of figure 3 is a simplified pictorial layout for the purposes of explanation and is not intended to be an accurate representation of an actual physical implementation. Transistors 301 and 302, in this example a PMOS device and an NMOS device respectively, are provided as the high-side and low-side switches SHa and SLa respectively. The PMOS 301 is associated with an electrode 303 for receiving the high-side voltage VH and the NMOS 302 is associated with an electrode 304 for receiving the high-side voltage VL. The sense resistor 104, which may generally have the same structure as the sense resistor 201 discussed with reference to figure 2 but with separate force points for connecting to the PMOS 301 and NMOS 302, is coupled between the PMOS and NMOS switches 301 and 302 and at least one output electrode 305, which is electrically connected to the output terminal 102a. Depending on the type of circuit implementation, e.g. the packaging of an integrated circuit implementation, the output electrode(s) 305 may be coupled to the output terminal 102a in a variety of ways, e.g. by bond wires 306 or the like. Figure 3 illustrates an example with four output electrodes 305, but, in some implementations, there could be greater or fewer output electrodes (in some cases there could just be one output electrode). Similarly there could, in some cases, be additional electrodes for the high-side voltage and / or the low-side voltage. In use, in the first driver switch state, the PMOS 301 is on and acts as an active current source for the sense resistor 104 and in the second driver switch state the NMOS is on and acts as an active current sink. The different spatial location, physical layout (shape, size), metallization etc. of the PMOS and NMOS with respect to the sense resistor 104 will lead to spatial variation in current which can lead to non-linearity in the measured current as discussed above. Embodiments of the present disclosure mitigate the problem of non-linearity of a sense resistor arising from bidirectional current flow through the sense resistor. Embodiments thus relate to monitoring current using a sense resistor in a circuit in which the current path it is wished to monitor is bidirectional, i.e. the current may flow in opposite directions along the monitored current path at different times. In embodiments of the present disclosure, first and second sense resistors are used to monitor the relevant current path, e.g. the first and second sense resistors may be within the monitored current path. Each of the first and second sense resistors may exhibit a non-linearity with direction of current flow, but the first and second sense resistors are arranged to be matching, so the nonlinearity of the first sense resistor is generally in the opposite sense to that of the second sense resistor, i.e. if the first sense resistor would indicate a greater value for a given magnitude of current flowing in a first direction in the monitored current path compared to the second, opposite direction, the second resistor would indicate a smaller value for the given current in the first direction compared to the second direction of current flow in the monitored current path. The non-linearity of the first sense resistor may be advantageously substantially equal and opposite to that of the second resistor. In particular, the first and second sense resistors may be configured to have a matching arrangement such that current flow through the first sense resistor when current is flowing in one direction in the monitored current path matches current flow through the second sense resistor when current is flowing in the opposite direction in the monitored current path. Figure 4 illustrates an embodiment of the present disclosure for a switched driver circuit 400, similar to that discussed with reference to figure 1 and similar components will be implemented with similar reference numerals. Figure 4 again shows a load 101 driven in a BTL arrangement between output terminals 102a and 102b, with an H-bridge arrangement comprising switches SHa, SLa, SHb and SLb controlled by controller 103 to switch the output terminals 102a and 102b between the switching voltages VH and VL with a controlled duty cycle to generate a desired output voltage across the load 101. In the example of figure 4 there are first and second sense resistors 401a and 401b in series with the load. The first sense resistor 401a is located between the switches SHa and SLa and the output terminal 102a and the second sense resistor is located between the switches SHb and SLb and the output terminal 102b. In use, when the driver is in the first driver switch state, with switches SHa and SLb on (and SLa and SHb off), current will flow from the high-side switch SHa into the first sense resistor 401a and from the first sense resistor 401a to the first output terminal 102a and current will flow from the second output terminal into the second sense resistor 401b and from the second sense resistor into the low-side switch SLb. When the driver is in the second driver state, with switches SLa and SHb on (and SHa and SLb off) current will flow from the high-side switch SHb into the second sense resistor 401b and from the second sense resistor 401b to the second output terminal 102b and current will flow from the first output terminal into the first sense resistor 401 a and from the first sense resistor 401a into the low-side switch SLa. Thus in each of the first and second driver switch states current flows from one of the high-side switches into one of the sense resistors and then into one of the output nodes, whilst current flows from the other output node into the other sense resistor and then into the relevant low-side switch. Whilst each of the first and second sense resistors may exhibit a non-linearity due to the direction of current flow, the non-linearity exhibited by the first and second sense resistors may be substantially equal and opposite. In other words, for each of the first and second sense resistors, given magnitude of current may give rise to a different monitored voltage difference across the sense resistor depending on the direction of current, i.e. whether current flows from the relevant high-side switch toward the output terminal or from the output terminal toward the relevant low-side switch, but the variation may be the same for each of the first and sense resistors. Advantageously, the voltage difference across the first sense resistor 401a that would be detected in response to a given magnitude of current, say 11, flowing from the high-side switch SHa to the first sense resistor 401a and onto the first output terminal 102a may be substantially the same voltage difference that would be detected across the second sense resistor 104b in response to the same magnitude of current 11 flowing from the high-side switch SHb to the second sense resistor 401b and onto the second output terminal 102b. Likewise the voltage difference across the first sense resistor 401a that would be detected in response to the magnitude of current 11 flowing from the first output terminal 102a to the first sense resistor 401a and onto the low-side switch SLa may be substantially the same voltage difference that would be detected across the second sense resistor 104b in response to the same magnitude of current 11 flowing from the second output terminal 102b to the second sense resistor 401b and onto the low-side switch SLb. The first and second sense resistors 401a and 401b may thus have the same nominal resistance value as one another. By combining the monitored currents / voltages from both the first and second sense resistors 401a and 401b the non-linearity arising from direction of current flow can be at least partly compensated or eliminated. A current monitor circuit 402 may thus be arranged to combine the voltage monitored across the first and second sense resistors. In the example of figure 4 the voltages on one side (in terms of the direction of current flow in the monitored path) of the first and second sense resistors 401a and 401b are summed, as are the voltage on the other side of the first and second sense resistors 401a and 401b, and the two summed voltages are subtracted from each other to provide a voltage difference which is the combined voltage difference across both sense resistors 401a and 401b. This combined voltage difference can be used an indication of the current in the monitored path in which non-linearity arising from the direction of current flow is at least partly compensated for. This arrangement also has the advantage that when operating in the first driver switch state or the second driver switch state the common-mode voltage component is automatically cancelled. It should be understood, however, that other arrangements for combining the voltages could be implemented, for instance the voltages on the respective first and second sides of each of the first and second sense resistors 401a and 401b could be subtracted to determine the voltage difference across each of the first and second sense resistors 401a and 401b, and the two voltage differences summed to provide a combine value. Each of the first and second sense resistors 401a and 401b may be a sense resistor such as discussed above with reference to figure 2 and may for instance be formed from a thin film resistor material such as TaN. The first and second resistors can be formed from the same material as one another and may generally have matching dimensions and geometries as one another. The first and second sense resistors 401a and 401b may generally be formed at the same time as one at the same stage in circuit fabrication so as to have generally matching properties. Advantageously, the first and second sense resistors 401a and 401b may be located relatively close to one another in the circuit layout so as to experience generally the same operating conditions, such as temperature, as one another in use. To provide the first and second sense resistors 401 and 401 b with matching non-linearity, the spatial arrangement of the first and second sense resistors and may configured so as to be substantially matching, such that for current flow in the monitored path in each direction the spatial distribution of active current sources and sinks for the first sense resistor substantially matches the spatial distribution of active current sources and sinks for the second resistor for current flow in the opposite direction. That is the spatial arrangement of the first and second resistors 401a and 401b with respect to the high-side and low-side switch transistors and the output electrodes and their connections may be substantially matching. The first and second sense resistors 401 and 401b may, therefore be arranged symmetrically with respect to the local power switches, SHa, SLa, SHb and SLb. Figure 5 illustrates one example of a possible circuit layout for the high-side and low-side switches SHa, SLa, SHb, SLb and sense resistor. It should be understood, however, that the layout of figure 5 is a simplified pictorial layout for the purposes of explanation and is not intended to be an accurate representation of an actual physical implementation. Figure 5 illustrates a similar layout arrangement as discussed with reference to figure 3 for the first sense resistor 401a with regard to the switches SHa and SLa, implemented in this example by a first PMOS device 301a and a first NMOS device 302a and first output electrode(s) 305a. Figure 5 also illustrates that the switches SHb and SLb may be implemented by a second PMOS device 301b and a second NMOS device 302b, each associated with respective electrodes 303 and 304 for the switching voltages VH and VL. The second sense resistor 401b, which has a matching size and geometry as the first sense resistor 401 a, is located in a spatial arrangement with respect to the second PMOS 301b, second NMOS 302b and second output electrode(s) 305b that matches the arrangement of the first sense resistor 401a to the first PMOS 301a, first NMOS 302a and first output electrode(s) 305a. Note figure 5 illustrates just one possible example of a circuit layout for explanation and other arrangements are possible. For instance, the positions of the second PMOS 301b and second NMOS 302b could be swapped so that the second NMOS 302b is next to the first NMOS 302b, which could ease routing of connection for the electrodes for the switching voltage VL - or similarly the positions of the first PMOS 301a and first NMOS 302a could be swapped. It will be understood that in either of these cases the physical arrangement of the first sense resistor with respect to the first PMOS and NMOS may then be a mirror image of the physical arrangement of the second sense resistor with respect to the second PMOS and NMOS, i.e. so in addition to the positions of the second PMOS 301b and second NMOS 302b (PMOS 301a and NMOS 301b) being swapped, the sense resistor 401a (or 401b) would also be mirrored orflipped (in terms of geometry and layout), but this is still a matching arrangement as the relative spatial arrangement is the same, i.e. topologically the arrangements match. Thus, it should be understood that the physical arrangement of the second sense resistor 401b with respect to the second PMOS and NMOS devices 301b and 302b may be mirrored and / or rotated version of the physical arrangement of the first sense resistor 401a with respect to the first PMOS and NMOS devices 301a and 301b and still be a matching spatial arrangement. As noted above, the example of figure 5 is just one example of a layout arrangement and a variety of other layout arrangements could be implemented. Each of the first and second sense resistors 401a and 401b has dimensions selected to provide a desired nominal resistance. As noted above, the aspect ratio of each sense resistor (in terms of W / L where L is the length in the direction of current flow through the sense resistor and W is the width) required to provide the desired nominal resistance and current handling capability may be quite high. In some cases the required width for each sense resistor may be relatively large, which may not be efficient or practical from a layout perspective. In some implementation the sense resistor could be implemented by a plurality of connected resistor segments, where at least some of the resistor segments are not co-linear (i.e. do not extend along the same straight line as one another). The various resistor segments may each have the required length in the direction of current flow and each of the segments may have an appropriate width such that the sum of the widths of all the resistor segments provides the required width. In some examples at least part of the sense resistor may be implemented to have a generally serpentine structure and / or at least part of the sense resistor may be implemented to have a comb like structure with a plurality of resistor segments extending substantially parallel to one another. Figure 6 illustrates one example of at least part of a sense resistor 401 having a generally serpentine structure. The sense resistor 401 comprises first and second electrodes 601 and 602 and an underlying (or overlying) layer of resistive material 603, which may for instance be a resistive material such as TaN. The first and second electrodes 601 and 602 are provided for forming input / output connections in the relevant current path and comprise, in this example, interdigitated fingers extending in the x-direction as illustrated so that the resistive material effectively forms an active resistor that follows a serpentine path around the electrode fingers. The electrodes 601 and 602 conduct current into the resistive layer 603 via a plurality of connection points 604, such as vias or the like, along the interdigitated fingers. This effectively divides the sense resistor into a plurality of substantially parallel resistor segments, with resistor segments being located between (in this example in the y-direction as illustrated) adjacent fingers of the first and second electrodes 601 and 602. In use, therefore, current will flow between the fingers of the first and second electrodes 601 and 602, for example as illustrated by arrow 605. The length of each segment in the direction of current flow (in this case in the y-direction) is the length L of the sense resistor. Each individual segment has a width, in this case in the x-direction as illustrated, and the sense resistor is configured such that the sum of the widths of all the individual segments provides the required total width for the sense resistor. To monitor the voltage drop across the sense resistor there are at least a pair of sense points 606, which connect to the resistive material layer 603 via connection points or vias 607. The sense points 606 are positioned to monitor the voltage drop due to current flowing through one or more of the resistor segments and are located so as to effectively monitor the voltages on either side of the resistor (in terms of current flow direction). In some implementations, as illustrated in figure 6, one sense point may be located between two fingers of the first electrode 601 with another sense point being located between two fingers of the second electrode 602, so as to be effectively positioned on opposite sides of the relevant resistor segment(s), although other spatial arrangements are possible, as would be understood by one skilled in the art. In some applications there may be more than just one pair of sense points. For example, figure 7 illustrates an example of sense resistor 401 which may, for instance have the structure illustrated in figure 6. Figure 7 illustrates that there are more than two sense points 606, with the sense points being located at different positions through the sense resistor 401. This can allow a voltage drop across different parts of the sense resistor to be separately determined by the current monitor 402. The current monitor 402 may be configured combine or average the monitored voltage drops across different parts of the sense resistor so as to compensate for the different spatial current density across the sense resistor when current is flowing through the monitored path in a given direction. The use of multiple sense points at different locations of the sense resistor can thus mitigate for non-linearity that arises from a variable current density through the sense resistor when current is flowing in a given direction, with the use of two such sense resistors mitigating for the non-linearity due to current direction. Embodiments of the present disclosure thus relate to apparatus and monitoring for current monitoring using sense resistors in which at least two sense resistors are arranged to monitor current through a current path. As discussed above the sense resistors are arranged to be substantially matching, such that current flow through the first sense resistor when current is flowing in one direction in the monitored current path matches current flow through the second sense resistor when current is flowing in the opposite direction in the monitored current path. A spatial arrangement of active current sources and sinks seen by one sense resistor for current flow in a first direction may thus match that of the other sense resistor for current flow in the opposite direction in the monitored current path, and vice versa. In this way, any non-linearity with current direction for one the sense resistors may be the opposite of that of the other sense resistor and by combining the voltages or current sensed by both sense resistors, the non-linearity with current directions can reduced or eliminated. Embodiments have been discussed above in respect to switching driver circuits such as class-D amplifiers and the use of two sense resistors in such applications is advantageous. However, the principles of the present disclosure are application to any circuitry where current monitoring is desirable and the current in the relevant current path to be monitored may be bidirectional, in particular where current density through a sense resistor may vary with direction of current flow, such as various types of DC-DC converter or various signal processing circuits. Note that in the embodiments discussed above the first and second sense resistors are located in the same current path, which is the current path it is wished to monitor. In some applications, the sense resistors may be located in a sensing path which is driven so that the current in the sensing path is related to a current in a main current path. Monitoring the current of the sensing path thus provides sensing of the main current path without requiring any sense resistors in the main current path. In such a case it could be possible for the first and second sense resistors to be located in separate sensing paths. Embodiments may be implemented as an integrated circuit. The sense resistors may be formed as thin film resistors on an integrated circuit die. Embodiments may be implemented in a host device, especially a portable and / or battery powered host device such as a mobile computing device for example a laptop, notebook or tablet computer, or a mobile communication device such as a mobile telephone, for example a smartphone. The device could be a wearable device such as a smartwatch. The host device could be a games console, a remote-control device, a home automation controller or a domestic appliance, a toy, a machine such as a robot, an audio player, a video player. It will be understood that embodiments may be implemented as part of a system provided in a home appliance or in a vehicle or interactive display. There is further provided a host device incorporating the above-described embodiments. It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfil the functions of several units recited in the claims. Any reference numerals or labels in the claims shall not be construed so as to limit their scope

Claims

1. A current sensor for sensing current in a monitored current path, wherein the monitored current path is bidirectional such that current can flow in either5 direction along the monitored current path, the current sensor comprising: first and second sense resistors configured to each pass a current corresponding to the current in the monitored current path, wherein the first and second sense resistors are configured to have matching dimensions, geometries and resistance properties and are configured10 to have a matching arrangement of dimensions and spatialgeometries of current sources and sinks for the resistor, such that current flow through the first sense resistor when current is flowing in one direction in the monitored current path matches current flow through the second sense resistor when current is flowing in the15 opposite direction in the monitored current path.

2. The current sensor of claim 1 wherein the first and second sense resistors are each located in the monitored current path.20 3. The current sensor of claim 1 or claim 2 wherein each of the first and secondsense resistors are arranged such that current can flow, via the respective sense resistor, from a respective first transistor to a respective first electrode or from the respective first electrode to a respective second transistor and wherein: for current flow in a first direction in the monitored current path, current flows25 through the first sense resistor from the respective first transistor to therespective first electrode and current flows through the second sense resistor from the respective first electrode to the respective second transistor; andfor current flow in a second direction in the monitored current path, current flows 30 through the first sense resistor from the respective first electrode to therespective second transistor and current flows through the second sense resistor from the respective first transistor to the respective first electrode.

4. The current sensor of claim 3 wherein the first transistor is a PMOS transistor andthe second transistor is an NMOS transistor.

5. The current sensor of claim 3 or claim 4 wherein a spatial configuration of the first 5 sense resistor with respect to the respective first and second transistors and first electrode matches a spatial configuration of the second sense resistor with respect to the respective first and second transistors and first electrode.

6. The current sensor of any of claim 1 to 5 comprising a monitor circuit configured10 to determine voltages across the first and second sense resistors and to provide an indication of current in the monitored current path based on the determined voltages.

7. The current sensor of any of claim 6 wherein the monitor circuit is configured to:15 generate a first summed voltage as a sum of a voltage on a first side the first sense resistor with a voltage on a first side of the second sense resistor;generate a second summed voltage as a sum of a voltage on a second side the first sense resistor with a voltage on a second side of the second sense resistor; and20 determine the voltage difference between the first and second summed voltages; wherein the first side of the first and second sense resistors is the side thatreceives an input current when current is flowing in the monitored current path in a first direction.25 8. The current sensor of any of claim 6 wherein the monitor circuit is configured to:generate a first difference voltage as the difference between voltage on first and second sides of the first sense resistor;generate a second difference voltage as the difference between voltages on first and second sides of the second sense resistor; and30 determine the voltage sum between the first and second difference voltages; wherein the first side of the first and second sense resistors is the side that receives aninput current when current is flowing in the monitored current path in a first direction.

9. The current sensor of any of claims 1 to 8 wherein each of the first and second sense resistors comprises a thin-film resistor material.

10. The current sensor of any of claims 1 to 9 wherein each of the first and second5 sense resistors comprises a tantalum nitride resistor.

11. The current sensor of any of claims 1 to 10 wherein each of the first and second sense resistors comprises a plurality of connected resistor segments wherein at least some of the plurality of resistor segments are not co-linear.1012. The current sensor of claim 11 wherein at least some of the plurality of resistor segments are substantially parallel to one another and arranged in a serpentine or comb configuration.15 13. The current sensor of any of claims 1 to 12 wherein each of the first and secondsense resistors comprises a plurality of sense points for sensing the voltage across at least part of the sense resistor.

14. The current sensor of claim 13 wherein each of the first and second sense20 resistors comprises more than two sense points located at different locations of the sense resistor so as to enable a voltage across different parts of the sense resistor to be determined.

15. The current sensor of any of claims 1 to 14 wherein the monitored current path is 25 an output path for a switching driver for driving a load in a bridge-tied-load configuration.

16. The current sensor of claim 15 wherein the first sense resistor is connected in the output path for providing an output to one side of the load and the second sense 30 resistor is connected in the output path for providing an output to an opposite side of the load.

17. The current sensor of any of claims 1 to 16 implemented as an integrated circuit.

18. An electronic device comprising the current sensor of any of claims 1 to 16.xt CMCM i—CM

Citation Information

Patent Citations

  • Differential and symmetrical current source

    GB2458559A

  • Ratiometric current-monitor sense resistance mismatch evaluation and calibration

    GB2606440A

  • Drive device

    JP2017098817A

  • Amplifier speaker drive current sense

    US20190116420A1

  • Common-mode insensitive current-sensing topology in full-bridge driver

    US20210344310A1