blob: 590ad88a7c74f0c03c0b38b188874b093701003e (
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
34
35
36
37
38
|
// Example 2.8, page no-76
clear
clc
Beta=100
Vee=15
Vcc=15
Vbe=0.7
Re=65*10^3
Rc=65*10^3
alpha=100/101
Ve=-0.7
Ie=(Vee-Vbe)/(2*Re)
Ic=alpha*Ie
Ib=Ic/Beta
Vc=Vcc-Ic*Rc
Vce=Vc-Ve
Ie=Ie*10^6
printf("Ie= %.1f uA", Ie)
Ic=Ic*10^6
printf("\nIc= %.1f uA", Ic)
Ib=Ib*10^6
printf("\nIb= %.3f uA", Ib)
printf("\nVc= %.3f V",Vc)
printf("\nVce= %.3f V",Vce)
// by approximating, because Vee>>Vbe
Ieapprox=Vee/(2*Re)
Ieapprox=Ieapprox*10^6
printf("\nIe (approx)= %.2f uA",Ieapprox)
|