{"id":65,"date":"2008-06-26T23:43:47","date_gmt":"2008-06-27T04:43:47","guid":{"rendered":"http:\/\/www.circuitdesign.info\/?p=65"},"modified":"2020-11-02T19:57:19","modified_gmt":"2020-11-03T01:57:19","slug":"quick-regulator-design-part-2-loop-gain","status":"publish","type":"post","link":"https:\/\/www.circuitdesign.info\/blog\/2008\/06\/quick-regulator-design-part-2-loop-gain\/","title":{"rendered":"Quick Regulator Design \u2013 Part 2: Loop Gain"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In Part 1, I discussed how the regulated supply reacts to a switching transient, and how the regulator bypass capacitance C<sub>R<\/sub> suppresses the transient.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, I will discuss how this same bypass capacitance affects\u00a0 the loop gain characteristics of the regulator. I will then present a procedure to design this regulator quickly, and stabilize it after the fact.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Regulator Schematic<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s the full schematic of our regulator:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"410\" src=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0040b.jpg\" alt=\"\" class=\"wp-image-59\" srcset=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0040b.jpg 640w, https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0040b-300x192.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">M5 is the regulating device. The diff pair is an OTA (operating transconductance amplifier, but also referred to as an op-amp despite its high output impedance) that implements the feedback (with a lot of gain). If more gain is desired, devices M1\/M2, M3\/M4 can be cascoded. M6 can be cascoded for better CMRR (common-mode rejection ratio).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two poles to consider in this feedback loop. The dominant pole (by design) is at the drains of M4\/M2. It is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$$\\frac{g_{ds2} + g_{ds4}}{C_C}$$<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The non-dominant pole is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$$\\frac{g_{m5}}{C_R}$$<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(Note that if the circuit being regulated has any supply capacitance, it should be included in C<sub>R<\/sub>).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The dc loop gain is (approximately\u2013excluding the output resistance of M5):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$$\\frac{g_{m2}}{g_{ds4}+g_{ds2}}$$<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To maintain phase margin, we want the dominant pole to be well below the non-dominant pole.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The regulator output capacitance C<sub>R<\/sub> has already been defined in Part 1. Since this is a quick-and-dirty design, we will simply size C<sub>C<\/sub> after the fact so that we get adequate phase margin.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sizing Devices<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We presume that there is a current specification on the OTA, so the bias for M6 is already defined. Obviously, more current is always better (more loop bandwidth).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Devices can be sized as follows:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M5<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">We size M5 to provide some minimum non-dominant pole frequency. This non-dominant pole frequency (and some phase margin specification) dictates our dominant pole frequency and therefore dictates the bandwidth of the loop. We won&#8217;t worry about loop bandwidth in this design. We will just live with what we get.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If there is variation in I<sub>R<\/sub>, the current going into the load circuit, then this pole frequency needs to be specified with the minimum current. This low-I<sub>R<\/sub> extreme is the limiting case on stability. When the current in M5 increases past this minimum, $g_{m5}$ increases and the non-dominant pole simply increases in frequency, making the system more stable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M3\/M4<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The gate of device M5 is at V<sub>R<\/sub> + V<sub>GS5<\/sub> = V<sub>R<\/sub> + V<sub>T5<\/sub> + V<sub>DSAT5<\/sub>. So, we size M3\/M4 to have:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$$|V_{DSAT3\/4}| &lt; V_S &#8211; (V_R + |V_{GS5}|)$$<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Making M3\/M4 large will cause |V<sub>DSAT3\/4<\/sub>| to be low but will also lower the frequency of the dominant pole and will also reduce the dc loop gain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This consideration on the drains of M3\/M4 indicates a limitation: if the quantity V<sub>R<\/sub> + |V<sub>GS5<\/sub>| is too close (or higher than) V<sub>S<\/sub>, we cannot design a regulator using this topology. For example, if V<sub>S<\/sub> is 2.5 V and VR is 1.8 V, and a threshold is 700 mV, we don\u00e2\u20ac&#x2122;t have enough headroom because V<sub>R<\/sub> + V<sub>T5<\/sub> will be 2.5 V. The drain voltage of M4 (V<sub>R<\/sub> + V<sub>T5<\/sub> + V<sub>DSAT5<\/sub>) will be higher than V<sub>S<\/sub> (2.5 V).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In one case, this limitation caused me to make M5 a thin-oxide (rather than the thick-oxide I\/O device commonly used for analog design). The thin-oxide devices have a much smaller threshold voltage, greatly reducing the drain voltage on M4. An alternative option is to use a 0-V<sub>T<\/sub> (sometimes called native) device for M5. That option wasn&#8217;t available to me.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M1\/M2<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">M1\/M2 can be sized for loop gain. Increasing M1\/M2 increases the loop bandwidth up to a point. Past that point, the gate capacitance of M2 dominates C<sub>R<\/sub>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Recall that g<sub>m2<\/sub> is proportional to $\\sqrt{W_2}$. However, C<sub>gs2<\/sub> is proportional to W<sub>2<\/sub>. So, there is a losing battle as C<sub>gs2<\/sub> increases faster than g<sub>m2<\/sub>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">M6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">M6 is simply designed (like in any other diff-pair) to be a good tail current source. The drain voltage on M6 is:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">$$V_R &#8211; V_{T1\/2} + V_{DSAT1\/2}$$<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">V<sub>DSAT6<\/sub> should be sufficiently lower than this drain voltage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Stabilization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, after doing all of the above, we can measure the loop gain. If there is no phase margin, we simply size C<sub>C<\/sub> higher to get some phase margin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if the loop gain looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"281\" src=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049a.jpg\" alt=\"\" class=\"wp-image-61\" srcset=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049a.jpg 640w, https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049a-300x131.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">we can increase C<sub>C<\/sub> to shift the dominant pole in and make it look like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"363\" src=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049b.jpg\" alt=\"\" class=\"wp-image-63\" srcset=\"https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049b.jpg 640w, https:\/\/www.circuitdesign.info\/blog\/wp-content\/uploads\/2008\/06\/scan0049b-300x170.jpg 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Note that doing so does not affect the dc gain. However, it does affect the 3-dB loop bandwidth. This 3-dB bandwidth will likely end up being in the kHz or MHz range. Nonetheless, between this 3-dB bandwidth and the unity-gain frequency (likely 100&#8217;s of MHz to single GHz) there still is some (and likely considerable) loop gain.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Further optimization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A more optimum design might modify devices to improve loop bandwidth. This could be done by re-sizing M5 to increase the non-dominant pole which would allow the dominant pole (and 3-dB bandwidth) to be extended. Alternatively, device M5 and the capacitors could be optimized for supply isolation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The design procedure presented in this post is an excellent starting point for such optimizations.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Deciding on a bypass capacitance C<sub>R<\/sub><\/li><li>Sizing devices as necessary for the minimum I<sub>R<\/sub> case<\/li><li>Designing C<sub>C<\/sub> for stability<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">I welcome your comments and questions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Part 1, I discussed how the regulated supply reacts to a switching transient, and how the regulator bypass capacitance CR suppresses the transient. In this post, I will discuss how this same bypass capacitance affects\u00a0 the loop gain characteristics of the regulator. I will then present a procedure to design this regulator quickly, and [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-analog-pro"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/poCEy-13","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":2,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":1188,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions\/1188"}],"wp:attachment":[{"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.circuitdesign.info\/blog\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}