summaryrefslogtreecommitdiff
path: root/2609/CH10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2609/CH10
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2609/CH10')
-rwxr-xr-x2609/CH10/EX10.1/Ex10_1.sce16
-rwxr-xr-x2609/CH10/EX10.2/ex_10_2.sce12
-rwxr-xr-x2609/CH10/EX10.3/ex_10_3.sce13
-rwxr-xr-x2609/CH10/EX10.4/Ex10_4.sce19
-rwxr-xr-x2609/CH10/EX10.5/ex_10_5.sce18
5 files changed, 78 insertions, 0 deletions
diff --git a/2609/CH10/EX10.1/Ex10_1.sce b/2609/CH10/EX10.1/Ex10_1.sce
new file mode 100755
index 000000000..60c8cc65e
--- /dev/null
+++ b/2609/CH10/EX10.1/Ex10_1.sce
@@ -0,0 +1,16 @@
+////Ex 10.1
+clc;
+clear;
+close;
+format('v',5);
+t=0:0.01:5;//sec(Assumed)
+Vin=5*sin(2*%pi*t);//V
+VCC=15;//V
+R2=1;//kohm
+R1=6.8;//kohm
+VEE=-15;//V
+Vsat=13;//V
+Vref=R2*VCC/(R1+R2);//V
+disp(Vref,"Reference Voltage(V)")
+disp(Vsat,"If Vin>Vref , Vout (V):");
+disp(-Vsat,"If Vin<Vref , Vout (V):");
diff --git a/2609/CH10/EX10.2/ex_10_2.sce b/2609/CH10/EX10.2/ex_10_2.sce
new file mode 100755
index 000000000..e26023070
--- /dev/null
+++ b/2609/CH10/EX10.2/ex_10_2.sce
@@ -0,0 +1,12 @@
+////Ex 10.2
+clc;
+clear;
+close;
+format('v',9);
+Vsat=7;//V
+R1=68;//kohm
+R2=82;//kohm
+VUTP=R2*Vsat/(R1+R2);//V
+VLTP=R2*-Vsat/(R1+R2);//V
+disp(VUTP,"Upper trip point(V)");
+disp(VLTP,"Lower trip point(V)");
diff --git a/2609/CH10/EX10.3/ex_10_3.sce b/2609/CH10/EX10.3/ex_10_3.sce
new file mode 100755
index 000000000..9bcbbff77
--- /dev/null
+++ b/2609/CH10/EX10.3/ex_10_3.sce
@@ -0,0 +1,13 @@
+////Ex 10.3
+clc;
+clear;
+close;
+format('v',9);
+//Vin=5*sin(omega*t)
+Vm=5;//V
+Vsat=7;//V
+R1=68;//kohm
+R2=82;//kohm
+VUTP=R2*Vsat/(R1+R2);//V
+fi=asind(VUTP/Vm);//degree
+disp(fi,"Phase shift(degree)");
diff --git a/2609/CH10/EX10.4/Ex10_4.sce b/2609/CH10/EX10.4/Ex10_4.sce
new file mode 100755
index 000000000..b9acb43a5
--- /dev/null
+++ b/2609/CH10/EX10.4/Ex10_4.sce
@@ -0,0 +1,19 @@
+////Ex 10.4
+clc;
+clear;
+close;
+format('v',5);
+VZ1=4.7;//V
+VZ2=4.7;//V
+R1=68;//kohm
+R2=15;//kohm
+Vout=VZ1+0.7;//V(As one zener diode is always forward biased)
+VR1=Vout;//V
+IR1=VR1/R1*1000;//micro A
+IR2=IR1;//micro A
+VR2=IR2*10^-3*R2;//V
+Vout=VR1+VR2;//V
+VUTP=(R2/(R1+R2))*Vout;//V
+VLTP=(R2/(R1+R2))*(-Vout);//V
+disp(VUTP,"VUTP(V)");
+disp(VLTP,"VLTP(V)");
diff --git a/2609/CH10/EX10.5/ex_10_5.sce b/2609/CH10/EX10.5/ex_10_5.sce
new file mode 100755
index 000000000..7184f1e7b
--- /dev/null
+++ b/2609/CH10/EX10.5/ex_10_5.sce
@@ -0,0 +1,18 @@
+////Ex 10.5
+clc;
+clear;
+close;
+format('v',9);
+Vsat=12.5;//V
+Vref=-12.5;//V
+R1=80;//kohm
+R2=20;//kohm
+Beta=R2/(R1+R2);//unitless
+UTP=Beta*Vsat+(1-Beta)*Vref;//V
+LTP=-Beta*Vsat+(1-Beta)*Vref;//V
+VH=UTP-LTP;//V
+R3=R1*R2/(R1+R2);//kohm
+disp(UTP,"UTP(V)");
+disp(LTP,"LTP(V)");
+disp(VH,"Hysteresis Voltahe, VH(V)");
+disp(R3,"Use R3(kohm)");