summaryrefslogtreecommitdiff
path: root/1514/CH4/EX4.2/4_2.sce
blob: 6d18a2fdec6968327feb8115b934efcbd3ddff7f (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
//chapter 4
//example 4.2
//page 104
clear all;
clc ;
//given
Rc=2.2;//collector resistance in kohm
Vcc=18;//supply voltage
Ib=40;//base current in microA
Ic1=0;//collector current
Vce1=Vcc;//point A(Vce,Ic)=(18,0)
Vce2=0;//collector to emitter voltage V
Ic2=Vcc/Rc;//mA
printf('dc load line passes through points A(18,0),B(0,8.2)')
//point B(Vce2,Ic2)
plot([Vce1 Vce2],[Ic1 Ic2],'-.*');
xtitle('dc load line','Vce in V','Ic in mA');
a=gca();
a.data_bounds=[-0.5 -0.5;19 8.5]

//from intersection of dc load line and Ib=40microA,pointQ
Ic=4.25;//mA
Vce=8.7;//V
//for point Q1
Vce1=1.2;
deltaVce1=Vce1-Vce;
//for point Q2
Vce1=16.7;
deltaVce2=Vce1-Vce;
printf("\n maximum undistorted output is +-7.5 V")