summaryrefslogtreecommitdiff
path: root/Windows/spice/examples/p-to-n-examples/relax_osc_st.cir
diff options
context:
space:
mode:
authorrahulp132020-03-03 05:31:58 +0530
committerrahulp132020-03-03 05:31:58 +0530
commitdfc268e0863c913a1b8726cd54eea3b40caf7c67 (patch)
tree1cd82634684da5ae86b558d44756189e080545d4 /Windows/spice/examples/p-to-n-examples/relax_osc_st.cir
parentfd62c52150c7d1f81da8060b2f5db6b94d174ccf (diff)
downloadeSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.gz
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.tar.bz2
eSim-dfc268e0863c913a1b8726cd54eea3b40caf7c67.zip
upgrade ngspice to v31
Diffstat (limited to 'Windows/spice/examples/p-to-n-examples/relax_osc_st.cir')
-rw-r--r--Windows/spice/examples/p-to-n-examples/relax_osc_st.cir33
1 files changed, 33 insertions, 0 deletions
diff --git a/Windows/spice/examples/p-to-n-examples/relax_osc_st.cir b/Windows/spice/examples/p-to-n-examples/relax_osc_st.cir
new file mode 100644
index 00000000..e9fa11f7
--- /dev/null
+++ b/Windows/spice/examples/p-to-n-examples/relax_osc_st.cir
@@ -0,0 +1,33 @@
+Relaxation oscillator
+* ST AN4071, Fig. 26
+* www.st.com/resource/en/application_note/dm00050759.pdf
+
+.include Opamps_Comparators_ST.lib
+XICOMP2 VM1 VP1 VS1 VCCP VCCN TS302X
+* http://www.st.com/resource/en/cad_symbol_library/opamps_comparators_st.zip
+
+vdd vccp 0 5
+vss vccn 0 0
+
+R1 vs1 vm1 10k
+R2 vp1 0 10k
+R3 vp1 vccp 10k
+R4 vs1 vp1 10k
+
+C1 vm1 0 1n
+
+.tran 100n 500u uic
+
+.option rshunt=1e12
+
+.control
+save vs1 vm1 vp1
+run
+rusage time
+plot vs1 vm1 vp1
+linearize vs1
+fft vs1
+plot mag(vs1) xlimit 1k 100k
+.endc
+
+.end