Version 4.1 SHEET 1 5164 2480 WIRE 2464 576 2032 576 WIRE 2592 576 2464 576 WIRE 2720 576 2656 576 WIRE 2592 592 2576 592 WIRE 2576 608 2576 592 WIRE 2032 736 2032 576 WIRE 2464 736 2032 736 WIRE 2592 736 2464 736 WIRE 2592 752 2528 752 WIRE 2720 752 2656 752 WIRE 2592 768 2560 768 WIRE 2384 784 2336 784 WIRE 2528 784 2528 752 WIRE 2528 784 2384 784 WIRE 2560 784 2560 768 WIRE 2592 784 2560 784 WIRE 2560 800 2560 784 WIRE 2592 800 2560 800 WIRE 2560 816 2560 800 WIRE 2592 816 2560 816 WIRE 2608 816 2608 800 WIRE 2608 816 2592 816 WIRE 2592 832 2592 816 WIRE 2032 960 2032 736 WIRE 2464 960 2032 960 WIRE 2592 960 2464 960 WIRE 2592 976 2528 976 WIRE 2720 976 2656 976 WIRE 2032 992 2032 960 WIRE 2592 992 2560 992 WIRE 2336 1008 2336 784 WIRE 2384 1008 2336 1008 WIRE 2528 1008 2528 976 WIRE 2528 1008 2384 1008 WIRE 2560 1008 2560 992 WIRE 2592 1008 2560 1008 WIRE 2560 1024 2560 1008 WIRE 2592 1024 2560 1024 WIRE 2560 1040 2560 1024 WIRE 2592 1040 2560 1040 WIRE 2608 1040 2608 1024 WIRE 2608 1040 2592 1040 WIRE 2592 1056 2592 1040 WIRE 2032 1104 2032 1072 WIRE 2336 1216 2336 1008 WIRE 2336 1216 2032 1216 WIRE 2032 1264 2032 1216 WIRE 2032 1392 2032 1344 FLAG 2032 1104 0 FLAG 2032 1392 0 FLAG 2464 576 input_1 FLAG 2464 736 input_1 FLAG 2464 960 input_1 FLAG 2576 608 0 FLAG 2592 832 0 FLAG 2592 1056 0 FLAG 2384 784 input_2 FLAG 2384 1008 input_2 FLAG 2720 576 inverter_out FLAG 2720 752 AND_out FLAG 2720 976 OR_out SYMBOL voltage 2032 976 R0 WINDOW 3 -106 103 Left 2 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 1 0 10n 10n 5u 10u) SYMATTR InstName V1 SYMBOL voltage 2032 1248 R0 WINDOW 3 -106 104 Left 2 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 1 2.5u 10n 10n 5u 10u) SYMATTR InstName V2 SYMBOL Digital\\and 2624 704 R0 SYMATTR InstName A2 SYMBOL Digital\\inv 2592 512 R0 SYMATTR InstName A1 SYMBOL Digital\\or 2624 928 R0 SYMATTR InstName A3 TEXT 1000 592 Left 4 ;instructions TEXT 976 632 Left 2 ;click on run\nthen click on "input_1" to plot it.\nthen click on the plot window then on plot settings / add plot pane\nthen click on "input_2" to plot it.\nthen click on the plot window then on plot settings / add plot pane\nthen click on "inverter_out" to plot it.\nthen click on the plot window then on plot settings / add plot pane\nthen click on "AND_out" to plot it.\nthen click on the plot window then on plot settings / add plot pane\nthen click on "OR_out" to plot it. TEXT 920 992 Left 2 ;A peculiarity of LTspice is...\nfor AND gates and OR gates LTspice only does 5 input gates,\nso if you want a 2 input gate you just ground the other inputs, \nso although the AND gate symbol says a 5 input AND gate with 3 inputs grounded,\nthis is not the case its a 2 input AND gate.\n \nlike its name suggests the output of the inverter is just its input inverted.\nthe output of the AND gate is only high if both of its inputs are high.\nthe output of the the OR gate is high if either of its inputs is high.\nthis is all a bit obvious really. TEXT 936 1312 Left 2 !.tran 30u TEXT 1008 936 Left 4 ;description TEXT 2552 488 Left 4 ;Inverter TEXT 2552 688 Left 4 ;AND gate TEXT 2552 896 Left 4 ;OR gate