summaryrefslogtreecommitdiff
path: root/2459/CH9/EX9.26/Ex9_26.sce
blob: 2c56fe3c9c7d3d3779618ee4e6d0922dc2221c7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//chapter9
//example9.26
//page173

Ei=45 // V     
Vz1=10 // V
Vz2=10 // V
Vz3=10 // V
Iz=1000d-3 // current rating for each zener in ampere

Eo=Vz1+Vz2+Vz3

R=(Ei-Eo)/Iz

printf("required series resistance = %.3f ohm \n",R)

// since zener diode is not available in xcos, simple diodes are used to represent zener diode in the circuit made in xcos