* Z:\home\khalils\Downloads\files\data\raw_asc\ADAQ4380.asc
* Generated by LTspice 26.0.1 for Windows.
* Optical Encoder Signal Conditioning System
* For TIA Design, visit Photodiode Circuit Design Wizard
* TIA:\n Target Pulse Width: 10us\n Peak Voltage: 1.5V\n System Bandwidth: 350 kHz\n SNR: 87.5 dB
* Library below included based on ModelFile attribute of instance XU1, XU2, XU3, XU4 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8675.asy)
* Library below included based on ModelFile attribute of instance XU5 (C:\users\khalils\AppData\Local\LTspice\lib\sym\ADC\ADAQ4380.asy)
* Library below included based on ModelFile attribute of instance XU6, XU7 (C:\users\khalils\AppData\Local\LTspice\lib\sym\Comparators\LTC6702.asy)
;ac dec 201 1k 1g
;noise V(SDOA) V1 dec 201 1 1g
XU6 Sin+ Sin- +V 0 Sine LTC6702 ;pnba In+)In-)V+)GND)OUT
XU3 0 IN2+ +V -V Cos+ AD8675 ;pnba In+)In-)V+)V-)OUT
R8 IN2- 0 1G
C9 N001 N002 82p
R4 IN1- 0 1G
V3 CNV 0 PULSE(3.3 0 50n 0.1n 0.1n 200n {1/fs})
XU4 0 IN2- +V -V Cos- AD8675 ;pnba In+)In-)V+)V-)OUT
C4 IN1- 0 100p
C3 Sin- IN1- 12p
R3 Sin- IN1- 60.4k
C12 N008 N007 82p
C10 N004 N003 82p
C5 Cos+ IN2+ 12p
C11 N005 N006 82p
XU2 0 IN1- +V -V Sin- AD8675 ;pnba In+)In-)V+)V-)OUT
I4 IN2- 0 PULSE(0 50u 15u 10p 10p 10u 20u) AC 0.5 180
C6 IN2+ 0 100p
I3 IN2+ 0 PULSE(0 50u 5u 10p 10p 10u 20u) AC 0.5
R6 IN2+ 0 1G
C14 SDOB 0 10p
XU7 Cos+ Cos- +V 0 Cosine LTC6702 ;pnba In+)In-)V+)GND)OUT
C7 Cos- IN2- 12p
C8 IN2- 0 100p
C2 IN1+ 0 100p
R7 Cos- IN2- 60.4k
C1 Sin+ IN1+ 12p
R2 IN1+ 0 1G
XU1 0 IN1+ +V -V Sin+ AD8675 ;pnba In+)In-)V+)V-)OUT
C13 SDOA 0 10p
I2 IN1- 0 PULSE(0 50u 10u 10p 10p 10u 20u) AC 0.5 180
R5 Cos+ IN2+ 60.4k
V1 +V 0 5
XU5 N001 NC_01 Sin+ N002 N003 Sin- NC_02 N004 +V 0 +V 0 +V +V VCC VCC CNV SDOA SDOB N005 NC_03 Cos+ N006 N007 Cos- NC_04 N008 ADAQ4380 ;pnba OUTA-)IN2A+)IN1A+)SJA+)SJA-)IN1A-)IN2A-)OUTA+)VS+)VS-)REFIN)GND)IN_LDO)EN_LDO)OUT_LDO)VCC)CNV)SDOA)SDOB)OUTB-)IN2B+)IN1B+)SJB+)SJB-)IN1B-)IN2B-)OUTB+
V2 -V 0 -5
R1 Sin+ IN1+ 60.4k
I1 IN1+ 0 PULSE(0 50u 0 10p 10p 10u 20u) AC 0.5
.tran 0 120u 20u
.param fs 4e6
.lib AD8675.sub
.lib ADAQ4380.sub
.lib LTC3.lib
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 2992 960
WIRE 1456 -1088 1424 -1088
WIRE 1504 -1088 1456 -1088
WIRE 1744 -1088 1504 -1088
WIRE 2112 -1088 1744 -1088
WIRE 2272 -1088 2112 -1088
WIRE 496 -1024 432 -1024
WIRE 624 -1024 560 -1024
WIRE 1504 -1024 1504 -1088
WIRE 1744 -1024 1744 -1088
WIRE 2112 -1024 2112 -1088
WIRE 2272 -1024 2272 -1088
WIRE 432 -960 432 -1024
WIRE 480 -960 432 -960
WIRE 624 -960 624 -1024
WIRE 624 -960 560 -960
WIRE 160 -880 96 -880
WIRE 192 -880 160 -880
WIRE 304 -880 192 -880
WIRE 432 -880 432 -960
WIRE 432 -880 304 -880
WIRE 496 -880 432 -880
WIRE 2464 -880 2400 -880
WIRE 624 -864 624 -960
WIRE 624 -864 560 -864
WIRE 720 -864 624 -864
WIRE 192 -848 192 -880
WIRE 304 -848 304 -880
WIRE 496 -848 448 -848
WIRE 1088 -848 1024 -848
WIRE 96 -832 96 -880
WIRE 448 -816 448 -848
WIRE 944 -784 912 -784
WIRE 1088 -784 944 -784
WIRE 2464 -784 2464 -880
WIRE 2464 -784 2400 -784
WIRE 2512 -784 2464 -784
WIRE 2544 -784 2512 -784
WIRE 96 -736 96 -752
WIRE 192 -736 192 -784
WIRE 304 -736 304 -768
WIRE 1024 -736 1024 -848
WIRE 496 -672 432 -672
WIRE 624 -672 560 -672
WIRE 1024 -656 1024 -672
WIRE 1088 -656 1024 -656
WIRE 2448 -624 2400 -624
WIRE 2496 -624 2448 -624
WIRE 432 -608 432 -672
WIRE 480 -608 432 -608
WIRE 624 -608 624 -672
WIRE 624 -608 560 -608
WIRE 2496 -592 2496 -624
WIRE 1088 -576 1024 -576
WIRE 1024 -560 1024 -576
WIRE 160 -528 96 -528
WIRE 192 -528 160 -528
WIRE 304 -528 192 -528
WIRE 432 -528 432 -608
WIRE 432 -528 304 -528
WIRE 496 -528 432 -528
WIRE 624 -512 624 -608
WIRE 624 -512 560 -512
WIRE 720 -512 624 -512
WIRE 192 -496 192 -528
WIRE 304 -496 304 -528
WIRE 496 -496 448 -496
WIRE 2496 -496 2496 -528
WIRE 96 -480 96 -528
WIRE 448 -464 448 -496
WIRE 944 -448 912 -448
WIRE 1088 -448 944 -448
WIRE 96 -384 96 -400
WIRE 192 -384 192 -432
WIRE 304 -384 304 -416
WIRE 1024 -384 1024 -496
WIRE 1088 -384 1024 -384
WIRE 2448 -336 2400 -336
WIRE 2496 -336 2448 -336
WIRE 496 -304 432 -304
WIRE 624 -304 560 -304
WIRE 2496 -304 2496 -336
WIRE 1088 -288 1024 -288
WIRE 432 -240 432 -304
WIRE 480 -240 432 -240
WIRE 624 -240 624 -304
WIRE 624 -240 560 -240
WIRE 944 -224 912 -224
WIRE 1088 -224 944 -224
WIRE 2496 -192 2496 -224
WIRE 1024 -176 1024 -288
WIRE 160 -160 96 -160
WIRE 192 -160 160 -160
WIRE 304 -160 192 -160
WIRE 432 -160 432 -240
WIRE 432 -160 304 -160
WIRE 496 -160 432 -160
WIRE 624 -144 624 -240
WIRE 624 -144 560 -144
WIRE 720 -144 624 -144
WIRE 192 -128 192 -160
WIRE 304 -128 304 -160
WIRE 496 -128 448 -128
WIRE 96 -112 96 -160
WIRE 448 -96 448 -128
WIRE 1024 -96 1024 -112
WIRE 1088 -96 1024 -96
WIRE 2448 -64 2400 -64
WIRE 2496 -64 2448 -64
WIRE 2496 -32 2496 -64
WIRE 96 -16 96 -32
WIRE 192 -16 192 -64
WIRE 304 -16 304 -48
WIRE 1088 -16 1024 -16
WIRE 1024 0 1024 -16
WIRE 496 48 432 48
WIRE 624 48 560 48
WIRE 2496 64 2496 32
WIRE 432 112 432 48
WIRE 480 112 432 112
WIRE 624 112 624 48
WIRE 624 112 560 112
WIRE 944 112 912 112
WIRE 1088 112 944 112
WIRE 1024 176 1024 64
WIRE 1088 176 1024 176
WIRE 160 192 96 192
WIRE 192 192 160 192
WIRE 304 192 192 192
WIRE 432 192 432 112
WIRE 432 192 304 192
WIRE 496 192 432 192
WIRE 624 208 624 112
WIRE 624 208 560 208
WIRE 720 208 624 208
WIRE 192 224 192 192
WIRE 304 224 304 192
WIRE 496 224 448 224
WIRE 96 240 96 192
WIRE 448 256 448 224
WIRE 1504 320 1504 272
WIRE 1744 320 1744 272
WIRE 96 336 96 320
WIRE 192 336 192 288
WIRE 304 336 304 304
WIRE 288 512 288 496
WIRE 736 512 736 496
WIRE 1216 512 1216 480
WIRE 1424 512 1424 480
WIRE 288 528 288 512
WIRE 736 528 736 512
WIRE 192 560 160 560
WIRE 256 560 192 560
WIRE 640 560 608 560
WIRE 704 560 640 560
WIRE 400 576 336 576
WIRE 416 576 400 576
WIRE 848 576 784 576
WIRE 864 576 848 576
WIRE 192 592 160 592
WIRE 256 592 192 592
WIRE 640 592 608 592
WIRE 704 592 640 592
WIRE 1216 640 1216 592
WIRE 1424 640 1424 592
WIRE 288 656 288 624
WIRE 736 656 736 624
SYMBOL cap 176 -496 R0
SYMATTR InstName C4
SYMATTR Value 100p
SYMBOL res 576 -624 R90
WINDOW 0 19 113 VBottom 2
WINDOW 3 -10 -12 VTop 2
SYMATTR InstName R3
SYMATTR Value 60.4k
SYMBOL Opamps\\AD8675 528 144 R0
SYMATTR InstName U4
SYMBOL ADAQ4380 1776 -336 R0
SYMATTR InstName U5
SYMBOL Comparators\\LTC6702 736 576 R0
SYMATTR InstName U7
SYMBOL res 288 208 R0
SYMATTR InstName R8
SYMATTR Value 1G
SYMBOL cap 2480 -592 R0
SYMATTR InstName C13
SYMATTR Value 10p
SYMBOL res 576 96 R90
WINDOW 0 19 113 VBottom 2
WINDOW 3 -10 -12 VTop 2
SYMATTR InstName R7
SYMATTR Value 60.4k
SYMBOL current 96 -480 M0
WINDOW 0 35 12 Left 2
WINDOW 3 35 38 Left 2
WINDOW 123 35 73 Left 2
SYMATTR InstName I2
SYMATTR Value PULSE(0 50u 10u 10p 10p 10u 20u)
SYMATTR Value2 AC 0.5 180
SYMBOL res 576 -976 R90
WINDOW 0 19 113 VBottom 2
WINDOW 3 -10 -12 VTop 2
SYMATTR InstName R1
SYMATTR Value 60.4k
SYMBOL cap 560 -1040 R90
WINDOW 0 15 97 VBottom 2
WINDOW 3 -10 -20 VTop 2
SYMATTR InstName C1
SYMATTR Value 12p
SYMBOL cap 560 32 R90
WINDOW 0 15 97 VBottom 2
WINDOW 3 -10 -20 VTop 2
SYMATTR InstName C7
SYMATTR Value 12p
SYMBOL cap 176 -848 R0
SYMATTR InstName C2
SYMATTR Value 100p
SYMBOL cap 560 -688 R90
WINDOW 0 15 97 VBottom 2
WINDOW 3 -10 -20 VTop 2
SYMATTR InstName C3
SYMATTR Value 12p
SYMBOL Comparators\\LTC6702 288 576 R0
SYMATTR InstName U6
SYMBOL res 576 -256 R90
WINDOW 0 19 113 VBottom 2
WINDOW 3 -10 -12 VTop 2
SYMATTR InstName R5
SYMATTR Value 60.4k
SYMBOL cap 1040 -176 M0
SYMATTR InstName C11
SYMATTR Value 82p
SYMBOL voltage 2496 -320 R0
WINDOW 0 15 7 Left 2
WINDOW 3 24 96 Invisible 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value PULSE(3.3 0 50n 0.1n 0.1n 200n {1/fs})
SYMBOL cap 176 -128 R0
SYMATTR InstName C6
SYMATTR Value 100p
SYMBOL cap 176 224 R0
SYMATTR InstName C8
SYMATTR Value 100p
SYMBOL res 288 -144 R0
SYMATTR InstName R6
SYMATTR Value 1G
SYMBOL current 96 -112 M0
WINDOW 0 35 12 Left 2
WINDOW 3 42 45 Left 2
WINDOW 123 44 77 Left 2
SYMATTR InstName I3
SYMATTR Value PULSE(0 50u 5u 10p 10p 10u 20u)
SYMATTR Value2 AC 0.5
SYMBOL Opamps\\AD8675 528 -576 R0
SYMATTR InstName U2
SYMBOL res 288 -864 R0
SYMATTR InstName R2
SYMATTR Value 1G
SYMBOL voltage 1216 496 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value 5
SYMBOL res 288 -512 R0
SYMATTR InstName R4
SYMATTR Value 1G
SYMBOL cap 1040 -736 M0
SYMATTR InstName C9
SYMATTR Value 82p
SYMBOL voltage 1424 496 R0
WINDOW 123 24 146 Left 2
WINDOW 39 24 125 Left 2
SYMATTR InstName V2
SYMATTR Value -5
SYMBOL Opamps\\AD8675 528 -928 R0
SYMATTR InstName U1
SYMBOL current 96 -832 M0
WINDOW 0 35 12 Left 2
WINDOW 3 45 44 Left 2
WINDOW 123 43 79 Left 2
SYMATTR InstName I1
SYMATTR Value PULSE(0 50u 0 10p 10p 10u 20u)
SYMATTR Value2 AC 0.5
SYMBOL cap 1040 64 R180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C12
SYMATTR Value 82p
SYMBOL current 96 240 M0
WINDOW 0 35 12 Left 2
WINDOW 3 42 48 Left 2
WINDOW 123 40 81 Left 2
SYMATTR InstName I4
SYMATTR Value PULSE(0 50u 15u 10p 10p 10u 20u)
SYMATTR Value2 AC 0.5 180
SYMBOL cap 1040 -496 R180
WINDOW 0 24 56 Left 2
WINDOW 3 24 8 Left 2
SYMATTR InstName C10
SYMATTR Value 82p
SYMBOL cap 560 -320 R90
WINDOW 0 15 97 VBottom 2
WINDOW 3 -10 -20 VTop 2
SYMATTR InstName C5
SYMATTR Value 12p
SYMBOL cap 2480 -32 R0
SYMATTR InstName C14
SYMATTR Value 10p
SYMBOL Opamps\\AD8675 528 -208 R0
SYMATTR InstName U3
FLAG 96 -736 0
FLAG 720 -864 Sin+
FLAG 160 -880 IN1+
FLAG 528 -896 +V
FLAG 528 -832 -V
FLAG 1216 480 +V
FLAG 1216 640 0
FLAG 1424 480 -V
FLAG 1424 640 0
FLAG 448 -816 0
FLAG 192 -736 0
FLAG 304 -736 0
FLAG 96 -384 0
FLAG 720 -512 Sin-
FLAG 160 -528 IN1-
FLAG 528 -544 +V
FLAG 528 -480 -V
FLAG 448 -464 0
FLAG 192 -384 0
FLAG 304 -384 0
FLAG 96 -16 0
FLAG 720 -144 Cos+
FLAG 160 -160 IN2+
FLAG 528 -176 +V
FLAG 528 -112 -V
FLAG 448 -96 0
FLAG 192 -16 0
FLAG 304 -16 0
FLAG 96 336 0
FLAG 720 208 Cos-
FLAG 160 192 IN2-
FLAG 528 176 +V
FLAG 528 240 -V
FLAG 448 256 0
FLAG 192 336 0
FLAG 304 336 0
FLAG 2496 -192 0
FLAG 2496 -496 0
FLAG 2496 64 0
FLAG 2448 -64 SDOB
FLAG 2448 -624 SDOA
FLAG 2448 -336 CNV
FLAG 1504 320 0
FLAG 2512 -784 VCC
FLAG 1456 -1088 +V
FLAG 288 656 0
FLAG 192 592 Sin+
FLAG 192 560 Sin-
FLAG 288 512 +V
FLAG 400 576 Sine
FLAG 736 656 0
FLAG 640 592 Cos+
FLAG 640 560 Cos-
FLAG 736 512 +V
FLAG 848 576 Cosine
FLAG 1744 320 0
FLAG 944 -224 Cos+
FLAG 944 112 Cos-
FLAG 944 -448 Sin-
FLAG 944 -784 Sin+
TEXT 1816 448 Left 4 !.tran 0 120u 20u
TEXT 1816 504 Left 4 !;ac dec 201 1k 1g
TEXT 1816 560 Left 4 !;noise V(SDOA) V1 dec 201 1 1g
TEXT 144 -1568 Left 7 ;Optical Encoder Signal Conditioning System
TEXT 1456 -1384 Right 5 ;For TIA Design, visit Photodiode Circuit Design Wizard
TEXT 72 -1304 Left 4 ;TIA:\n      Target Pulse Width: 10us\n       Peak Voltage: 1.5V\n       System Bandwidth: 350 kHz\n       SNR: 87.5 dB
TEXT 2552 -264 Left 3 !.param fs 4e6