summaryrefslogtreecommitdiff
path: root/1514/CH17/EX17.7/17_7.sce
blob: 87d52024861d10c2c0084ac3f297c06483654ebc (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
//chapter 17
//example 17.7
//page 547
clear;
clc ;
//given
Rl=10;//load resistance
Po=5;//op power
Rdsmin=4;
gm=250;//mA/V
//peak op voltage
Vp=round(sqrt(2*Rl*Po));
Rl=20;
Ip=Vp/Rl;
//supply voltage
Vcc=[Vp+(Ip*Rdsmin)];
printf("\nVCC=+-%d V",Vcc);
Vth=1;
Vr13=Vth;Vr14=Vth;
deltaVr14=10^-3*Ip/gm;
deltaVr13=deltaVr14;
//to avoid turn off of Q1,let 
deltaVr3=2;
Vr3=deltaVr3+1;
Vr7=Vr3;Vr6=Vr3;
//to avoid saturation of Q2
Vce2=Vp+Vr7+1;
Vr4r5=2*Vcc-Vr6-Vr7-Vce2;
printf("\nVoltage drops across R3,R6,R7 is %d V and across R4+R5 is %d V",Vr3,Vr4r5)