From 8ac15bc5efafa2afc053c293152605b0e6ae60ff Mon Sep 17 00:00:00 2001 From: Siddharth Agarwal Date: Tue, 3 Sep 2019 18:27:40 +0530 Subject: Xcos examples from textbooks and for blocks --- Working_Examples/293/CH9/EX9.2/eg9_2.sce | 12 ++++++++++ Working_Examples/293/CH9/EX9.3/eg9_3.sce | 38 ++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100755 Working_Examples/293/CH9/EX9.2/eg9_2.sce create mode 100755 Working_Examples/293/CH9/EX9.3/eg9_3.sce (limited to 'Working_Examples/293/CH9') diff --git a/Working_Examples/293/CH9/EX9.2/eg9_2.sce b/Working_Examples/293/CH9/EX9.2/eg9_2.sce new file mode 100755 index 0000000..8a35341 --- /dev/null +++ b/Working_Examples/293/CH9/EX9.2/eg9_2.sce @@ -0,0 +1,12 @@ +// Quiescent point +Idq = 0.0034; // drain current +Vdq = 15; // drain voltage +Vgq = 1; // gate voltage + +Vdd = 24; //drain supply voltage + +Rs = Vgq/Idq; +disp(Rs,"The value of self bais source resistance is(in ohm): ") + +Rd = (Vdd - Vdq)/Idq ; +disp(Rd,"The value of drain load resistance is(in ohm): ") \ No newline at end of file diff --git a/Working_Examples/293/CH9/EX9.3/eg9_3.sce b/Working_Examples/293/CH9/EX9.3/eg9_3.sce new file mode 100755 index 0000000..edac541 --- /dev/null +++ b/Working_Examples/293/CH9/EX9.3/eg9_3.sce @@ -0,0 +1,38 @@ +//a +//transistor parameters + R2 = 0.625; + hie = 1.67; + Rb = 4.16; + Rl = 2.4; + Roe = 150; + + Cc = 25 * 10^-6; + rBB = 0.29; + rBE = 1.375; + Cd = 6900 * 10^-12; + Ct = 40 * 10^-12; + gm = 0.032; + + Req = (Rl*Roe)/(Rl + Roe); + hfe = 44; + a = 1 + (R2/Req); + b = 1 + (hie/Rb); + Aim = -hfe/(a*b); // mid band frequency gain + disp("a") + disp(Aim,"The mid band frequency gain of the first stage of the circuit is: ") + + //b + Tl = 2*%pi*(Req + R2)*Cc*(10^3); + Fl = 1/Tl; + + Rp = (Req*R2)/(Req + R2); + C = Cd + Ct*(1 + gm*Rp*10^3); + d = Rb + hie ; + e = rBE * (Rb + rBB)* 10^3 * C ; + Fh = d/(2*%pi*e); + + BW = Fh - Fl; + disp("b") + disp(BW, "The bandwidth of the first stage amplifier in Hz is :") + + \ No newline at end of file -- cgit