summaryrefslogtreecommitdiff
path: root/226/CH18/EX18.8/example8_sce.sce
blob: 784bff263a89e8f81656e63eba14f44dc76f0a85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//chapter 18
//example 18.8
//page 778
printf("\n")
printf("given")
Vo=12;hFE1=20;hFE2=50;Il=250*10^-3;
Vz=.75*Vo
Vz=9.1;//use standard value for 1N757 diode
Iz1=10*10^-3;
R1=(Vo-Vz)/Iz1
I3=1*10^-3;
disp(" when V0=12V(moving contact at top of R5)")
R3=(Vo-Vz)/I3
R=Vz/I3
disp(" when Vo=15V moving contact at bottom of R5")
Vo=15;
I3=Vo/(R+R3)
R4=Vz/I3
R5=R-R4
Ir6=.5*10^-3;
R6=Vo/Ir6
disp(" op-amp output current")
Ib2=Il/(hFE1*hFE2)