Klasse OpAmp

java.lang.Object
builder.resid.resid.OpAmp

final class OpAmp extends Object
This class solves the opamp equation when loaded by different sets of resistors. Equations and first implementation were written by Dag Lem. This class is a rewrite without use of fixed point integer mathematics, and uses the actual voltages instead of the normalized values.
Autor:
Antti Lankila
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    private final double
     
    protected final Spline
     
    (Package privat) final double[]
     
    private final double
     
    private final double
     
    private final double
     
    private double
    Current root position (cached as guess to speed up next iteration)
  • Konstruktorübersicht

    Konstruktoren
    Modifizierer
    Konstruktor
    Beschreibung
    protected
    OpAmp(double[][] opamp, int length, double Vddt)
    Opamp input -> output voltage conversion
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected void
     
    protected double
    solve(double n, double vi)
    Solve the opamp equation for input vi in loading context n

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • EPSILON

      private final double EPSILON
      Siehe auch:
    • x

      private double x
      Current root position (cached as guess to speed up next iteration)
    • Vddt

      private final double Vddt
    • vmin

      private final double vmin
    • vmax

      private final double vmax
    • opamp

      protected final Spline opamp
    • out

      final double[] out
  • Konstruktordetails

    • OpAmp

      protected OpAmp(double[][] opamp, int length, double Vddt)
      Opamp input -> output voltage conversion
      Parameter:
      opamp - opamp mapping table as pairs of points (in -> out)
      Vddt - transistor dt parameter (in volts)
  • Methodendetails

    • reset

      protected void reset()
    • solve

      protected double solve(double n, double vi)
      Solve the opamp equation for input vi in loading context n
      Parameter:
      n - the ratio of input/output loading
      vi - input
      Gibt zurück:
      vo