summaryrefslogtreecommitdiff
path: root/1757/CH6/EX6.4
diff options
context:
space:
mode:
Diffstat (limited to '1757/CH6/EX6.4')
-rwxr-xr-x1757/CH6/EX6.4/EX6_4.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/1757/CH6/EX6.4/EX6_4.sce b/1757/CH6/EX6.4/EX6_4.sce
new file mode 100755
index 000000000..d11c7c821
--- /dev/null
+++ b/1757/CH6/EX6.4/EX6_4.sce
@@ -0,0 +1,24 @@
+// Example6.4 // Design a op-amp circuit to provide the output voltage Vo = -2(3 V1 +4 V2 +2 V3)
+clc;
+clear;
+close;
+// Vo = -2(3 V1 + 4 V2+ 2 V3); equation 1
+// the output of the summer circuit is given as
+// Vo = -R2((Via/Ria)+(Vib/Rib)+(Vic/Ric)) equation 2
+
+// compare equation 1 and 2 of Vo we get
+
+// (R2/Ria)= 6 ;
+// (R2/Rbi=8 ;
+// (R2/Ric)=4 ;
+
+R2 = 120*10^3 ; // we choose then
+
+Ria = R2/6 ;
+disp('the value of resistance Ria is = '+string(Ria)+' ohm');
+
+Rib = R2/8 ;
+disp('the value of resistance Rib is = '+string(Rib)+' ohm');
+
+Ric = R2/4 ;
+disp('the value of resistance Ric is = '+string(Ric)+' ohm');