Method and apparatus for current sensing in power regulation system
Patent Information
- Application Number
- IN202541133023
- Authority / Receiving Office
- IN · IN
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2025-12-29
- Publication Date
- 2026-07-09
- Estimated Expiration
- 2045-12-29
AI Technical Summary
Conventional current sensing methods in power circuits suffer from inaccuracies due to the assumption of linear behavior in sense FETs, manufacturing variations, and the need for additional analog-to-digital converters, leading to increased circuit complexity and power consumption.
A method and device for current sensing in power regulators using a digital current sensing circuit that includes first and second sensing circuits, each with comparators, digital accumulators, and current DACs to ensure drain and source voltages match between main and sense transistors, reducing non-linearity and eliminating the need for extra ADCs.
Achieves accurate current sensing with reduced circuit complexity and power consumption by minimizing non-linearity errors through adaptive feedback, ensuring precise current mirroring without additional processing blocks.
Abstract
Description
TECHNICAL FIELD
[001] The present disclosure relates to the technical field of power management in electronicscircuits, and more particularly to integrated circuits such as power field effect transistorsutilizing current sensing methods.BACKGROUND
[002] In various power management and control applications such as over-current protection(OCP), current mode control and average current regulation, accurate sensing of current isessential. Conventional methods for current sensing in power circuits often employ a sensefield effect transistor (FET) connected in parallel with the main power metal oxidesemiconductor field effect transistor (MOSFET).
[003] Traditional current sensing techniques often rely on the assumption that the sense FEToperates within its triode (or linear) region. In this mode, the sense FET behaves like a linearresistor, producing a current that is proportional to the drain-to-source voltage (NMOS) orsource-to-drain voltage (PMOS). This proportionality is used to replicate the current flowingthrough the main power MOSFET. However, this assumption of linear behavior is only validwithin a very narrow range of drain-to-source voltage, typically close to zero. As the drain tosource voltage increases, the sense FET exits the linear region, leading to a breakdown of theinitial assumption and introducing significant nonlinearity into the sensed current signal.
[004] Further, practical circuit implementation is subject to manufacturing variations oftenresulting in an inherent mismatch between the drain to source voltage of the main power FETand the parallel sense FET. This mismatch further degrades the accuracy of the currentmirroring function. The resulting inaccuracy in current sensing has a cascading negative effecton critical system control functions, including peak current limiting, average currentcalculation and accurate mode transition for example, between the pulse width modulation andthe pulse frequency modulation modes. Consequently, the overall system performance isdegraded.
[005] Furthermore, existing solution implementation in the digital current sensing methods tocompensate for these accuracy errors often require the incorporation of additional analog todigital converters and post processing blocks. The inclusion of such blocks increases thecomponent overall circuit complexity, die area and power consumption of the powermanagement integrated circuits.
[006] Therefore, there is a need for an improved current sensing method that delivers higheraccuracy without incurring the drawbacks of increased circuit complexity, die area, or powerconsumption typically associated with current sensing methods.SUMMARY
[007] Embodiments of the present disclosure relate to a method of monitoring current in apower regulator, the power regulator configured to drive an average load current andcomprising a first main transistor and a second main transistor, the first main transistor beinga PMOS and the second main transistor being an NMOS, wherein the drain of the first maintransistor and the drain of the second main transistor are electrically connected at a commonswitching node. The method comprises two states of a PWM cycle, a high state and a low state.During the high state of the PWM cycle is generating a first difference voltage by a firstcomparator between a first drain voltage generated at the drain of the first main transistor witha second drain voltage generated at a drain of a first sense transistor, generating a first code bya first digital accumulator based on the generated first difference voltage and generating a firstcurrent by a current digital to analog converter (DAC) based on the generated first code,wherein the current DAC ensures that the second drain voltage received at the first comparatorfrom the first sense transistor is same as the first drain voltage received from the first maintransistor. During the low sate of the PWM cycle the method includes generating a seconddifference voltage by a second comparator between a first source voltage generated at a sourceof a second sense transistor and a second source voltage generating a second code by a seconddigital accumulator based on the generated second difference voltage and generating a secondcurrent by the current DAC based on the generated second code, wherein the current DACensures that the first source voltage received at the second comparator from the source of thesecond sense transistor is same as the second source voltage.
[008] Embodiments of the present disclosure further relate to a device of monitoring current ina power regulator, the power regulator configured to drive an average load current andcomprising a first main transistor and a second main transistor, the first main transistor beinga PMOS and the second main transistor being an NMOS, wherein the drain of the first maintransistor and the drain of the second main transistor are electrically connected at a commonswitching node. The device of monitoring current in a power regulator comprising a digitalcurrent sensing circuit electrically coupled to the power regulator. The digital current sensingcircuit further includes a first sensing circuit electrically coupled to the first main transistor andconfigured to operate during high state of a PWM cycle. The first sensing circuit further comprising a first comparator configured to generate a first difference voltage between a firstdrain voltage generated at the drain of the first main transistor with a second drain voltagegenerated at a drain of a first sense transistor, a first digital accumulator configured to generatea first code based on the generated first difference voltage and a current Digital to AnalogConverter (DAC) configured to generate a first current based on the generated first code,wherein the current DAC ensures that the second drain voltage received at the first comparatorfrom the first sense transistor is same as the first drain voltage received from the first maintransistor. Further, the digital current sensing circuit includes a second sensing circuitelectrically coupled to the second main transistor and configured to operate during low state ofthe PWM cycle. The second sensing circuit further comprising a second comparator configuredto generate a second difference voltage between a first source voltage generated at a source ofa second sense transistor and a second source voltage, a second digital accumulator configuredto generate a second code based on the generated second difference voltage and a current DACconfigured to generate a second current based on the generated second code, wherein thecurrent DAC ensures that the first source voltage received at the second comparator from thesource of the second sense transistor is same as the second source voltage.BRIEF DESCRIPTION OF THE ACCOMPANYING DRAWINGS
[009] FIG. 1 illustrates the block level configuration of environment architecture forimplementing current sensing method, in accordance with an embodiment of the presentdisclosure.
[0010] FIG. 2 illustrates the circuit configuration of environment architecture forimplementing current sensing method, in accordance with an embodiment of the presentdisclosure.
[0011] FIG. 3 illustrates the digital current sensing circuit, in accordance with someembodiments of the present disclosure.
[0012] FIG. 4 illustrates a flowchart for implementing current sensing method, in accordancewith some embodiments of the present disclosure.
[0013] FIG. 5 illustrates a flowchart for implementing current sensing method, in accordancewith some embodiments of the present disclosure.
[0014] FIG. 6 illustrates a performance graph of the current sensing method, in accordancewith some embodiments of the present disclosure.DETAILED DESCRIPTION
[0015] The foregoing description has broadly outlined the features and technical advantagesof the present disclosure in order that the detailed description of the disclosure that follows maybe better understood. It should be appreciated by those skilled in the art that the concept andspecific embodiment disclosed may be readily utilized as a basis for modifying or designingother structures for carrying out the same purposes of the present disclosure.
[0016] Various embodiments of the present invention will now be described more fullyhereinafter with reference to the accompanying drawings, in which some, but not allembodiments of the invention are shown. Indeed, the invention may be embodied in manydifferent forms and should not be construed as limited to the embodiments set forth herein.Rather, these embodiments are provided so that this disclosure will satisfy applicable legalrequirements.
[0017] The term "or" is used herein in both the alternative and conjunctive sense, unlessotherwise indicated. The terms "illustrative," "example," and "exemplary" are used to beexamples with no indication of quality level. Like numbers refer to like elements throughout.The word "exemplary" is used herein to mean "serving as an example, instance, or illustration."Any implementation described herein as "exemplary" is not necessarily to be construed aspreferred or advantageous over other implementations.
[0018] The phrases "in an embodiment," "in one embodiment," "according to oneembodiment," and the like generally mean that the particular feature, structure, or characteristicfollowing the phrase may be included in at least one embodiment of the present disclosure andmay be included in more than one embodiment of the present disclosure (importantly, suchphrases do not necessarily refer to the same embodiment). Moreover, particular conformations,structures, or characteristics may be combined in any adequate way in one or moreembodiments. In the ensuing description, one or more specific details are illustrated, aimed atproviding an in-depth understanding of examples of embodiments of this description. Theembodiments may be obtained without one or more of the specific details, or with othermethods, components, materials, etc. In other cases, known structures, materials, or operationsare not illustrated or described in detail so that certain aspects of embodiments will not beobscured.
[0019] If the specification states a component or feature "can," "may," "could," "should,""would," "preferably," "possibly," "typically," "optionally," "for example," "often," or"might" (or other such language) be included or have a characteristic, that particular componentor feature is not required to be included or to have the characteristic. Such component or featuremay be optionally included in some embodiments, or it may be excluded.
[0020] Turning now to the drawings, the detailed description set forth below in connectionwith the appended drawings is intended as a description of various configurations and is notintended to represent the only configurations in which the concepts described herein may bepracticed. The detailed description includes specific details for the purpose of providing athorough understanding of various concepts with like numerals denote like componentsthroughout the several views and operating path of current in different operable conditions ofcomponents. However, it will be apparent to those skilled in the art that these concepts may bepracticed without these specific details.
[0021] Now referring to figures, FIG. 1 illustrates a block level configuration of environmentarchitecture 100 for implementing current sensing method, in accordance with an embodimentof the present disclosure. The current sensing method for power regulator is described in theenvironment architecture 100. Embodiments of the present disclosure may constitute an inputvoltage 101, a power regulator 102, a digital current sensing circuit 103, a PWM controller104and a system load 105. All the elements or units of the environment architecture 100illustrated in FIG. 1 are essential elements, however the environment architecture 100 may beimplemented by more elements or units or circuits than the elements or units or circuit asillustrated in FIG. 1. However, the same are not explained for the sake of brevity.
[0022] In an embodiment, the input voltage (VIN) 101 may include a voltage that drives thesystem load 105. The input voltage 101 is regulated by the power regulator 102 and generatesan output voltage, that is used to drive the system load 105. The input voltage 101 is also usedto drive the digital current sensing circuit 103, the explanation of which is described inupcoming description. In an embodiment, the power regulator 102 is electrically coupled to theinput voltage 101 and is configured to regulate the voltage according to the load condition.Power regulator 102 is connected to the digital current sensing circuit 103, where the digitalcurrent sensing circuit 103 suitably senses the drain current of the power regulator 102employed with the power transistors. Referring to FIG.2, the power regulator 102 is configuredto generate an output voltage that is generated at the center node connecting the drain of thePMOS transistor MP and the drain of the NMOS transistor MN, generating a common switchingvoltage VSW. The common switching voltage VSW is used to generate a load current IL for thesystem load 105 through the inductor L capacitor C0 (LC) circuit. The inductor L may beelectrically connected to the switching node SW to receive the generated nodal currentconsisting of the IP and IN current at different switching cycles of the power transistors. Theinductor L is communicatively coupled to the system load 105 and configured to generateaverage load current IL, to drive the system load 105, taking reference from the FIG.2 for clearer picture of this description. Further, the capacitor C0 placement may stabilizes the output voltageduring sudden load changes or any transient switching. The capacitor C0 may also filter outhigh frequency noise and reduce voltage ripples in power regulator circuit 202 in theenvironment architecture 200.The LC circuit provides stable and noiseless output voltage V0.
[0023] In an embodiment, the power regulator 102 may include power Field Effect Transistor(FETs) such as PMOS transistor MP and NMOS transistor MN. The PMOS transistor MP isinterchangeably used as a first main transistor MP throughout the disclosure. The first maintransistor is driven by gate voltage VGATEP through the gate driver circuit with feedback voltageVPWM generated by the PWM controller 104. The first main transistor driven by the gate voltageVGATEP turns the first main transistor ON and OFF. Further the first main transistor sourceterminal is connected to the input voltage VIN 101 generating the source current IP through thesource terminal of the first main transistor MP. Furthermore, the drain terminal of the first maintransistor MP is connected to the drain of the second main transistor MN to a common switchingnode SW to produce a switching voltage VSW that may be used by the digital current sensingcircuit 103. The drain to source voltage VDSP is generated across the first main transistor duringthe ON state of the first main transistor. The NMOS transistor MN is interchangeably used as asecond main transistor MN throughout the disclosure. The second main transistor is driven bygate voltage VGATEN through the gate driver circuit with feedback voltage VPWM generated bythe PWM controller 104. The second main transistor driven by the gate voltage VGATEN turnsthe second main transistor ON and OFF. Further the second main transistor source terminal isconnected to the ground voltage VGND. The source current IN is generated through the sourceterminal of the second main transistor MN. The drain to source voltage VDSN is generated acrossthe second main transistor during the ON state of the second main transistor. All the circuitelements discussed above may be considered electrically coupled when the elements are eitherdirectly connected or interact via a signal path when voltage or current enables one element todrive or influence the operation of another.
[0024] Now coming back to FIG.1, in an embodiment, the digital current sensing circuit 103is used to sense the accurate current of the power transistors of the power regulator 102. Thedigital current sensing circuit 103 is configured to receive the input voltage VIN 101 andswitching voltage VSW from the power regulator 102. In another embodiment, the digitalcurrent sensing circuit 103 is also configured to receive the drain to source voltage VDSP andVDSN of the power MOSFETs MP and MN respectively, from the power regulator 102. Thedigital current sensing circuit 103 may include a first sensing circuit 103a and a second sensingcircuit 103b. The first sensing circuit 103a is electrically connected to the power regulator 102 through the first main transistor MP and the input voltage 101 to generate accurate sense currentIP_SENSE that may be used to provide feedback current or voltage through the PWM controller104 to the gate driver circuit for the first main transistor to operate efficiently. The secondsensing circuit 103b is electrically connected to the power regulator 102 through the secondmain transistor MN and the input voltage 101 to generate accurate sense current IN_SENSE thatmay be used to provide feedback current or voltage through the PWM controller 104 to thegate driver circuit for the second main transistor MN to operate efficiently. The digital currentsensing circuit 103 may be a part of a single integrated circuit (IC) with the power regulator102 or may be a different IC electrically coupled to the power regulator 102 and input voltage101. Additionally, the structural configuration of the digital current sensing circuit 103 isillustrated in the subsequent figures of the present disclosure.
[0025] In an embodiment, the PWM controller 104 may be a fixed frequency control integratedcircuit (IC) used to control the power for the power regulator 102. The PWM controller 104may be implemented inside or outside the power regulator 102. The PWM controller 104 isconnected to the output of the power regulator 102, which delivers an output voltage denotedas V0. Additionally, the PWM controller receives current sensing signals from the digitalcurrent sensing circuit 103. Using the inputs from the digital current sensing circuit 103, thePWM controller 104 dynamically adjusts the duty cycle of the power transistors within thepower regulator 102. The duty cycle refers to the proportion of time, during each switchingcycle, that the PMOS and NMOS transistors remain in the ON state. A higher duty cycle meansthe transistor stays ON for a longer portion of the cycle, allowing more energy to be transferred.A lower duty cycle means the transistor is ON for a shorter time, reducing energy transfer. Thisadjustment helps regulate the output voltage V0 and current efficiently, ensuring stableoperation of the power supply system to drive the system load 105 in the environmentarchitecture 100.
[0026] Further in an embodiment, non-limiting examples of the system load 105 may bebattery chargers, motor drivers or the like, that may require an average load current IL generatedby the inductor L. The system load 105 may be a type of electrical load that draws power fromthe circuit. The system load 105 receives an average load current IL that is delivered throughthe inductor L. The average load current IL may be generated by the switching voltage VSWgenerated during the operation of the power regulator 102. The average load current IL may begenerated by the drain currents (IP or IN) flowing through the power transistors (typicallyPMOS and NMOS) within the power regulator 102. The system load 105 consumes theelectrical energy that is processed and regulated by the power regulator 102, and this energy istransferred through the inductor L as part of the power conversion process.
[0027] Throughout the environment architecture 100 all the circuit elements discussed abovemay be coupled when such elements which are directly connected or electrically responsivealong a signal path.
[0028] FIG. 2 illustrates the circuit configuration of environment architecture forimplementing current sensing method, in accordance of an embodiment of the presentdisclosure. In an embodiment, the circuit configuration of the environment architecture 200includes a power regulator 202 (same as the power regulator 102), a digital current sensingcircuit 203 (same as the digital current sensing circuit 103), a PWM controller (same as thepower controller 104) and a system load (same as the load 105). All the elements of theenvironment architecture 200 illustrated in FIG. 2 are essential elements and are similar infunctional aspects discussed above in FIG.1 description and hence description of which isomitted here. Further, the environment architecture 200 may be implemented by more elementsthan the elements illustrated in FIG. 2, however the same are not explained for the sake ofbrevity.
[0029] In an embodiment, the power regulator 202 may include a gate driver circuit other thanthe power transistors discussed above. The gate driver circuit may be configured to receive thePWM signal from the PWM controller and generate the gate driving voltage for powertransistors employed in the power regulator 202. The PWM signal may be PWM feedbackvoltage VPWM or the feedback current through the PWM controller. The gate driving voltagemay include the gate voltage VGATE_P for the first main transistor MP. The gate driving voltagemay include the gate voltage VGATE_N for the second main transistor MN. The gate drivingvoltages may be generated with varying duty cycles to independently switch the first andsecond main transistors. The gate driver circuit can incorporate advanced features such asOver-Current Protection (OCP), Under-Voltage Lockout (UVLO), and thermal shutdown.Additionally, the gate driver circuit may include circuitry for signal amplification and isolationto enable fast switching and ensure robust protection. A person skilled in the art can deriveboth functional and structural aspects of the gate driver to integrate these features effectively,thereby enabling precise control of voltage and current required by the power transistors in thepower regulator 202.
[0030] The functional aspects of the digital current sensing circuit 203 (same as the digitalcurrent sensing circuit 103 of FIG.1) are further illustrated in FIG. 3, which presents a detailedcircuit-level representation incorporating electrical and electronic components. This depiction is intended to provide a person skilled in the art with a comprehensive understanding of theoperational architecture of the device and implementation of the present disclosure, therebyenabling accurate realization of the system functionalities described. Furthermore, FIG.4 andFIG.5 illustrate the method or operational aspect of the present disclosure.
[0031] The detailed description of the remaining components or elements has beenintentionally omitted for brevity, as they are already explained in foregoing paragraphs whiledescribing FIG. 1.
[0032] In an embodiment, FIG.3 illustrates the digital current sensing circuit 300 (same as thedigital current sensing circuit 103), in accordance with an embodiment of the presentdisclosure. The digital current sensing circuit 300 comprises a first sensing circuit 301 and asecond sensing circuit 301.
[0033] In an embodiment, the first sensing circuit 301 may include a switch SP, a first low passfilter 301a, a first comparator 301b, a first digital accumulator 301c, a current digital to analogconverter 301d and a first sense transistor MP_SENSE. All the elements or units of the first sensingcircuit 301 are essential elements, the first sensing circuit 301 may be implemented by moreelements or units than the elements or units as illustrated in FIG. 3. However, the same are notexplained for the sake of brevity.
[0034] In an embodiment, the first sensing circuit 301 is configured to sense the currentthrough the first main transistor MP, when the first main transistor MP is in ON state.
[0035] In an embodiment, the switch SP is electrically connected to the output of the first maintransistor MP of the power regulator 202. The output of the first main transistor may be thedrain voltage VDSP of the first main transistor MP or the drain current of the first main transistorMP. The term drain voltage may also be interchangeably used as drain voltage of the first maintransistor MP. In an embodiment, the input of the switch SP may be the switching voltage VSWfrom the switching node when the first main transistor MP is in ON state.
[0036] In an embodiment, the first low pass filter 301a is electrically coupled to the first maintransistor MP through the switch SP. The first low pass filter is configured to filter the drainvoltage of the first main transistor MP to a sampled and filtered output voltage VDP_AVG. Theterm filtered output voltage of the first low filter 301a may be interchangeably used as a firstdrain voltage in the present disclosure.
[0037] In an embodiment, the first sense transistor MP_SENSE has a source terminal electricallycoupled to the input voltage VIN 101. In another embodiment, the source terminal of the firstsense transistor MP_SENSE may be electrically coupled to the source terminal of the first maintransistor MP. In an embodiment, the drain terminal of the first sense transistor MP_SENSE is electrically coupled to the first comparator 301b and the current DAC 301d. Furthermore, thegate terminal of the first sense transistor is electrically coupled to the ground voltage or the lowlevel of the gate voltage of first main transistor MP. In an embodiment, the first sense transistorMP_SENSE is switched ON when the first main transistor MP is in ON state. When the first sensetransistor MP_SENSE is in ON state, the first sense transistor MP_SENSE is configured to generatea drain to source voltage also named as VDP_SENSE. The terms drain to source voltage of the firstsense transistor MP_SENSE or drain voltage of the first sense transistor MP_SENSE or the seconddrain voltage of the first sense transistor MP_SENSE are interchangeably used in the presentdisclosure. The first sense transistor MP_SENSE is a PMOS transistor and is similar to the firstmain transistor MP but with a scaled down configuration. Here the configuration may refer tothe physical and material aspect of the transistor. The first sense transistor MP_SENSE has thegate width n times smaller than the gate width of the first main transistor MP, such that the firstsense transistor MP_SENSE generates a scaled drain current equal to 1 / n times the drain currentproduced by the first main transistor MP. The first sense transistor MP_SENSE generates thesensed current which is 1 / n times the current generated by the first main transistor MP. Forexample, the current flowing through the first sense circuit 301 in general aspect may be sensedbased on the relationship:Id=Vds / Rds(on)_pwhere:Id=drain currentVds=drain-source voltageRds(on)_p=drain-source ON resistance of the (power) device in the linear operating zone.
[0038] In an embodiment, the first sense transistor MP_SENSE has a resistance Rds(on) having avalue n times higher than the resistance of first main transistor MP.
[0039] In an embodiment, the first comparator 301b is electrically configured to receive thefirst drain voltage from the first low pass filter 301a and the second drain voltage from the firstsense transistor MP_SENSE. The first comparator 301b is configured to generate first differencevoltage based on the first and second drain voltages received. The first difference voltage isalso referred to as the error signal ER_P. The error signal is produced according to the variationin drain to source voltage of the first sense transistor MP_SENSE with the variation in drain tosource voltage of the first main transistor MP. In an embodiment, the first comparator 301bmay be electrically coupled to both the first low pass filter 301a and to the first sense transistorMP_SENSE .The first comparator 301b generates an error signal (ER_P) when there is a mismatchbetween average source-to-drain voltage of the first main transistor MP and that of the firstsense transistor MP_SENSE. This error signal indicates a deviation in performance or behaviorbetween the first main transistor MP and first sense transistor MP_SENSE, which can be used forfurther control or correction within the first sensing circuit 301.
[0040] In an embodiment, the first digital comparator 301c is electrically coupled to the currentDAC 301d and the first comparator 301b. The digital comparator 301c is configured to generatea digital output code of the IP sense current of the first main transistor MP. The digital outputcode is interchangeably termed as a first code in the present disclosure. The digital accumulator301c comprises a digital integrator that is configured to freeze the digital output code when theaverage source-to-drain voltage of the first main transistor MP is equal to the source-to-drainvoltage of the first sense transistor MP_SENSE. The frozen digital code is multiplied with LeastSignificant Bit (LSB) of the current DAC 301d to generate the value of the sensed IP sensecurrent. The digital integrator is further configured to increment the digital count when theaverage source-to-drain voltage of the first main transistor MP is greater than the source-todrain voltages of the first sense transistor MP_SENSE and to decrement the digital count when theaverage source-to-drain voltage of the first main transistor MP is less than the source-to-drainvoltage of the first sense transistor MP_SENSE.
[0041] Further in the embodiment, the current DAC 301d is configured to dynamicallygenerate an analog current IP_SENSE. The analog current IP_SENSE is generated based on the frozendigital code or first code generated at the first digital comparator 301c. Furthermore, in theembodiment, to match the source-to-drain voltages of the first main transistor MP with thesource-to-drain voltage of the first sense transistor MP_SENSE, the current DAC 301d is furtherconfigured to feedback the analog current IP back to the first digital comparator 301c. Theanalog current IP is based on the frozen digital code or the first code generated at the first digitalcomparator 301c. The first sensed current IP_SENSE may also be sent as a feedback to the PWMcontroller 104 in order to achieve the functionalities such as current regulation, over currentprotection, etc. The feedback sensed current controls the duty cycle required to control the gateterminal of the first main transistor MP through the gate driver circuit in the power regulator202.
[0042] In one embodiment, the operational functionality of the power regulator 202 and thedigital current sensing circuit 300 is governed by seamless data and control signal exchangeamong the constituent components, as described for the first sensing circuit 301. This exchangeis dynamically regulated based on real-time feedback and prevailing voltage conditions of thefirst main transistor, thereby enabling adaptive system behavior. The integration of thefeedback at the first digital comparator 301c through the current DAC 301d, further enhancessystem performance. Specifically, the proposed technique minimizes non-linearity error byensuring equal source-to-drain voltage of the first main transistor MP and first sense transistorMP_SENSE using the current DAC 301d. The current DAC 301d adjusted until the source-todrain voltage of both the transistors (first main and sense transistors) values match, enablingaccurate current mirroring. This method avoids the need for extra ADCs or complex postprocessing. It ensures precise current sensing with reduced circuit complexity.
[0043] In an embodiment, the second sensing circuit 302 may include a switch SN, a secondlow pass filter 302a, a second comparator 302b, a second digital accumulator 302c, a currentdigital to analog converter 302d and a second sense transistor MN_SENSE. All the elements orunits of the second sensing circuit 302 are essential elements, the second sensing circuit 302may be implemented by more elements or units than the elements or units as illustrated in FIG.2. However, the same are not explained for the sake of brevity.
[0044] In an embodiment, the second sensing circuit 302 is configured to sense the currentthrough the second main transistor MN , when the second main transistor MN is in ON state.
[0045] In an embodiment, the switch SN is electrically connected to the source of the secondsense transistor MN_SENSE of the second sensing circuit 302. In an embodiment, the input of theswitch SN may be connected to the current DAC 302d through feedback analog current IN_SENSEgenerated at the current DAC 302d. The switch SN is configured to be close when the switchingsource voltage of the second sense transistor MN_SENSE is generated. The switching sourcevoltage of the second sense transistor MN_SENSE may be generated when the second sensetransistor MN_SENSE is ON. The second sense transistor MN_SENSE is ON when the second maintransistor is in ON state.
[0046] In an embodiment, the second sense transistor MN_SENSE is having its gate terminalelectrically coupled to the input voltage VIN 101 or high level of gate voltage of the secondmain transistor MN. In an embodiment, the drain terminal of the second sense transistorMN_SENSE is electrically coupled to the drain of the first main transistor MP. The source terminalof the second sense transistor MN_SENSE may be electrically coupled to the switch SN. Furtherthe source terminal of the second sense transistor MN_SENSE is electrically coupled to the currentDAC 302d. Furthermore, the drain terminal of the second sense transistor MN_SENSE iselectrically coupled to the connecting node or switching node SW (as shown in FIG.2), and tothe switching voltage VSW from the switching node. The switching voltage is generated whenthe second main transistor is in ON state may be used by the second sense circuit 301 throughthe drain of the second sense transistor MN_SENSE.
[0047] Further in the embodiment, the second sense transistor MN_SENSE is switched ON whenthe second main transistor is in ON state. When the second main transistor is in ON state, thesecond sense transistor MN_SENSE is configured to generate a source voltage with respect to theswitching voltage VSW of the second main transistor MN. The drain to source voltage of thesecond sense transistor MN_SENSE or source voltage of the second sense transistor MN_SENSE orthe first source voltage of the second sensing circuit 302 is interchangeably used in the presentdisclosure. The second sense transistor MN_SENSE is NMOS transistor and is similar to thesecond main transistor MN but with a scaled down configuration. The configuration herecorresponds to the physical and material aspect. The second sense transistor MN_SENSE is havingits gate width n times smaller than the gate width of the second main transistor MN, such thatthe second sense transistor MN_SENSE generates a scaled down source current equal to 1 / n timesthe drain current generated by the second main transistor MN. The second sense transistorMN_SENSE generates the sensing current similar to the second main transistor but with a scaleddown version of 1 / n times. For example, the current flowing through the device may be sensedbased on the general aspect with a relationship:Id=Vds / Rds(on)_nwhere:Id=drain currentVds=drain-source voltageRds(on)_n=drain-source ON resistance of the (power) device in the linear operating zone.
[0048] In an embodiment, the second low pass filter 302a is electrically coupled to the secondsense transistor MN_SENSE through the switch SN. The second low pass filter 302a is configuredto filter the source voltage of the second sense transistor MN_SENSE to a sampled and filteredoutput voltage VDN_AVG or an average source voltage. The filtered source voltage of the secondlow filter 302a may be interchanged used as a first source voltage of the second sensing circuit302 or of the second sense transistor MN_SENSE , in the present disclosure.
[0049] In an embodiment, the second comparator 302b is electrically connected to receive thefirst source voltage from the second low pass filter 302a as one of its input. The second sourcevoltage is provided as the other input to the second comparator 302b. The second source voltageand the ground voltage may be interchangeably used in the present disclosure. In oneembodiment, the second source voltage may be received from the source terminal of the secondmain transistor MN implemented in the power regulator 202 (refer to FIG.2) or alternatively thesecond source voltage may be connected to ground within the second sensing circuit 302. The second comparator 302b is configured to generate a second difference voltage as an outputbased on the input first source voltage and the input second source voltage. The seconddifference voltage is also referred to as the error signal ER_N. The error signal is producedaccording to the variation in source voltage of the second sense transistor MN_SENSE with thevariation to the second source voltage. In one embodiment, the second comparator 302b iselectrically connected to both the second low-pass filter 302a and the second sense transistorMN_SENSE. The second comparator 302b produces the error signal (ER_N) when the sourcevoltage of the second sense transistor deviates from zero volts, indicating a mismatch orimbalance that needs correction.
[0050] In an embodiment, the second digital comparator 302c is electrically coupled to thecurrent DAC 303d and the second comparator 302b. The digital comparator 302c is configuredto generate a digital output code of the IN_SENSE current of the second sense transistor. Thedigital output code is interchangeably termed as a second code in the present disclosure. Thedigital accumulator 302c comprising a digital integrator configured to freeze the digital outputcode when the average source voltage of the second sense transistor MN_SENSE is equal to zero.The frozen digital code is multiplied with Least Significant Bit (LSB) of the current DAC 302dto generate the digital current. The digital integrator is further configured to increment thedigital count when the average source voltage of the second sense transistor MN_SENSE is lessthan the zero and to decrement the digital count when the average source voltage of the secondsense transistor MN_SENSE is greater than the zero voltage.
[0051] Further in the embodiment, the current DAC 302d is configured to dynamicallygenerate an analog current IN_SENSE. The analog current IN_SENSE is generated based on thefrozen digital code or second code generated at the second digital comparator 302c.Furthermore, in the embodiment, to match the source voltage of the second sense transistorwith the ground voltage, the current DAC 302d is further configured to feedback the analogcurrent IN_SENSE back to the second digital comparator 302c through the second low pass filter302a. The analog current IN_SENSE based on the frozen digital code or second code generated atthe second digital comparator 302c is also termed as a second current IN_SENSE. The secondcurrent IN_SENSE may also be sent as feedback to the PWM controller 104 in order to achievethe functionalities such as current regulation, over current protection, etc. The sensed feedbackcurrent IN_SENSE controls the duty cycle required to control the gate terminal of the second maintransistor MN through the gate driver circuit in the power regulator 202 (refer to FIG.2).
[0052] In one embodiment, the operation of the power regulator 202 and the digital currentsensing circuit 300 is governed by seamless data and control signal exchange among the constituent components, as described for the second sensing circuit 302. This exchange isdynamically regulated based on real-time feedback and prevailing voltage conditions of thesecond main transistor, thereby enabling adaptive system behavior. The integration of thefeedback at the second digital comparator 302c through the current DAC 302d, furtherenhances system performance. Specifically, the proposed physical implementation and methodminimizes non-linearity error by ensuring equal drain to source voltage of the second maintransistor MN and second sense transistor MN_SENSE using the current DAC 302d. The currentDAC 302d is adjusted until the source voltage of the second sense transistor's values match tozero, enabling accurate current mirroring. This method avoids the need for extra ADCs orcomplex post processing. It ensures precise current sensing with reduced circuit complexity.
[0053] In one embodiment, the current DACs 301d and 302d may be implemented as separateelements within the digital current sensing circuit 300, or alternatively, as a single integratedelement designed to sense the current flowing through the main transistors or power transistorsof the power regulator 202.
[0054] In one embodiment, the component-level configuration depicted in FIG. 1 through 3corresponds to the detailed circuit representation. The method steps when read in conjunctionwith the operational and constructional aspects (physical) described in FIG. 1 to 3, will assista person skilled in the art in understanding and implementing the present disclosure withoutundue difficulty.
[0055] FIG. 4 illustrates a flowchart for implementing current sensing method, in accordancewith some embodiments of the present disclosure.
[0056] At step 401, the first sensing circuit 301 is configured to generate a first differencevoltage. The first comparator 301b within the first sensing circuit 301 generates the firstdifference voltage that is a differential voltage generated by comparing the first drain voltageof the first main transistor MP with a second drain voltage of a first sense transistor MP_SENSE.
[0057] At step 402, the first digital accumulator 301c within the first sensing circuit 301 isconfigured to generate a first code based on the generated first difference voltage.
[0058] At step 403, the current DAC 301d within the first sensing circuit 301 is configured togenerate a first current based on the generated first code. The current DAC 301d adjusts thesecond drain voltage received at the first comparator 301b from the first sense transistorMP_SENSE, so that it matches the first drain voltage received from the first main transistor MP.
[0059] FIG. 5 illustrates a flowchart for implementing current sensing method, in accordancewith some embodiments of the present disclosure.
[0060] At step 501, the second sensing circuit 302 is configured to generate a second differencevoltage. The second comparator 302b within the second sensing circuit 302 generates thesecond difference voltage that is a differential voltage generated by comparing the first sourcevoltage generated at a source of a second sense transistor MN_SENSE and a second source voltage.
[0061] At step 502, the second digital accumulator 302c within the second sensing circuit 302is configured to generate a second code based on the generated second difference voltage.
[0062] At step 503, the current DAC 302d within the second sensing circuit 302 is configuredto generate a second current based on the generated second code. The current DAC 302d adjuststhe first source voltage received at the second comparator 302c from the source of the secondsense transistor MN_SENSE, so that it matches the second source voltage.
[0063] FIG. 6 illustrates the performance of the current sensing method of the presentdisclosure, specifically comparing the measured current IDS across the sense transistors of thedigital current sensing circuit 300.
[0064] In an example, the graph representing the measured current IDS the percentage errorusing the integrator for the present disclosure incorporates the digital sensing circuit 300(shown in the FIG. 3) to provide significant constrained error profile across the entire operatingcurrent range of the power regulator with which the digital current sensing circuit 300 isconnected. The error begins at around -0.48% when drain current IDS is equal to 0.25 amperesand then quickly settles to narrow range between -0.08 % to -0.05% as the drain currentincreases from the 0.75 amperes to 2 amperes. This indicates that the method successfullyachieved an error rate of less than 1% across the entire operating range demonstrating superioraccuracy and stability compared to the maximum 8% error observed in the conventionalmethod present in the art.
[0065] In an embodiment, the PWM controller 104 or processor (not shown in figure) of theenvironment architecture 100 presented in the disclosure may be implemented at any circuitelement capable of executing the instructions or control operations stored in a memory (notshown) to perform one or more operations or methods described herein. The processor may beembodied as a multi-core processor, a single core processor, or a combination of one or moremulti-core processors and one or more single core processors. For example, the processor maybe embodied as one or more of various processing devices, such as a coprocessor, amicroprocessor, a controller, a Digital Signal Processor (DSP), a processing circuitry with orwithout an accompanying DSP, or various other processing devices including, amicrocontroller unit (MCU), a hardware accelerator, a special-purpose computer chip, or thelike. The processor may also be known as controller is also capable of executing other processes and programs resident in the memory, such as operations for managing different elements ofthe present disclosure. The processor can move data into or out of a memory as required by anexecuting process. Further the processor may be divided into multiple processors, such as oneor more central processing units (CPUs) and one or more general processing units (GPUs) orprocessors with distributed implementation of the processor, in different applications withsame implemented method steps of the present disclosure.
[0066] While various aspects and embodiments have been disclosed herein, other aspects andembodiments may be apparent to those skilled in the art. The various aspects and embodimentsdisclosed herein are for purposes of illustration and are not intended to be limiting, with the
Claims
1. A method of monitoring current in a power regulator, the power regulator configured to drive an average load current and comprising a first main transistor and a second main transistor, the first main transistor being a PMOS and the second main transistor being an NMOS, wherein the drain of the first main transistor and the drain of the second main transistor are electrically connected at a common switching node, the method comprising: during high state of a PWM cycle: generating a first difference voltage by a first comparator between a first drain voltage generated at the drain of the first main transistor with a second drain voltage generated at a drain of a first sense transistor; generating a first code by a first digital accumulator based on the generated first difference voltage; and generating a first current by a current digital to analog converter (DAC) based on the generated first code, wherein the current DAC ensures that the second drain voltage received at the first comparator from the first sense transistor is same as the first drain voltage received from the first main transistor; and during low state of the PWM cycle: generating a second difference voltage by a second comparator between a first source voltage generated at a source of a second sense transistor and a second source voltage; generating a second code by a second digital accumulator based on the generated second difference voltage; and generating a second current by the current DAC based on the generated second code, wherein the current DAC ensures that the first source voltage received at the second comparator from the source of the second sense transistor is same as the second source voltage.
2. The method as claimed in claim 1, wherein the first voltage is an average drain voltage of the first main transistor, averaged by a first low pass filter electrically coupled at the drain of the first main transistor.
3. The method as claimed in claim 1, wherein a digital count of the first code is incremented or decremented based on the average value of drain voltage of the first main transistor being less than or greater than the drain voltage of the first sense transistor.
4. The method as claimed in claim 1, comprising selecting the first sense transistor as a PMOS transistor, having a gate width n times smaller than gate width of the first main transistor, such that the first sense transistor generates a scaled drain current equal to 1 / n times the drain current produced by the first main transistor.
5. The method as claimed in claim 1, wherein first difference voltage generated by the first comparator is an error signal (ER_P), the error signal being less than 1 percent and corresponding to variation in sensed current by the first sensing circuit.
6. The method as claimed in claim 1, wherein the first source voltage is an average source voltage of the second sense transistor, averaged by a second low pass filter electrically coupled at the source of the second sense transistor.
7. The method as claimed in claim 1, wherein a digital count of the second code is incremented or decremented based on the average source voltage of the second sense transistor being less than or greater than the second source voltage, wherein the second source voltage is a ground voltage.
8. The method as claimed in claim 1, comprising selecting second sense transistor as a NMOS transistor, having a gate width n times smaller than gate width of the second main transistor, such that the second sense transistor generates a scaled source current equal to 1 / n times the drain current produced by the second main transistor.
9. The method as claimed in claim 1, wherein the second difference voltage generated by the second comparator is an error signal (ER_N), the error signal being less than 1 percent and corresponding to variation in sensed current by the second sensing circuit.
10. A device for monitoring current in a power regulator, the power regulator configured to drive an average load current and comprising a first main transistor and a second main transistor, the first main transistor being a PMOS and the second main transistor being an NMOS, wherein the drain of the first main transistor and the drain of the second main transistor are electrically connected at a common switching node, the device comprising: a digital current sensing circuit electrically coupled to the power regulator, the digital current sensing circuit further comprising: a first sensing circuit electrically coupled to the first main transistor and configured to operate during high state a PWM cycle, the first sensing circuit further comprising: a first comparator configured to generate a first difference voltage between a first drain voltage generated at the drain of the first main transistor with a second drain voltage generated at a drain of a first sense transistor; a first digital accumulator configured to generate a first code based on the generated first difference voltage; and a current Digital to Analog Converter (DAC) configured to generate a first current based on the generated first code, wherein the current DAC ensures that the second drain voltage received at the first comparator from the first sense transistor is same as the first drain voltage received from the first main transistor; and a second sensing circuit electrically coupled to the second main transistor and configured to operate during low state of the PWM cycle, the second sensing circuit further comprising: a second comparator configured to generate a second difference voltage between a first source voltage generated at a source of a second sense transistor and a second source voltage; a second digital accumulator configured to generate a second code based on the generated second difference voltage; and a current DAC configured to generate a second current based on the generated second code, wherein the current DAC ensures that the first source voltage received at the second comparator from the source of the second sense transistor is same as the second source voltage.
11. The device as claimed in claim 10, wherein the first sensing circuit further comprises a first sense transistor, the first sense transistor having, a source terminal electrically coupled to a source terminal of the first main transistor, a drain terminal electrically coupled to the first comparator and the current DAC, and a gate terminal coupled to ground.
12. The device as claimed in claim 10, wherein the first sensing circuit further comprises a first low pass filter electrically coupled at the drain of the first main transistor and configured to generate an average drain voltage, the average drain voltage being the first drain voltage.
13. The device as claimed in claim 10, wherein the first digital accumulator is further configured to increment or decrement a digital count of the first code based on the average value of drain voltage of the first main transistor being less than or greater than the drain voltage of the first sense transistor.
14. The device as claimed in claim 10, wherein the first sense transistor is a PMOS transistor, and is selected to have a gate width n times smaller than gate width of the first main transistor, such that the first sense transistor generates a scaled drain current equal to 1 / n times the drain current produced by the first main transistor.
15. The device as claimed in claim 10, wherein the first comparator configured to generate the first difference voltage referred to as an error signal (ER_P), the error signal (ER_P) being less than 1 percent, the error signal corresponds to variation in sensed current by the first sensing circuit.
16. The device as claimed in claim 10, wherein the second sensing circuit further comprises a second sense transistor, the second transistor having, a source terminal coupled to the second comparator, the second switch and the current DAC, a drain terminal coupled to the drain terminal of the second main transistor, and a gate terminal coupled to the input voltage VIN.
17. The device as claimed in claim 10, wherein the second sensing circuit further comprises a second low pass filter electrically coupled at the source of the second sense transistor and configured to generate an average source voltage, the average source voltage being the first source voltage.
18. The system as claimed in claim 10, wherein the second digital accumulator is further configured to increment or decrement a digital count based on the average source voltage of the second sense transistor being less than or greater than the second source voltage, wherein the second source voltage is a ground voltage.
19. The device as claimed in claim 10, wherein the second sense transistor is an NMOS transistor, and is selected to have a gate width n times smaller than gate width of the second main transistor, such that the second sense transistor generates a scaled source current equal to 1 / n times the drain current produced by the second main transistor.
20. The device as claimed in claim 10, wherein the second comparator configured to generate the second difference voltage referred to as an error signal (ER_N), error signal (ER_N) being less than 1 percent, the error signal corresponds to variation in sensed current by the second sensing circuit.
