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. Dag Lem wrote equations and the first implementation. This
class is a rewrite without the use of fixed point integer mathematics and uses
the actual voltages instead of the normalized values.
- Autor:
- Antti Lankila
-
Feldübersicht
Felder -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungOpAmp(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 a guess to speed up the next iteration) -
Vddt
private final double Vddt -
vmin
private final double vmin -
vmax
private final double vmax -
opamp
-
out
final double[] out
-
-
Konstruktordetails
-
OpAmp
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
void reset() -
solve
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
-