Package builder.resid.resid
Klasse OpAmp
java.lang.Object
builder.resid.resid.OpAmp
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 -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedOpAmp(double[][] opamp, int length, double Vddt) Opamp input -> output voltage conversion -
Methodenübersicht
-
Felddetails
-
EPSILON
private final double EPSILON- Siehe auch:
-
x
private double xCurrent 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
-
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 loadingvi- input- Gibt zurück:
- vo
-