summaryrefslogtreecommitdiff
path: root/2459/CH11/EX11.20/Ex11_20.sce
blob: 024a57f964486cae1308c4dfbe791dcf81b018e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//chapter11
//example11.20
//page224

Vcc=20 // V
Rc=1 // kilo ohm

// for saturation collector current, knee voltage becomes 0V so we get
Ic_sat=Vcc/Rc

// it can be seen from the circuit that cut-off voltage (i.e. when Ib=0) equals Vcc itself
Vce_cutoff=Vcc

// the equation of load line becomes Ic=-Vce+20

clf()
x=linspace(0,20,5)
y=-x+20
plot2d(x,y,style=3,rect=[0,0,21,21])
xtitle("dc load line","Vce(volts)","Ic(mA)")

printf("saturation collector current = %.3f mA \n",Ic_sat)
printf("cut-off collector emitter voltage = %.3f V \n",Vce_cutoff)