summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/bjt_eb.c
diff options
context:
space:
mode:
Diffstat (limited to 'nl_examples/bjt_eb.c')
-rw-r--r--nl_examples/bjt_eb.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/nl_examples/bjt_eb.c b/nl_examples/bjt_eb.c
deleted file mode 100644
index f21735c36ec..00000000000
--- a/nl_examples/bjt_eb.c
+++ /dev/null
@@ -1,44 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Couriersud
-/*
- * bjt.c
- *
- */
-
-
-#include "netlist/devices/net_lib.h"
-#include "netlist/analog/nld_twoterm.h"
-
-NETLIST_START(bjt)
- /* Standard stuff */
-
- CLOCK(clk, 10000) // 10000 Hz
- SOLVER(Solver, 48000)
- PARAM(Solver.ACCURACY, 1e-6)
- PARAM(Solver.RESCHED_LOOPS, 30)
- ANALOG_INPUT(V5, 5)
- ANALOG_INPUT(V3, 3.5)
-
- /* NPN - example */
-
- QBJT_EB(Q, "BC237B")
- RES(RB, 1000)
- RES(RC, 1000)
-
- NET_C(RC.1, V5)
- NET_C(RC.2, Q.C)
- NET_C(RB.1, clk)
- //NET_C(RB.1, V3)
- NET_C(RB.2, Q.B)
- NET_C(Q.E, GND)
-
- // put some load on Q.C
-
- RES(RCE, 150000)
- NET_C(RCE.1, Q.C)
- NET_C(RCE.2, GND)
-
- //LOG(logB, Q.B)
- //LOG(logC, Q.C)
-
-NETLIST_END()