summaryrefslogtreecommitdiff
path: root/3630/CH16
diff options
context:
space:
mode:
Diffstat (limited to '3630/CH16')
-rw-r--r--3630/CH16/EX16.1/Ex16_1.sce28
-rw-r--r--3630/CH16/EX16.2/Ex16_2.sce6
-rw-r--r--3630/CH16/EX16.4/Ex16_4.sce10
-rw-r--r--3630/CH16/EX16.5/Ex16_5.sce10
-rw-r--r--3630/CH16/EX16.6/Ex16_6.sce14
5 files changed, 68 insertions, 0 deletions
diff --git a/3630/CH16/EX16.1/Ex16_1.sce b/3630/CH16/EX16.1/Ex16_1.sce
new file mode 100644
index 000000000..9e218b189
--- /dev/null
+++ b/3630/CH16/EX16.1/Ex16_1.sce
@@ -0,0 +1,28 @@
+clc;
+Vin=4.999;
+Vref=5;
+Vdiff1=Vin-Vref;
+AoL=150000;
+Vout1=AoL*Vdiff1;
+V=10;
+VoutL1=-V+1;
+//asume RL>10000 ohm
+Vin=5.001;
+Vref=5;
+Vdiff2=Vin-Vref;
+Vout2=AoL*Vdiff2;
+VoutL2=9;
+//again asume RL.1000
+disp('Noninverting input at +4.999', ," ");
+disp('mV',Vdiff1*1000,"Vdif1=");
+disp('V',Vout1,"Vout1=");
+disp('V',VoutL1,"VoutL1=");
+disp('Noninverting input at +5.001', ," ");
+disp('V',Vout2,"Vout2=");
+disp('V',VoutL2,"VoutL2=");
+disp('mV',Vdiff2*1000,"Vdif1=");
+
+
+
+
+
diff --git a/3630/CH16/EX16.2/Ex16_2.sce b/3630/CH16/EX16.2/Ex16_2.sce
new file mode 100644
index 000000000..564f6a6df
--- /dev/null
+++ b/3630/CH16/EX16.2/Ex16_2.sce
@@ -0,0 +1,6 @@
+clc;
+V=5;
+R2=30000;
+R1=120000;
+Vref=V*(R2/(R1+R2));
+disp('V',Vref,"Vref=");
diff --git a/3630/CH16/EX16.4/Ex16_4.sce b/3630/CH16/EX16.4/Ex16_4.sce
new file mode 100644
index 000000000..d56f655c4
--- /dev/null
+++ b/3630/CH16/EX16.4/Ex16_4.sce
@@ -0,0 +1,10 @@
+clc;
+v1=3;
+v2=6;
+v3=4;
+rf=10000;
+r1=10000;
+r2=10000;
+r3=10000;
+Vout=-rf*((v1/r1)+(v2/r2)+(v3/r3));
+disp('V',Vout,"Vout=");
diff --git a/3630/CH16/EX16.5/Ex16_5.sce b/3630/CH16/EX16.5/Ex16_5.sce
new file mode 100644
index 000000000..128603e5e
--- /dev/null
+++ b/3630/CH16/EX16.5/Ex16_5.sce
@@ -0,0 +1,10 @@
+clc;
+v1=10;
+v2=8;
+v3=7;
+rf=1000;
+r1=10000;
+r2=10000;
+r3=10000;
+Vout=-rf*((v1/r1)+(v2/r2)+(v3/r3));
+disp('V',Vout,"Vout=");
diff --git a/3630/CH16/EX16.6/Ex16_6.sce b/3630/CH16/EX16.6/Ex16_6.sce
new file mode 100644
index 000000000..1c01aa601
--- /dev/null
+++ b/3630/CH16/EX16.6/Ex16_6.sce
@@ -0,0 +1,14 @@
+clc;
+rf=1000;
+r1=1000;
+r2=2000;
+r3=4000;
+v1=[10 0 10];
+v2=[0 10 10];
+v3=[10 0 10];
+for i=1:3
+Vout(1,i)=(rf/r1)*v1(1,i)+(rf/r2)*v2(1,i)+(rf/r3)*v3(1,i);
+end
+disp('V',Vout(1,1),"Vout(1,1)=");
+disp('V',Vout(1,2),"Vout(1,2)=");
+disp('V',Vout(1,3),"Vout(1,3)=");