2022-10-22 10:45 Status: # Op Amp Compensation Biasing - resistors take DC current out of the opamp ![](attachments/Op%20Amp%20Compensation.png#invert) Capacitors - more popular for IC design but fiddly bias conditions. ![](attachments/Op%20Amp%20Compensation-1.png#invert) ![](attachments/Op%20Amp%20Compensation-2.png#invert) ![](attachments/Op%20Amp%20Compensation-3.png#invert) Beta = feedback factor which is determined by the raio of some passive components. Loop gain = -beta x A $\beta \leq 1$ ## Op Amp Two-Pole Model Simplest model to give realistic results. ![](attachments/Op%20Amp%20Compensation-4.png#invert) Simplification: Assume that 1+s/w1 is just s/w1 and thus replace the model at high frequencies with the GBP; wta. Bode plots of loop gain (ignored 1+ for w1 means the horizontal part has been ignored) ![](attachments/Op%20Amp%20Compensation-5.png#invert) Phase at unity loop gain frequency determines the stability. The margin to 0 degrees (or 180 degrees) is called the [phase margin](phase%20margin.md). ![](attachments/Op%20Amp%20Compensation-7.png#invert) ![](attachments/Op%20Amp%20Compensation-8.png#invert) Second pole should be higher than the unity loop gain frequency. ## [Two-stage op-amp circuit](Two-stage%20op-amp%20circuit.md) - Small Signal ![](attachments/Op%20Amp%20Compensation-9.png#invert) Dominant pole is the Miller capacitance of the compensation capacitor (since this is much larger than C1, the parasitic capacitance) times the output resistance of first stage. ![](attachments/Op%20Amp%20Compensation-12.png#invert) At high frequencies, the compensation capacitor's impedance goes to zero. Thus the second pole is determined by parasitic capacitances. ![](attachments/Op%20Amp%20Compensation-15.png#invert) If we do not put in the miller capacitance, we get a pole from the first stage which is (1/r01C1) and a pole from the second with is 1/(ro2 C2). ![](attachments/Op%20Amp%20Compensation-16.png#invert) The compensation capacitor also creates a zero - if there is no output voltage (0V) there is no current flowing in each load impedance. So all current flowing into the compensation capacitor flows into the current source. ![](attachments/Op%20Amp%20Compensation-18.png#invert) But this is RHP - drops the phase by 90 degrees (even if it flattens the amplitude). Unstable! ## [Lead Compensation](Lead%20Compensation.md) Better idea: put a resistance in series with the compensation capacitor: ![](attachments/Op%20Amp%20Compensation-19.png#invert) Typically you'd choose Rc = 1/gm7 (zero moves to infinite frequencies) and thus it isn't in the way any more. ## Choosing Rc and Cc - Use a simulator to choose the compensation capacitor large enough so that w2 > wta (amplifier GBP) - Move zero to infinity by choosing Rc - Use a simulator (AC simulations) as an aid - hand calcs can be too complex! - Check it holds for all process corners. [^1] --- # References [^1]: [vr-4602-wk05-sc03-opampcompensation](../../Spaces/University/ELEC4602%20–%20Microelectronics%20Design%20and%20Technology/Lectures/W5/vr-4602-wk05-sc03-opampcompensation.mp4)