summaryrefslogtreecommitdiffstatshomepage
path: root/nl_examples/7414.cpp
diff options
context:
space:
mode:
author couriersud <couriersud@gmx.org>2019-09-10 21:42:28 +0200
committer couriersud <couriersud@gmx.org>2019-09-12 01:02:01 +0200
commit9ea16d24e26218e505ef2a947ad89c99e19abc78 (patch)
treee7d9bf8c4ba464d87ac626915a4e3e6fceade023 /nl_examples/7414.cpp
parent0c02c8aa076d5be078d811ca5e3d6256ae5f6e7e (diff)
nl_examples: commit some long overdue changes. (nw)
Diffstat (limited to 'nl_examples/7414.cpp')
-rw-r--r--nl_examples/7414.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/nl_examples/7414.cpp b/nl_examples/7414.cpp
new file mode 100644
index 00000000000..0fcfde9a7f4
--- /dev/null
+++ b/nl_examples/7414.cpp
@@ -0,0 +1,33 @@
+// license:GPL-2.0+
+// copyright-holders:Couriersud
+/*
+ * 7414.c
+ *
+ */
+
+#include "netlist/devices/net_lib.h"
+
+NETLIST_START(7414_astable)
+
+ /*
+ * Simple oscillator with 74LS14
+ *
+ * ./nltool -f nl_examples/7414.cpp -l C37.1 -l U4A1.Q
+ *
+ */
+
+ /* Standard stuff */
+
+ SOLVER(Solver, 48000)
+ PARAM(Solver.ACCURACY, 1e-8)
+
+ TTL_74LS14_GATE(U4A1)
+ //TTL_7404_GATE(U4A1)
+ RES(R39, 2200)
+ CAP(C37, CAP_U(1))
+ NET_C(U4A1.A, R39.2, C37.1)
+ NET_C(GND, C37.2)
+ NET_C(GND, U4A1.GND)
+ NET_C(R39.1, U4A1.Q)
+
+NETLIST_END()