* Z:\home\khalils\Downloads\files\data\raw_asc\AD5791.asc
* Generated by LTspice 26.0.1 for Windows.
* Connect a 0V to 1V signal to VDAC:\n- 0V corresposnds to code 0x00000 (zero scale code)\n- 1V corresponds to code 0xFFFFF (full scale code)
* Library below included based on ModelFile attribute of instance XU1 (C:\users\khalils\AppData\Local\LTspice\lib\sym\DAC\AD5791.asy)
* Library below included based on ModelFile attribute of instance XU2, XU3, XU4 (C:\users\khalils\AppData\Local\LTspice\lib\sym\OpAmps\AD8675.asy)
V2 VSS 0 -15
V3 N005 0 PWL(0 0 1m 1)
V5 N003 0 10
Rload VOUT 0 1Meg
V4 N007 0 -10
XU2 N003 N001 VDD VSS N002 AD8675 ;pnba In+)In-)V+)V-)OUT
XU3 N007 N009 VDD VSS N008 AD8675 ;pnba In+)In-)V+)V-)OUT
XU1 VDD VSS N006 N005 N002 N001 N008 N009 VOUT N004 0 AD5791 ;pnba VDD)VSS)VOUT)VDAC)VREFPF)VREFPS)VREFNF)VREFNS)RFB)INV)AGND
V1 VDD 0 15
XU4 N006 N004 VDD VSS VOUT AD8675 ;pnba In+)In-)V+)V-)OUT
C1 VOUT N004 10p
.tran 1m
.lib AD5791.sub
.lib AD8675.sub
.backanno
.end

* LTspice schematic (.asc):
Version 4
SHEET 1 880 680
WIRE 144 -288 -320 -288
WIRE -112 -256 -144 -256
WIRE -144 -224 -144 -256
WIRE -320 -208 -320 -288
WIRE -176 -208 -320 -208
WIRE 48 -192 -112 -192
WIRE -176 -176 -320 -176
WIRE -320 -160 -320 -176
WIRE -144 -128 -144 -160
WIRE -112 -128 -144 -128
WIRE -320 -64 -320 -80
WIRE 48 0 48 -192
WIRE 144 0 144 -288
WIRE 224 0 224 -32
WIRE 448 48 336 48
WIRE 704 48 448 48
WIRE 448 64 448 48
WIRE 624 96 592 96
WIRE 592 128 592 96
WIRE 448 144 448 128
WIRE 448 144 400 144
WIRE 560 144 448 144
WIRE 704 160 704 48
WIRE 704 160 624 160
WIRE 784 160 704 160
WIRE 0 176 -336 176
WIRE 560 176 416 176
WIRE -336 192 -336 176
WIRE 784 192 784 160
WIRE 592 224 592 192
WIRE 624 224 592 224
WIRE -336 288 -336 272
WIRE 784 304 784 272
WIRE 224 384 224 352
WIRE 288 384 288 352
WIRE -128 432 -160 432
WIRE -160 464 -160 432
WIRE -192 480 -336 480
WIRE -336 496 -336 480
WIRE 48 496 48 352
WIRE 48 496 -128 496
WIRE 496 496 496 480
WIRE 624 496 624 480
WIRE -192 512 -240 512
WIRE -160 560 -160 528
WIRE -128 560 -160 560
WIRE -336 592 -336 576
WIRE -240 592 -240 512
WIRE 144 592 144 352
WIRE 144 592 -240 592
WIRE 496 592 496 576
WIRE 624 592 624 576
SYMBOL Opamps\\AD8675 592 96 R0
SYMATTR InstName U4
SYMBOL voltage -320 -176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V5
SYMATTR Value 10
SYMBOL cap 432 64 R0
SYMATTR InstName C1
SYMATTR Value 10p
SYMBOL voltage -336 176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V3
SYMATTR Value PWL(0 0 1m 1)
SYMBOL voltage 624 480 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V2
SYMATTR Value -15
SYMBOL Opamps\\AD8675 -160 560 M180
SYMATTR InstName U3
SYMBOL AD5791 208 176 R0
SYMATTR InstName U1
SYMBOL res 768 176 R0
SYMATTR InstName Rload
SYMATTR Value 1Meg
SYMBOL voltage -336 480 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value -10
SYMBOL Opamps\\AD8675 -144 -256 R0
SYMATTR InstName U2
SYMBOL voltage 496 480 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V1
SYMATTR Value 15
FLAG 496 592 0
FLAG 624 592 0
FLAG -320 -64 0
FLAG -336 592 0
FLAG 496 480 VDD
FLAG 624 480 VSS
FLAG -336 288 0
FLAG 224 -32 VDD
FLAG 224 384 VSS
FLAG 288 384 0
FLAG -128 432 VSS
FLAG -128 560 VDD
FLAG -112 -128 VSS
FLAG -112 -256 VDD
FLAG 624 224 VSS
FLAG 624 96 VDD
FLAG 784 304 0
FLAG 784 160 VOUT
TEXT -368 632 Left 2 !.tran 1m
TEXT -632 88 Left 2 ;Connect a 0V to 1V signal to VDAC:\n- 0V corresposnds to code 0x00000 (zero scale code)\n- 1V corresponds to code 0xFFFFF (full scale code)