* Z:\home\khalils\Downloads\files\data\raw_asc\033745688a27_TriangWave.asc
* Generated by LTspice 26.0.1 for Windows.
* Triangular/Square Wave Oscillator
* The oscillator employes a Shmitt trigger, made using an open-collector comparator (LT011),\nand an ideal integrator. The integrator and the trigger are closed in a a negative feedback loop.\nThe integrator's output voltage has the task to switch the trigger's output from one level to the other.
* Thigh=Tlow=2C*R3*R1/R2=41.6usec
* f=1/T=11.75kHz
* After you run the simulation, observe Vsqr and Vtriang (divide the screen in two different panes)
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Comparators\LT1011.asy)
* Library below included based on ModelFile attribute of instance XU2 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\LTC1050A.asy)
R1 N002 triang 10K
R3 N001 Sqr 100K tol=1 pwr=0.1
C triang N001 1nF
XU2 0 N001 +V -V triang LTC1050 ;pnba In+)In-)V+)V-)OUT
XU1 NC_01 N002 0 -V NC_02 NC_03 Sqr +V LT1011 ;pnba GND)In+)In-)V-)BAL)STROBE)OUT)V+
V1 +V 0 12V Rser=0
Rc +V Sqr 1k
V2 -V 0 -12V Rser=0
R2 Sqr N002 47K
.tran 0 5ms 4.5ms 20us
.lib LT1011.sub
.lib LTC.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE -320 224 -320 -48
WIRE -272 224 -320 224
WIRE -208 112 -208 96
WIRE -144 224 -192 224
WIRE -144 224 -144 128
WIRE -128 96 -208 96
WIRE -128 128 -144 128
WIRE -112 224 -144 224
WIRE -96 80 -96 64
WIRE -96 176 -96 160
WIRE -32 112 -48 112
WIRE 0 112 -32 112
WIRE 0 112 0 80
WIRE 0 224 -32 224
WIRE 0 224 0 112
WIRE 16 112 0 112
WIRE 128 112 96 112
WIRE 128 112 128 0
WIRE 128 160 128 144
WIRE 160 0 128 0
WIRE 160 112 128 112
WIRE 160 144 128 144
WIRE 272 -48 -320 -48
WIRE 272 0 224 0
WIRE 272 0 272 -48
WIRE 272 128 224 128
WIRE 272 128 272 0
SYMBOL res -16 -16 R0
SYMATTR InstName Rc
SYMATTR Value 1k
SYMBOL cap 224 -16 R90
WINDOW 0 0 32 VBottom 0
WINDOW 3 32 32 VTop 0
SYMATTR InstName C
SYMATTR Value 1nF
SYMBOL res 112 96 R90
WINDOW 0 94 54 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R3
SYMATTR Value 100K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL Comparators\\LT1011 -96 112 R0
WINDOW 3 -135 -58 Left 0
SYMATTR InstName U1
SYMBOL res -176 208 R90
WINDOW 0 58 109 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R1
SYMATTR Value 10K
SYMBOL res -16 208 R90
WINDOW 0 53 -4 VBottom 0
WINDOW 3 32 56 VTop 0
SYMATTR InstName R2
SYMATTR Value 47K
SYMBOL voltage -16 352 R0
WINDOW 123 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value -12V
SYMATTR SpiceLine Rser=0
SYMBOL Opamps\\LTC1050A 192 64 R0
WINDOW 3 -63 148 Left 0
SYMATTR InstName U2
SYMBOL voltage -160 352 R0
WINDOW 123 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 12V
SYMATTR SpiceLine Rser=0
FLAG -16 368 -V
FLAG -160 448 0
FLAG -16 448 0
FLAG -96 176 -V
FLAG 192 160 -V
FLAG 128 160 0
FLAG -208 112 0
FLAG 272 128 triang
FLAG -96 64 +V
FLAG -160 368 +V
FLAG 192 96 +V
FLAG -32 112 Sqr
FLAG 0 0 +V
TEXT 120 352 Left 0 !.tran 0 5ms 4.5ms 20us
TEXT -152 -336 Left 0 ;Triangular/Square Wave Oscillator
TEXT -856 -248 Left 0 ;The oscillator employes a Shmitt trigger, made using an open-collector comparator (LT011),\nand an ideal integrator. The integrator and the trigger are closed in a a negative feedback  loop.\nThe integrator's output voltage has the task to switch the trigger's output from one level to the other.
TEXT -848 -136 Left 0 ;Thigh=Tlow=2C*R3*R1/R2=41.6usec
TEXT -328 -136 Left 0 ;f=1/T=11.75kHz
TEXT -840 560 Left 0 ;After you run the simulation, observe Vsqr and Vtriang (divide the screen in two different panes)