summaryrefslogtreecommitdiff
path: root/863/CH12
diff options
context:
space:
mode:
Diffstat (limited to '863/CH12')
-rw-r--r--863/CH12/EX12.1/Ex12_1.sce26
-rw-r--r--863/CH12/EX12.1/Ex12_1.txt26
-rw-r--r--863/CH12/EX12.1/Result12_1.txt4
-rw-r--r--863/CH12/EX12.2/Ex12_2.sce14
-rw-r--r--863/CH12/EX12.2/Ex12_2.txt14
-rw-r--r--863/CH12/EX12.2/Result12_2.txt4
-rw-r--r--863/CH12/EX12.4/Ex12_4.sce20
-rw-r--r--863/CH12/EX12.4/Ex12_4.txt20
-rw-r--r--863/CH12/EX12.4/Result12_4.txt6
9 files changed, 134 insertions, 0 deletions
diff --git a/863/CH12/EX12.1/Ex12_1.sce b/863/CH12/EX12.1/Ex12_1.sce
new file mode 100644
index 000000000..62ee0a86b
--- /dev/null
+++ b/863/CH12/EX12.1/Ex12_1.sce
@@ -0,0 +1,26 @@
+//Caption: Determine fan out for DTL NAND gate
+//Ex12.1
+clc;
+clear;
+close;
+hfe=20
+Vbe=0.7//Base emitter voltage(in volts)
+R3=6//Resistance(in kilo ohm)
+R2=5//Resistance(in kilo ohm)
+Vcc=5//Supply voltage(in volts)
+R1=2//Resistance(in kilo ohm)
+Vce=0.2//Collector emitter voltage(in volts)
+Vf4=0.7//Diode forward voltage
+Vf5=Vf4
+Vf6=Vf4
+I2=Vbe/R2
+Va=Vf4+Vf5+Vbe
+I1=(Vcc-Va)/R1
+Ib=I1-I2
+Ic1=hfe*Ib
+I3=(Vcc-Vce)/R3
+Iol=Ic1-I3
+R4=R1
+Iil=(Vcc-Vf6)/R4
+fo=Iol/Iil
+disp(fo,'Fan out=') \ No newline at end of file
diff --git a/863/CH12/EX12.1/Ex12_1.txt b/863/CH12/EX12.1/Ex12_1.txt
new file mode 100644
index 000000000..62ee0a86b
--- /dev/null
+++ b/863/CH12/EX12.1/Ex12_1.txt
@@ -0,0 +1,26 @@
+//Caption: Determine fan out for DTL NAND gate
+//Ex12.1
+clc;
+clear;
+close;
+hfe=20
+Vbe=0.7//Base emitter voltage(in volts)
+R3=6//Resistance(in kilo ohm)
+R2=5//Resistance(in kilo ohm)
+Vcc=5//Supply voltage(in volts)
+R1=2//Resistance(in kilo ohm)
+Vce=0.2//Collector emitter voltage(in volts)
+Vf4=0.7//Diode forward voltage
+Vf5=Vf4
+Vf6=Vf4
+I2=Vbe/R2
+Va=Vf4+Vf5+Vbe
+I1=(Vcc-Va)/R1
+Ib=I1-I2
+Ic1=hfe*Ib
+I3=(Vcc-Vce)/R3
+Iol=Ic1-I3
+R4=R1
+Iil=(Vcc-Vf6)/R4
+fo=Iol/Iil
+disp(fo,'Fan out=') \ No newline at end of file
diff --git a/863/CH12/EX12.1/Result12_1.txt b/863/CH12/EX12.1/Result12_1.txt
new file mode 100644
index 000000000..01f7ed725
--- /dev/null
+++ b/863/CH12/EX12.1/Result12_1.txt
@@ -0,0 +1,4 @@
+Fan out=
+
+ 11.813953
+ \ No newline at end of file
diff --git a/863/CH12/EX12.2/Ex12_2.sce b/863/CH12/EX12.2/Ex12_2.sce
new file mode 100644
index 000000000..b0da61e97
--- /dev/null
+++ b/863/CH12/EX12.2/Ex12_2.sce
@@ -0,0 +1,14 @@
+//Caption:Determine Resistance to drive inputs of 5 TTL gates
+//Ex12.2
+clc;
+clear;
+close;
+Ii=1.6//Maximum input current(in mA)
+Io=16//Maximum output current(in mA)
+Vcc=5//Supply voltage(in volts)
+Vo=0.4//Maximum output voltage(in volts)
+Il=5*Ii
+Irc=Io-Il
+Vrc=(Vcc-Vo)
+Rc=Vrc*1000/Irc
+disp(Rc,'Required resistance(in ohm)=') \ No newline at end of file
diff --git a/863/CH12/EX12.2/Ex12_2.txt b/863/CH12/EX12.2/Ex12_2.txt
new file mode 100644
index 000000000..b0da61e97
--- /dev/null
+++ b/863/CH12/EX12.2/Ex12_2.txt
@@ -0,0 +1,14 @@
+//Caption:Determine Resistance to drive inputs of 5 TTL gates
+//Ex12.2
+clc;
+clear;
+close;
+Ii=1.6//Maximum input current(in mA)
+Io=16//Maximum output current(in mA)
+Vcc=5//Supply voltage(in volts)
+Vo=0.4//Maximum output voltage(in volts)
+Il=5*Ii
+Irc=Io-Il
+Vrc=(Vcc-Vo)
+Rc=Vrc*1000/Irc
+disp(Rc,'Required resistance(in ohm)=') \ No newline at end of file
diff --git a/863/CH12/EX12.2/Result12_2.txt b/863/CH12/EX12.2/Result12_2.txt
new file mode 100644
index 000000000..bac343e9c
--- /dev/null
+++ b/863/CH12/EX12.2/Result12_2.txt
@@ -0,0 +1,4 @@
+ Required resistance(in ohm)=
+
+ 575.
+ \ No newline at end of file
diff --git a/863/CH12/EX12.4/Ex12_4.sce b/863/CH12/EX12.4/Ex12_4.sce
new file mode 100644
index 000000000..5351ec93b
--- /dev/null
+++ b/863/CH12/EX12.4/Ex12_4.sce
@@ -0,0 +1,20 @@
+//Caption:Design a interface circuit for CMOS
+//Ex12.4
+clc;
+clear;
+close;
+Vdd=15//Drain voltage(in volts)
+Rd=1//Drain resistance(in kilo ohm)
+Vcc=5//Supply voltage(in volts)
+Ih=40//Current(in micro ampere)
+hfe=20
+Vce=0.2//Saturated collector emitter voltage(in volts)
+vih=2//High input voltage(in volts)
+il=1.6//Low input current
+Vbe=0.7//Base emitter voltage(in volts)
+Rc=(Vcc-vih)*1000/(2*Ih)
+Ic=((Vcc-Vce)/Rc)+(2*il)
+Ib=Ic/hfe
+R=(Vdd-Vbe)/Ib
+Rb=R-Rd
+disp(Rc,Rb,'Components required to design circuit are resistors Rb and Rc(in kilo ohm)=') \ No newline at end of file
diff --git a/863/CH12/EX12.4/Ex12_4.txt b/863/CH12/EX12.4/Ex12_4.txt
new file mode 100644
index 000000000..5351ec93b
--- /dev/null
+++ b/863/CH12/EX12.4/Ex12_4.txt
@@ -0,0 +1,20 @@
+//Caption:Design a interface circuit for CMOS
+//Ex12.4
+clc;
+clear;
+close;
+Vdd=15//Drain voltage(in volts)
+Rd=1//Drain resistance(in kilo ohm)
+Vcc=5//Supply voltage(in volts)
+Ih=40//Current(in micro ampere)
+hfe=20
+Vce=0.2//Saturated collector emitter voltage(in volts)
+vih=2//High input voltage(in volts)
+il=1.6//Low input current
+Vbe=0.7//Base emitter voltage(in volts)
+Rc=(Vcc-vih)*1000/(2*Ih)
+Ic=((Vcc-Vce)/Rc)+(2*il)
+Ib=Ic/hfe
+R=(Vdd-Vbe)/Ib
+Rb=R-Rd
+disp(Rc,Rb,'Components required to design circuit are resistors Rb and Rc(in kilo ohm)=') \ No newline at end of file
diff --git a/863/CH12/EX12.4/Result12_4.txt b/863/CH12/EX12.4/Result12_4.txt
new file mode 100644
index 000000000..eb5f31e1b
--- /dev/null
+++ b/863/CH12/EX12.4/Result12_4.txt
@@ -0,0 +1,6 @@
+Components required to design circuit are resistors Rb and Rc(in kilo ohm)=
+
+ 84.9375
+
+ 37.5
+ \ No newline at end of file