blob: fc53fa44d474cb7ef839781afb4d37fb15ca8745 (
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
|
clc
disp("Example 3.52")
printf("\n")
disp(" Find Ic & Vce. Draw a DC load line for the base bias circuit")
printf("Given\n")
//given
betadc=100
Vbe=0.7
Rc=10^3
Rb=10^5
Vb=5
Vc=10
//to find Ib
Ib=(Vb-Vbe)/Rb //from ciruit
//Ic value
Icq=betadc*Ib
//Vce value
Vceq=Vc-(Icq*Rc)
//to draw DC load line
Ic1=Vc/Rc
Vce1=Vc
Vce=[Vc 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")
|