summaryrefslogtreecommitdiff
path: root/3517/CH6
diff options
context:
space:
mode:
Diffstat (limited to '3517/CH6')
-rw-r--r--3517/CH6/EX6.1/Ex6_1.sce22
-rw-r--r--3517/CH6/EX6.2/Ex6_2.sce26
-rw-r--r--3517/CH6/EX6.3/Ex6_3.sce13
-rw-r--r--3517/CH6/EX6.4/Ex6_4.sce17
-rw-r--r--3517/CH6/EX6.5/Ex6_5.sce27
-rw-r--r--3517/CH6/EX6.6/Ex6_6.sce14
6 files changed, 119 insertions, 0 deletions
diff --git a/3517/CH6/EX6.1/Ex6_1.sce b/3517/CH6/EX6.1/Ex6_1.sce
new file mode 100644
index 000000000..617d04681
--- /dev/null
+++ b/3517/CH6/EX6.1/Ex6_1.sce
@@ -0,0 +1,22 @@
+//Caption:Determine schmitt trigger circuit components for designing it
+//Ex6.1
+clc;
+clear;
+close;
+u=5//Upper trigger point voltage(in volts)
+Vbe=0.7//Base emitter voltage(in volts)
+I=2//Collector current(in mA)
+hfe=100
+Vcc=12//Collector voltage(in volt)
+Vce=0.2//Saturated collector emitter voltage(in volts)
+Ve=u-Vbe
+Re=Ve/I
+Rc=(Vcc-Ve-Vce)/I
+i=I/10
+R2=u/i
+Ib2=I/hfe
+I2=u/i
+It=Ib2+i
+r=(Vcc-u)/It
+R1=r-Rc
+disp(R1,R2,Rc,Re,'Circuit components Re,Rc,R2,R1(in kilo ohm)=') \ No newline at end of file
diff --git a/3517/CH6/EX6.2/Ex6_2.sce b/3517/CH6/EX6.2/Ex6_2.sce
new file mode 100644
index 000000000..bd32f25cc
--- /dev/null
+++ b/3517/CH6/EX6.2/Ex6_2.sce
@@ -0,0 +1,26 @@
+//Caption:Find circuit components for designing a schmitt trigger circuit
+//Ex6.2
+clc;
+clear;
+close;
+u=5//Upper trigger point voltage(in volts)
+Vbe=0.7//Base emitter voltage(in volts)
+I=2//Collector current(in mA)
+hfe=100
+Vcc=12//Collector voltage(in volt)
+Vce=0.2//Saturated collector emitter voltage(in volts)
+l=3//Lower trigger point voltage(in volts)
+Ve=u-Vbe
+Re=Ve/I
+Rc=(Vcc-Ve-Vce)/I
+i=I/10
+R2=u/i
+Ib2=I/hfe
+I2=u/i
+It=Ib2+i
+r=(Vcc-u)/It
+I1=l/R2
+Ie=(l-Vbe)/Re
+Rc1=Vcc-(I1*(r+R2))/Ie
+R1=r-Rc1
+disp(R1,R2,Rc1,Re,'Circuit components are Re,Rc1,R2,R1(in kilo ohm)=') \ No newline at end of file
diff --git a/3517/CH6/EX6.3/Ex6_3.sce b/3517/CH6/EX6.3/Ex6_3.sce
new file mode 100644
index 000000000..9b2c433b3
--- /dev/null
+++ b/3517/CH6/EX6.3/Ex6_3.sce
@@ -0,0 +1,13 @@
+//Caption:Determine Largest speed up capacitance
+//Ex6.3
+clc;
+clear;
+close;
+f=1//Frequency(in Mhz)
+R1=22//Resistance(in kilo ohm)
+R2=22//Resistance(in kilo ohm)
+Rc1=4.7//Resistance(in kilo ohm)
+R=R1*(Rc1+R2)/(R1+Rc1+R2)
+t=1/f
+C=t*1000/(2.3*R)
+disp(C,'Required Capacitance(in pF)=') \ No newline at end of file
diff --git a/3517/CH6/EX6.4/Ex6_4.sce b/3517/CH6/EX6.4/Ex6_4.sce
new file mode 100644
index 000000000..a71f84331
--- /dev/null
+++ b/3517/CH6/EX6.4/Ex6_4.sce
@@ -0,0 +1,17 @@
+//Caption:Calculate R1,R2 and Actual UTP and LTP
+//Ex6.4
+clc;
+clear;
+close;
+u=3//Upper trigger voltage(in volts)
+Ib=500//Max base current(in nA)
+Vcc=15//Collector voltage(in volts)
+i=Ib*0.1
+R2=u*1000/i
+I=u/R2
+Vo=Vcc-1
+Vr1=Vo-u
+R1=Vr1/I
+utp=Vo*R2/(R1+R2)
+ltp=-utp
+disp(ltp,utp,R2,R1,'Circuit components R1,R2(in kilo ohm) and actual UTP and LTP(in volts)=') \ No newline at end of file
diff --git a/3517/CH6/EX6.5/Ex6_5.sce b/3517/CH6/EX6.5/Ex6_5.sce
new file mode 100644
index 000000000..bcf401517
--- /dev/null
+++ b/3517/CH6/EX6.5/Ex6_5.sce
@@ -0,0 +1,27 @@
+//Caption:Design Schmitt circuit components R1,R2,R3,R4 and R5
+//Ex6.5
+clc;
+clear;
+close;
+u=3//Upper trigger voltage(in volts)
+Ib=500//Max base current(in nA)
+Vf=0.7//Forward diode voltage(in volts)
+Vk1=-2//Voltage(in volts)
+Vcc=15//Collector voltage(in volts)
+Vk2=-Vk1
+i=Ib*0.1
+R2=u*1000/i
+I=u/R2
+Vo=Vcc-1
+Vr1=Vo-u
+R1=Vr1/I
+I4=100*i
+Va1=Vk1+Vf
+Vee=-Vcc
+V4=Va1-Vee
+R4=V4*1000/I4
+Va2=Vk2+Vf
+V5=Va2-Va1
+R5=V5*1000/I4
+R3=(Vcc-Va2)*1000/I4
+disp(R5,R4,R3,R2,R1,'R1,R2,R3,R4,R5(in kilo ohm)=') \ No newline at end of file
diff --git a/3517/CH6/EX6.6/Ex6_6.sce b/3517/CH6/EX6.6/Ex6_6.sce
new file mode 100644
index 000000000..e3afaca29
--- /dev/null
+++ b/3517/CH6/EX6.6/Ex6_6.sce
@@ -0,0 +1,14 @@
+//Caption:Design a non inverting schmitt trigger circuit
+//Ex6.6
+clc;
+clear;
+close;
+Vcc=15//Collector voltage(in volts)
+u=2//Upper trigger point(in volts)
+Ib=500//Base current(in nA)
+I2=Ib*0.1
+Vo=Vcc-1
+R2=Vo*1000/I2
+i=Vo*1000/R2
+R1=u*1000/i
+disp(R2,R1,'Circuit components R1 and R2(in kilo ohm)=') \ No newline at end of file