* Z:\home\khalils\Downloads\files\data\raw_asc\LTC1040.asc
* Generated by LTspice 26.0.1 for Windows.
* Set point adjust
* Complete Heating/Cooling Automatic Thermostat
* Thermistor Calculations
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Comparators\LTC1040.asy)
V3 N003 0 PWL(0 0 1u 5)
R10 N002 N005 4.32K
RADJ1 N002 N004 {4.99K+5K*TADJ}
R3 COOL N007 20Meg
R8 N001 N006 20Meg
R2 N003 N009 10Meg
R5 N008 0 78
RADJ2 N004 N008 {6.81K+5K*(1-TADJ)}
R9 N006 0 82K
XU1 0 NC_01 HEAT N001 N004 N005 N006 0 0 0 N008 N007 N005 N004 COOL N009 N002 N003 LTC1040 ;pnba STROBE)ON/_OFF)_A+B)AOUT)A1+)A1-)A2+)A2-)GND)V-)B2-)B2+)B1-)B1+)+OUT1)OSC)VP-P)V+
B2 beta 0 V=1m*sqrt((B/(3*C))**3+(1K*V(alpha))**2/4)
RThermistor N005 0 R=exp((1K*V(beta)-.5K*V(alpha))**.3333 -(1K*V(beta)+.5K*V(alpha))**.3333)
VTemp Temp 0 PWL(0 26 200 28 400 26)
R4 N007 0 82K
C1 N009 0 .1
B1 alpha 0 V=1m*(A-1/(V(Temp)+273.15))/C
.tran 400
.param A=1.285e-3
.param B=2.362e-4
.param C=9.285e-8
.param TADJ=.662
.lib LTC1040.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 3120 3716
WIRE 2480 2176 1568 2176
WIRE 1696 2208 1456 2208
WIRE 2432 2208 1696 2208
WIRE 1456 2272 1456 2208
WIRE 1568 2272 1568 2176
WIRE 1696 2272 1696 2208
WIRE 2656 2272 2192 2272
WIRE 2736 2272 2656 2272
WIRE 2736 2288 2736 2272
WIRE 2192 2320 2192 2272
WIRE 2032 2384 1952 2384
WIRE 2432 2384 2432 2208
WIRE 2432 2384 2384 2384
WIRE 2736 2384 2736 2368
WIRE 1456 2416 1456 2352
WIRE 1904 2416 1456 2416
WIRE 2032 2416 1904 2416
WIRE 2480 2448 2480 2176
WIRE 2480 2448 2384 2448
WIRE 1568 2480 1568 2352
WIRE 2032 2480 1568 2480
WIRE 1568 2496 1568 2480
WIRE 2032 2512 2000 2512
WIRE 2656 2544 2656 2272
WIRE 1696 2576 1696 2352
WIRE 1952 2576 1952 2384
WIRE 1952 2576 1696 2576
WIRE 2032 2576 1952 2576
WIRE 2496 2576 2384 2576
WIRE 1568 2592 1568 2576
WIRE 1696 2592 1696 2576
WIRE 736 2608 736 2576
WIRE 1904 2608 1904 2416
WIRE 2032 2608 1904 2608
WIRE 2432 2640 2384 2640
WIRE 2496 2640 2432 2640
WIRE 2032 2672 1872 2672
WIRE 1696 2704 1696 2672
WIRE 2032 2704 1696 2704
WIRE 2656 2704 2656 2624
WIRE 2656 2704 2384 2704
WIRE 736 2720 736 2688
WIRE 2656 2720 2656 2704
WIRE 1696 2752 1696 2704
WIRE 1872 2752 1872 2672
WIRE 1984 2752 1872 2752
WIRE 1872 2784 1872 2752
WIRE 2656 2800 2656 2784
WIRE 864 2832 864 2816
WIRE 2096 2848 2096 2800
WIRE 2192 2848 2192 2800
WIRE 2288 2848 2288 2800
WIRE 736 2896 736 2832
WIRE 864 2928 864 2912
WIRE 1696 2928 1696 2832
WIRE 1872 2928 1872 2864
WIRE 1984 2944 1984 2752
WIRE 2176 2944 1984 2944
WIRE 2432 2944 2432 2640
WIRE 2432 2944 2256 2944
WIRE 1456 2976 1456 2416
WIRE 736 3040 736 2976
WIRE 1456 3088 1456 3056
RECTANGLE Normal 1376 3088 600 2440 2
SYMBOL res 1680 2576 R0
SYMATTR InstName RADJ2
SYMATTR Value {6.81K+5K*(1-TADJ)}
SYMBOL bv 864 2816 R0
SYMATTR InstName B1
SYMATTR Value V=1m*(A-1/(V(Temp)+273.15))/C
SYMBOL res 2272 2928 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 20Meg
SYMBOL res 1440 2256 R0
SYMATTR InstName R10
SYMATTR Value 4.32K
SYMBOL res 1552 2256 R0
SYMATTR InstName R8
SYMATTR Value 20Meg
SYMBOL res 1856 2768 R0
SYMATTR InstName R4
SYMATTR Value 82K
SYMBOL res 1680 2736 R0
SYMATTR InstName R5
SYMATTR Value 78
SYMBOL res 2640 2528 R0
SYMATTR InstName R2
SYMATTR Value 10Meg
SYMBOL voltage 736 2592 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName VTemp
SYMATTR Value PWL(0 26 200 28 400 26)
SYMBOL VOLTAGE 2736 2272 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V3
SYMATTR Value PWL(0 0 1u 5)
SYMBOL res 1552 2480 R0
SYMATTR InstName R9
SYMATTR Value 82K
SYMBOL res 1440 2960 R0
SYMATTR InstName RThermistor
SYMATTR Value R=exp((1K*V(beta)-.5K*V(alpha))**.3333 -(1K*V(beta)+.5K*V(alpha))**.3333)
SYMBOL res 1680 2256 R0
SYMATTR InstName RADJ1
SYMATTR Value {4.99K+5K*TADJ}
SYMBOL bv 736 2880 R0
SYMATTR InstName B2
SYMATTR Value V=1m*sqrt((B/(3*C))**3+(1K*V(alpha))**2/4)
SYMBOL LTC1040 2208 2560 R0
SYMATTR InstName U1
SYMBOL cap 2640 2720 R0
SYMATTR InstName C1
SYMATTR Value .1
FLAG 2736 2384 0
FLAG 2192 2848 0
FLAG 2288 2848 0
FLAG 2656 2800 0
FLAG 2096 2848 0
FLAG 2496 2576 HEAT
FLAG 2496 2640 COOL
FLAG 736 2720 0
FLAG 736 2576 Temp
FLAG 864 2928 0
FLAG 864 2816 alpha
FLAG 736 3040 0
FLAG 736 2832 beta
FLAG 1872 2928 0
FLAG 1696 2928 0
FLAG 2000 2512 0
FLAG 1568 2592 0
FLAG 1456 3088 0
TEXT 2616 2984 Left 2 !.tran 400
TEXT 1088 2592 Left 2 !.param A=1.285e-3\n.param B=2.362e-4\n.param C=9.285e-8
TEXT 2312 2120 Left 2 !.param TADJ=.662
TEXT 2320 2080 Left 2 ;Set point adjust
TEXT 1680 2128 Left 2 ;Complete Heating/Cooling Automatic Thermostat
TEXT 744 2464 Left 2 ;Thermistor Calculations