blob: 0fac07d9f0d2c6898708a41bb7e0553dbe8e13a8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// license:GPL-2.0+
// copyright-holders:Couriersud
/*
* ne566.cpp
*
*/
//! [ne566_example]
#include "netlist/devices/net_lib.h"
NETLIST_START(oscillator)
SOLVER(Solver, 48000)
ANALOG_INPUT(I_V12, 12.0)
ANALOG_INPUT(I_VC, 11.9 - 0.2)
NE566_DIP(X)
RES(R1, 10000) // ~20 Hz.
CAP(C1, 1e-6)
NET_C(I_V12, R1.1, X.8)
NET_C(R1.2, X.6)
NET_C(I_VC, X.5)
NET_C(GND, X.1, C1.2)
NET_C(C1.1, X.7)
NETLIST_END()
//! [ne566_example]
|