summaryrefslogtreecommitdiff
path: root/3129/CH17/EX17.1/ex17_1.sce
blob: 8872889b09b5de4f52bf1c534ee4260a9774b060 (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
//Finding the Transistor voltage and current with clamping
//Example 17.1(Page No-766) 
clc
clear
//given data 
Vcc=100;//in volts
Rc=1.5;//in ohms
Vd1=2.1;//in volts
Vd2=0.9;//in volts
Vbe=0.7;// in volts
Vb=15;//in volts
Rb=2.5;//in ohms
B=16;

//part(a)
I1=(Vb-Vd1-Vbe)/Rb;
Ic=B*I1;
printf('(a)Collecter current without clamping:%2.2f A\n',Ic)

//part(b)
Vce=Vbe+Vd1-Vd2;
printf(' (b)Clamping voltage:%.1f V\n',Vce)

//part(c)
IL=(Vcc-Vce)/Rc;
Ic=B*(I1+IL)/(B+1);
printf(' (c)Collector current with clampingIc:%2.2f A\n',Ic)