summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/LM3900_test.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-04-12 00:44:12 +0200
committer couriersud <couriersud@gmx.org>2019-04-12 00:44:23 +0200
commit1c191433eecceba1bd4f4137daeefcbeef894d89 (patch)
tree420fca6bacd8e6df42e7c82e8f361a9c5054d14c /nl_examples/LM3900_test.cpp
parenta2316d063aba7fc8b120eec92667f12576c4a41c (diff)
netlist: improved and fast LM3900 model.
LM3900 model 3 only has half the number of BJTs compared to model 1 but delivers comparable results for Money Money. Model 3 follows the datasheet. I left code for Model 0 and 2 in for educational reasons.
Diffstat (limited to 'nl_examples/LM3900_test.cpp')
-rw-r--r--nl_examples/LM3900_test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/nl_examples/LM3900_test.cpp b/nl_examples/LM3900_test.cpp
index 6becaf70583..0498b4d2f0b 100644
--- a/nl_examples/LM3900_test.cpp
+++ b/nl_examples/LM3900_test.cpp
@@ -54,7 +54,7 @@ NETLIST_START(main)
* Fixed Frequency:
* PARAM(vs.FUNC, "1.001 * sin(6.28 * 100 * T)")
*/
- PARAM(vs.R, 50)
+ PARAM(vs.R, 0.1)
ALIAS(clk, vs.1)
NET_C(vs.2, GND)
ANALOG_INPUT(V9, 9)
@@ -82,13 +82,13 @@ NETLIST_START(main)
NET_C(op.MINUS, R2.2)
NET_C(op.MINUS, R1.2)
- CAP(C, 0.1e-6)
+ CAP(C, 10e-6)
NET_C(clk, C.1)
NET_C(C.2, R1.1)
NET_C(op.OUT, R2.1)
- CAP(CL, 1.0e-6)
+ CAP(CL, 10.0e-6)
RES(RL, 2000)
NET_C(RL.2, GND)
NET_C(RL.1, CL.2)