summaryrefslogtreecommitdiff
path: root/1223/CH11/EX11.1/Ex11_1.sce
blob: a460fea238e4f6073008e7c99e3152f76ad4b92e (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
clear;
clc;
//Example 11.1
V1=10;
V2=-10;
Iq=1;
Rc=10;
Vbe=0.7;
iC1=Iq/2;
iC2=iC1;
printf('\ncollector currents =%.2fmA\n',iC1)
Vc1=V1-iC1*Rc;
Vc2=Vc1;
printf('\ncollector voltages =%.2fV\n',Vc1)
Vcm=0;
Ve=Vcm-Vbe;
Vce1=Vc1-Ve;
printf('\ncollector emitter voltage=%.2f V\n',Vce1)
Vcm=-5;
Ve=Vcm-Vbe;
Vce1=Vc1-Ve;
printf('\ncollector emitter voltage =%.2fV\n',Vce1)
Vcm=5;
Ve=Vcm-Vbe;
Vce1=Vc1-Ve;
printf('\ncollector emitter voltage=%.2f V\n',Vce1)