summaryrefslogtreecommitdiff
path: root/275/CH3/EX3.3.72/Ch3_3_72.sce
blob: 9b7b82e9844950482d6cf4c09836fdaedfbebdc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
clc
disp("Example 3.72")
printf("\n")
disp("Draw a DC load line for Voltage divider circuit")
printf("Given\n")
//given
Vcc=15
Rc=2.7*10^3
Re=2.2*10^3
R1=22*10^3
R2=12*10^3
Vbe=0.7
//base voltage
Vb=(Vcc*R2)/(R1+R2)
//emitter voltage
Ve=Vb-Vbe
//emitter current
Ie=Ve/Re
//collector current
Icq=Ie
//collector to emitter voltage
Vceq=Vcc-(Icq*(Rc+Re))
//collector voltage
Vc=Vce+Ve
//to draw DC load line
Ic1=Vcc/(Rc+Re)
Vce=[Vcc Vceq 0]
Ic=[0 Icq Ic1]
printf("Q(%f volt,%f ampere)\n",Vceq,Icq)
plot2d(Vce, Ic)
xlabel("Vce in volt")
ylabel("Ic in ampere")
xtitle("DC load line for base bias circuit")