blob: 42392619e75fb92549b32c683760a0d032115b85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
//chapter20
//example20.8
//page441
Ic=1 // A
gain=50
Vout=6 // V
Vbe=0.5 // V
Vin=10 // V
Iz=10d-3 // A
Ib=Ic/gain
Vz=Vbe+Vout // Vout=Vz-Vbe
V_Rs=Vin-Vz
Rs=V_Rs/(Ib+Iz)
printf("required breakdown voltage for zener diode = %.3f V \n",Vz)
printf("required value of Rs = %.3f ohm \n",Rs)
// in book Rs=117 ohm but accurate answer is 116.667 ohm
// note : in xcos, there is no Zener diode so in the result (circuit) file a simple diode is used to represent a zener diode
|