summaryrefslogtreecommitdiff
path: root/2075/CH6/EX6.9/pe6_9.sce
blob: bca009c6785930b3bdbbeb467ce82db4f4710e67 (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
32
33
34
35
36
37
38
//example 6.9
clc; funcprot(0);
// Initialization of Variable
Rl=12;//load resistance
V1=.8;//voltage
V2=2.4;//voltage
D=.8;//duty cycle
Tj=150;//degreeC
Ta=40;//degreeC
Vd=28;
Vo=.7;
I=40;//mA;
//calculation
k=(Vd-Vo)/I;
disp(round(k*1000),"R1+R2 in ohm:")
printf('pick R1=330ohm & R2=360ohm as they divide Vd setting 8V<Vg<18V')
R1=330;
R2=360;
Vn1=28;
disp(Vn1,"node voltage for V1 in V:")
Vn2=.7;
disp(Vn2,"node voltage for V2 in V:")
Vg=R2*Vd/(R1+R2)+Vn2;
disp(Vg,"gate voltage in V:")
Vgs=Vg-Vd;
disp(Vgs,"gate & source diff in V:")
Vl=Vd*Rl/(Rl+.57);
disp(Vl,"load voltage in V:")
Il=Vl/Rl;
disp(Il,"load current in A:")
Pl=D*Vl*Il;
disp(Pl,"load power in W:")
Vq=Il*.57;
Pq=D*Vq*Il;
disp(Pq,"Pq in W:")
Q=(Tj-Ta)/Pq-3.7;
disp(Q,"thermal resistance in degreeC/W:")
clear()