summaryrefslogtreecommitdiff
path: root/3507/CH20/EX20.9/Ex20_9.sce
blob: 309661ca2c755d25bf708683e29bbb71f438b19b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//chapter20
//example20.9
//page443

Vz=12 // V
Vbe=0.7 // V
Vin=20 // V
Rs=220 // ohm
Rl=1d3 // ohm
gain=50

Vout=Vz-Vbe
V_Rs=Vin-Vz
I_Rs=V_Rs/Rs
Il=Vout/Rl
Ic=Il
Ib=Ic/gain
Iz=I_Rs-Ib

printf("output voltage = %.3f V \n",Vout)
printf("zener current = %.3f mA \n",Iz*1000)