diff options
Diffstat (limited to '863/CH2')
30 files changed, 332 insertions, 0 deletions
diff --git a/863/CH2/EX2.10/Ex2_10.sce b/863/CH2/EX2.10/Ex2_10.sce new file mode 100644 index 000000000..f5e485bd7 --- /dev/null +++ b/863/CH2/EX2.10/Ex2_10.sce @@ -0,0 +1,16 @@ +//Caption:Calculate output voltage for (a)10V and 1ms Pw (b)10V and 2ms PW (c)20V and 1ms PW
+//Ex2.10
+clc;
+clear;
+close;
+e1=10//Voltage applied(in volts)
+e0=0//Voltage at t=0sec(in volts)
+t1=1//PW(in ms)
+t2=2//PW(in ms)
+e2=20//Input voltage(in volts)
+r=10//Resistance(in kilo ohm)
+c=20//Capacitance(in micro farad)
+eo1=(e1-((e1-e0)*(2.718)^(-t1/(r*c))))*1000
+eo2=(e1-((e1-e0)*(2.718)^(-t2/(r*c))))*1000
+eo3=(e2-((e2-e0)*(2.718)^(-t1/(r*c))))*1000
+disp(eo3,eo2,eo1,'Output voltage for(a)(in mv),(b)(in mv),(c)(in mv)=')
\ No newline at end of file diff --git a/863/CH2/EX2.10/Ex2_10.txt b/863/CH2/EX2.10/Ex2_10.txt new file mode 100644 index 000000000..f5e485bd7 --- /dev/null +++ b/863/CH2/EX2.10/Ex2_10.txt @@ -0,0 +1,16 @@ +//Caption:Calculate output voltage for (a)10V and 1ms Pw (b)10V and 2ms PW (c)20V and 1ms PW
+//Ex2.10
+clc;
+clear;
+close;
+e1=10//Voltage applied(in volts)
+e0=0//Voltage at t=0sec(in volts)
+t1=1//PW(in ms)
+t2=2//PW(in ms)
+e2=20//Input voltage(in volts)
+r=10//Resistance(in kilo ohm)
+c=20//Capacitance(in micro farad)
+eo1=(e1-((e1-e0)*(2.718)^(-t1/(r*c))))*1000
+eo2=(e1-((e1-e0)*(2.718)^(-t2/(r*c))))*1000
+eo3=(e2-((e2-e0)*(2.718)^(-t1/(r*c))))*1000
+disp(eo3,eo2,eo1,'Output voltage for(a)(in mv),(b)(in mv),(c)(in mv)=')
\ No newline at end of file diff --git a/863/CH2/EX2.10/Result2_10.txt b/863/CH2/EX2.10/Result2_10.txt new file mode 100644 index 000000000..7108796ca --- /dev/null +++ b/863/CH2/EX2.10/Result2_10.txt @@ -0,0 +1,8 @@ +Output voltage for(a)(in mv),(b)(in mv),(c)(in mv)=
+
+ 49.87005
+
+ 99.491397
+
+ 99.740099
+
\ No newline at end of file diff --git a/863/CH2/EX2.11/Ex2_11.sce b/863/CH2/EX2.11/Ex2_11.sce new file mode 100644 index 000000000..7818798be --- /dev/null +++ b/863/CH2/EX2.11/Ex2_11.sce @@ -0,0 +1,16 @@ +//Caption:Calculate output voltage for (a)10V and (b)20V
+//Ex2.11
+clc;
+clear;
+close;
+E1=10//Input voltage(in volts)
+E2=20//Input voltage(in volts)
+c=1//Capacitance(in micro farad)
+r=1//Resistance(in kilo ohm)
+t=100//Pulse width(in ms)
+i1=(c*E1*10^(-6))/(t*10^(-3))
+eo1=i1*r*1000
+disp(eo1,'Output voltage for (a)(in volts)=')
+i2=(c*E2*10^(-6)/(t*10^(-3)))
+eo2=i2*r*1000
+disp(eo2,'Output voltage for (b)(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.11/Ex2_11.txt b/863/CH2/EX2.11/Ex2_11.txt new file mode 100644 index 000000000..7818798be --- /dev/null +++ b/863/CH2/EX2.11/Ex2_11.txt @@ -0,0 +1,16 @@ +//Caption:Calculate output voltage for (a)10V and (b)20V
+//Ex2.11
+clc;
+clear;
+close;
+E1=10//Input voltage(in volts)
+E2=20//Input voltage(in volts)
+c=1//Capacitance(in micro farad)
+r=1//Resistance(in kilo ohm)
+t=100//Pulse width(in ms)
+i1=(c*E1*10^(-6))/(t*10^(-3))
+eo1=i1*r*1000
+disp(eo1,'Output voltage for (a)(in volts)=')
+i2=(c*E2*10^(-6)/(t*10^(-3)))
+eo2=i2*r*1000
+disp(eo2,'Output voltage for (b)(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.11/Result2_11.txt b/863/CH2/EX2.11/Result2_11.txt new file mode 100644 index 000000000..bcd5b862e --- /dev/null +++ b/863/CH2/EX2.11/Result2_11.txt @@ -0,0 +1,8 @@ +Output voltage for (a)(in volts)=
+
+ 0.1
+
+ Output voltage for (b)(in volts)=
+
+ 0.2
+
\ No newline at end of file diff --git a/863/CH2/EX2.12/Ex2_12.sce b/863/CH2/EX2.12/Ex2_12.sce new file mode 100644 index 000000000..1150f0aae --- /dev/null +++ b/863/CH2/EX2.12/Ex2_12.sce @@ -0,0 +1,15 @@ +//Caption:Calculate amplitude of output waveform for (a)Rise time (b)Fall time
+//Ex2.12
+clc;
+clear;
+close;
+r=1//Resistance(in kilo ohm)
+c=100//Capacitance(in pf)
+tr=1//Rise time(in micro sec)
+tf=3//Fall time(in micro sec)
+e1=8//Change in voltage for rise time(in volts)
+e2=-8//Change in voltage for fall time(in volts)
+eo1=r*c*0.001*e1/tr
+disp(eo1,'Amplitude of output waveform for (a)Rise time(in volts)=')
+eo2=r*c*0.001*e2/tf
+disp(eo2,'Amplitude of output waveform for (b)Fall time(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.12/Ex2_12.txt b/863/CH2/EX2.12/Ex2_12.txt new file mode 100644 index 000000000..1150f0aae --- /dev/null +++ b/863/CH2/EX2.12/Ex2_12.txt @@ -0,0 +1,15 @@ +//Caption:Calculate amplitude of output waveform for (a)Rise time (b)Fall time
+//Ex2.12
+clc;
+clear;
+close;
+r=1//Resistance(in kilo ohm)
+c=100//Capacitance(in pf)
+tr=1//Rise time(in micro sec)
+tf=3//Fall time(in micro sec)
+e1=8//Change in voltage for rise time(in volts)
+e2=-8//Change in voltage for fall time(in volts)
+eo1=r*c*0.001*e1/tr
+disp(eo1,'Amplitude of output waveform for (a)Rise time(in volts)=')
+eo2=r*c*0.001*e2/tf
+disp(eo2,'Amplitude of output waveform for (b)Fall time(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.12/Result2_12.txt b/863/CH2/EX2.12/Result2_12.txt new file mode 100644 index 000000000..71233fcd8 --- /dev/null +++ b/863/CH2/EX2.12/Result2_12.txt @@ -0,0 +1,8 @@ + Amplitude of output waveform for (a)Rise time(in volts)=
+
+ 0.8
+
+ Amplitude of output waveform for (b)Fall time(in volts)=
+
+ - 0.2666667
+
\ No newline at end of file diff --git a/863/CH2/EX2.3/Ex2_3.sce b/863/CH2/EX2.3/Ex2_3.sce new file mode 100644 index 000000000..1ea9072ce --- /dev/null +++ b/863/CH2/EX2.3/Ex2_3.sce @@ -0,0 +1,12 @@ +//Caption:Calculate voltage after 8ms
+//Ex:2.3
+clc;
+clear;
+close;
+c=1//Capacitance of capacitor(in micro farad)
+vs=6//Source voltage(in volts)
+r=10//Resistor(in kilo ohm)
+vi=-3//Initial voltage(in volts)
+t=8//Time (in milli sec)
+e=vs-((vs-vi)*2.718^(-t/(r*c)))
+disp(e,'Voltage after 8ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.3/Ex2_3.txt b/863/CH2/EX2.3/Ex2_3.txt new file mode 100644 index 000000000..1ea9072ce --- /dev/null +++ b/863/CH2/EX2.3/Ex2_3.txt @@ -0,0 +1,12 @@ +//Caption:Calculate voltage after 8ms
+//Ex:2.3
+clc;
+clear;
+close;
+c=1//Capacitance of capacitor(in micro farad)
+vs=6//Source voltage(in volts)
+r=10//Resistor(in kilo ohm)
+vi=-3//Initial voltage(in volts)
+t=8//Time (in milli sec)
+e=vs-((vs-vi)*2.718^(-t/(r*c)))
+disp(e,'Voltage after 8ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.3/Result2_3.txt b/863/CH2/EX2.3/Result2_3.txt new file mode 100644 index 000000000..6ff6e1017 --- /dev/null +++ b/863/CH2/EX2.3/Result2_3.txt @@ -0,0 +1,3 @@ +Voltage after 8ms(in volts)=
+
+ 1.9557039
\ No newline at end of file diff --git a/863/CH2/EX2.4/Ex2_4.sce b/863/CH2/EX2.4/Ex2_4.sce new file mode 100644 index 000000000..4129dae63 --- /dev/null +++ b/863/CH2/EX2.4/Ex2_4.sce @@ -0,0 +1,18 @@ +//Caption:Determine (a)Ec at 1.5ms (b)Ec at 6ms
+//Ex2.4
+clc;
+clear;
+close;
+r1=1//Resistor(in kilo ohm)
+c1=1//Capacitance(in micro farad)
+e1=10//Voltage(in volts)
+r2=20//Resistor(in kilo ohm)
+c2=0.1//Capacitance(in micro farad)
+e2=12//Voltage(in volts)
+t1=r1*c1*0.78
+e=e1*1
+ec1=e*t1
+t2=r2*c2*0.025
+E=e2*1
+ec2=E*t2
+disp(ec2,ec1,'(a)Ec at 1.5ms(in volts) and (b)Ec at 6ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.4/Ex2_4.txt b/863/CH2/EX2.4/Ex2_4.txt new file mode 100644 index 000000000..4129dae63 --- /dev/null +++ b/863/CH2/EX2.4/Ex2_4.txt @@ -0,0 +1,18 @@ +//Caption:Determine (a)Ec at 1.5ms (b)Ec at 6ms
+//Ex2.4
+clc;
+clear;
+close;
+r1=1//Resistor(in kilo ohm)
+c1=1//Capacitance(in micro farad)
+e1=10//Voltage(in volts)
+r2=20//Resistor(in kilo ohm)
+c2=0.1//Capacitance(in micro farad)
+e2=12//Voltage(in volts)
+t1=r1*c1*0.78
+e=e1*1
+ec1=e*t1
+t2=r2*c2*0.025
+E=e2*1
+ec2=E*t2
+disp(ec2,ec1,'(a)Ec at 1.5ms(in volts) and (b)Ec at 6ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.4/Result2_4.txt b/863/CH2/EX2.4/Result2_4.txt new file mode 100644 index 000000000..94b592ee3 --- /dev/null +++ b/863/CH2/EX2.4/Result2_4.txt @@ -0,0 +1,6 @@ + (a)Ec at 1.5ms(in volts) and (b)Ec at 6ms(in volts)=
+
+ 7.8
+
+ 0.6
+
\ No newline at end of file diff --git a/863/CH2/EX2.5/Ex2_5.sce b/863/CH2/EX2.5/Ex2_5.sce new file mode 100644 index 000000000..521d918e4 --- /dev/null +++ b/863/CH2/EX2.5/Ex2_5.sce @@ -0,0 +1,12 @@ +//Caption:Calculate Rise time,time for capacitor to charge to required amount and time required for complete charging
+//Ex2.5
+clc;
+clear;
+close;
+V=5//Voltage source(in volts)
+r=39//Resistor(in kilo ohm)
+c=500//Capacitance of capacitor(in pf)
+tr=2.2*r*c*10^(-3)
+t=r*c*10^(-3)
+tc=5*r*c*10^(-3)
+disp(tc,t,tr,'Rise time,time for 63.2% charging and time required for complete charging(in micro sec)=')
\ No newline at end of file diff --git a/863/CH2/EX2.5/Ex2_5.txt b/863/CH2/EX2.5/Ex2_5.txt new file mode 100644 index 000000000..521d918e4 --- /dev/null +++ b/863/CH2/EX2.5/Ex2_5.txt @@ -0,0 +1,12 @@ +//Caption:Calculate Rise time,time for capacitor to charge to required amount and time required for complete charging
+//Ex2.5
+clc;
+clear;
+close;
+V=5//Voltage source(in volts)
+r=39//Resistor(in kilo ohm)
+c=500//Capacitance of capacitor(in pf)
+tr=2.2*r*c*10^(-3)
+t=r*c*10^(-3)
+tc=5*r*c*10^(-3)
+disp(tc,t,tr,'Rise time,time for 63.2% charging and time required for complete charging(in micro sec)=')
\ No newline at end of file diff --git a/863/CH2/EX2.5/Result2_5.txt b/863/CH2/EX2.5/Result2_5.txt new file mode 100644 index 000000000..398cf308d --- /dev/null +++ b/863/CH2/EX2.5/Result2_5.txt @@ -0,0 +1,8 @@ +Rise time,time for 63.2% charging and time required for complete charging(in micro sec)=
+
+ 42.9
+
+ 19.5
+
+ 97.5
+
\ No newline at end of file diff --git a/863/CH2/EX2.6/Ex2_6.sce b/863/CH2/EX2.6/Ex2_6.sce new file mode 100644 index 000000000..f5895eb04 --- /dev/null +++ b/863/CH2/EX2.6/Ex2_6.sce @@ -0,0 +1,11 @@ +//Caption:Calculate minimum square wave frequency
+//Ex2.6
+clc;
+clear;
+close;
+C=1//Coupling capacitor(in micro farad)
+R=1//Input resistance(in Mega ohm)
+t=0.01//Tilt
+PW=t*R*C
+f=1/(2*PW)
+disp(f,'Frequency required(in hertz)=')
\ No newline at end of file diff --git a/863/CH2/EX2.6/Ex2_6.txt b/863/CH2/EX2.6/Ex2_6.txt new file mode 100644 index 000000000..f5895eb04 --- /dev/null +++ b/863/CH2/EX2.6/Ex2_6.txt @@ -0,0 +1,11 @@ +//Caption:Calculate minimum square wave frequency
+//Ex2.6
+clc;
+clear;
+close;
+C=1//Coupling capacitor(in micro farad)
+R=1//Input resistance(in Mega ohm)
+t=0.01//Tilt
+PW=t*R*C
+f=1/(2*PW)
+disp(f,'Frequency required(in hertz)=')
\ No newline at end of file diff --git a/863/CH2/EX2.6/Result2_6.txt b/863/CH2/EX2.6/Result2_6.txt new file mode 100644 index 000000000..d69045770 --- /dev/null +++ b/863/CH2/EX2.6/Result2_6.txt @@ -0,0 +1,3 @@ +Frequency required(in hertz)=
+
+ 50.
\ No newline at end of file diff --git a/863/CH2/EX2.7/Ex2_7.sce b/863/CH2/EX2.7/Ex2_7.sce new file mode 100644 index 000000000..5d9635246 --- /dev/null +++ b/863/CH2/EX2.7/Ex2_7.sce @@ -0,0 +1,9 @@ +//Caption:Determine fastest rise time
+//Ex2.7
+clc;
+clear;
+close;
+r=600//Output resistance(in ohms)
+c=30//Input capacitance(in pf)
+tr=2.2*r*c*10^(-3)
+disp(tr,'Fastest rise time(in ns)=')
\ No newline at end of file diff --git a/863/CH2/EX2.7/Ex2_7.txt b/863/CH2/EX2.7/Ex2_7.txt new file mode 100644 index 000000000..5d9635246 --- /dev/null +++ b/863/CH2/EX2.7/Ex2_7.txt @@ -0,0 +1,9 @@ +//Caption:Determine fastest rise time
+//Ex2.7
+clc;
+clear;
+close;
+r=600//Output resistance(in ohms)
+c=30//Input capacitance(in pf)
+tr=2.2*r*c*10^(-3)
+disp(tr,'Fastest rise time(in ns)=')
\ No newline at end of file diff --git a/863/CH2/EX2.7/Result2_7.txt b/863/CH2/EX2.7/Result2_7.txt new file mode 100644 index 000000000..bc4ec653f --- /dev/null +++ b/863/CH2/EX2.7/Result2_7.txt @@ -0,0 +1,4 @@ +Fastest rise time(in ns)=
+
+ 39.6
+
\ No newline at end of file diff --git a/863/CH2/EX2.8/Ex2_8.sce b/863/CH2/EX2.8/Ex2_8.sce new file mode 100644 index 000000000..04f545276 --- /dev/null +++ b/863/CH2/EX2.8/Ex2_8.sce @@ -0,0 +1,16 @@ +//Caption:Calculate voltage at 14 ms
+//Ex2.8
+clc;
+clear;
+close;
+Eo=0//Voltage at t=0sec(in volt)
+E=20//Peak voltage(in volts)
+r=3.3//Resistance(in kilo ohm)
+c=1//Capacitance(in micro farad)
+t1=4//Time(in ms)
+t2=2//Time(in ms)
+e1=E-((E-Eo)*(2.718)^(-t1/(r*c)))
+e2=Eo-((Eo-e1)*(2.718)^(-t1/(r*c)))
+e3=E-((E-e2)*(2.718)^(-t1/(r*c)))
+e3=Eo-((Eo-e3)*(2.718)^(-t2/(r*c)))
+disp(e3,'Voltage at 14ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.8/Ex2_8.txt b/863/CH2/EX2.8/Ex2_8.txt new file mode 100644 index 000000000..04f545276 --- /dev/null +++ b/863/CH2/EX2.8/Ex2_8.txt @@ -0,0 +1,16 @@ +//Caption:Calculate voltage at 14 ms
+//Ex2.8
+clc;
+clear;
+close;
+Eo=0//Voltage at t=0sec(in volt)
+E=20//Peak voltage(in volts)
+r=3.3//Resistance(in kilo ohm)
+c=1//Capacitance(in micro farad)
+t1=4//Time(in ms)
+t2=2//Time(in ms)
+e1=E-((E-Eo)*(2.718)^(-t1/(r*c)))
+e2=Eo-((Eo-e1)*(2.718)^(-t1/(r*c)))
+e3=E-((E-e2)*(2.718)^(-t1/(r*c)))
+e3=Eo-((Eo-e3)*(2.718)^(-t2/(r*c)))
+disp(e3,'Voltage at 14ms(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.8/Result2_8.txt b/863/CH2/EX2.8/Result2_8.txt new file mode 100644 index 000000000..3612d0387 --- /dev/null +++ b/863/CH2/EX2.8/Result2_8.txt @@ -0,0 +1,4 @@ + Voltage at 14ms(in volts)=
+
+ 8.3423155
+
\ No newline at end of file diff --git a/863/CH2/EX2.9/Ex2_9.sce b/863/CH2/EX2.9/Ex2_9.sce new file mode 100644 index 000000000..44d5c973b --- /dev/null +++ b/863/CH2/EX2.9/Ex2_9.sce @@ -0,0 +1,12 @@ +//Caption:Determine max and min voltage at which capacitor voltage will settle
+//Ex2.9
+clc;
+clear;
+close;
+E=20//Peak voltage(in volts)
+t=4//Time interval(in ms)
+r=3.3//Resistance(in kilo ohms)
+c=1//Capacitance(in micro farad)
+Emax=E/(1+(2.718^(-t/(r*c))))
+Emin=E-Emax
+disp(Emin,Emax,'Maximum and minimum voltage(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.9/Ex2_9.txt b/863/CH2/EX2.9/Ex2_9.txt new file mode 100644 index 000000000..44d5c973b --- /dev/null +++ b/863/CH2/EX2.9/Ex2_9.txt @@ -0,0 +1,12 @@ +//Caption:Determine max and min voltage at which capacitor voltage will settle
+//Ex2.9
+clc;
+clear;
+close;
+E=20//Peak voltage(in volts)
+t=4//Time interval(in ms)
+r=3.3//Resistance(in kilo ohms)
+c=1//Capacitance(in micro farad)
+Emax=E/(1+(2.718^(-t/(r*c))))
+Emin=E-Emax
+disp(Emin,Emax,'Maximum and minimum voltage(in volts)=')
\ No newline at end of file diff --git a/863/CH2/EX2.9/Result2_9.txt b/863/CH2/EX2.9/Result2_9.txt new file mode 100644 index 000000000..a24c66419 --- /dev/null +++ b/863/CH2/EX2.9/Result2_9.txt @@ -0,0 +1,6 @@ + Maximum and minimum voltage(in volts)=
+
+ 15.413037
+
+ 4.5869631
+
\ No newline at end of file |