summaryrefslogtreecommitdiff
path: root/1514/CH16/EX16.9/16_9.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1514/CH16/EX16.9/16_9.sce
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 '1514/CH16/EX16.9/16_9.sce')
-rwxr-xr-x1514/CH16/EX16.9/16_9.sce40
1 files changed, 40 insertions, 0 deletions
diff --git a/1514/CH16/EX16.9/16_9.sce b/1514/CH16/EX16.9/16_9.sce
new file mode 100755
index 000000000..e778f2a89
--- /dev/null
+++ b/1514/CH16/EX16.9/16_9.sce
@@ -0,0 +1,40 @@
+//chapter 16
+//example 16.9
+//page 4
+clear all;
+clc ;
+//given
+Ilmax=100;//maximum op current
+Vs=20;//supply voltage
+//maximum op voltage 10-15V
+Vomin=10;Vomax=15;
+Vz1=Vomin/2;
+Vz2=Vomax/2;
+printf("\nSuitable device is 1N753,from datasheet")
+Vz=6.2;//nominal voltage
+Izr=20;
+Iz=Izr;
+Voavg=12.5;
+R1=1000*(Voavg-Vz)/Iz;
+printf("\nR1=%d ohm,standard value 330 kohm",R1);R1=330;
+//I3>Ibmax for opAmp,let
+I3min=1;
+//Vo=min,wiper at top of R4
+R3R4=Vz/I3min;
+VR3=Vz;
+R2=(Vomin-VR3)/I3min;
+printf("\nR2=%.1f kohm,standard value 3.3 kohm",R2);R2=3.3;
+//Vo=max,wiper at bottom of R4
+I3max=Vomax/(R2+R3R4);
+R3=Vz/I3max;
+R4=(R3R4)-R3;
+printf("\nR3=%.1f kohm",R3);
+printf("\nR4=%.1f kohm,standard value 3 kohm",R4);
+//Q1 specification
+P1=(Vs-Vomin)*(Ilmax+Iz+I3min);
+P1=P1/1000;
+printf("\nP1=%.2f W",P1)
+Vcemax=Vs;
+ICmax=Ilmax+Iz+I3min;
+printf("\nVcemax=%d V,ICmax=%d mA",Vcemax,ICmax)
+