summaryrefslogtreecommitdiff
path: root/317/CH15/EX15.1/example1.sce
blob: 6370430fe74d863418169f4565a19b5ffa73a79e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// find diode current
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 15-1, page 524

clear; clc; close;

// Given data
Vb=10;// breakover voltage of the diode
V=15;// input voltage in volts
Ih=4*10^-3;// holding current in amperes
Vd=0.7 ;// voltage across diode in volts
R=100;// resistance in ohms

// Calculations
// as V>Vb ,the diode breaks over .Taking into consideration the voltage across the diode
I=(V-Vd)/R;// diode current in amperes 
disp("Amperes",I,"diode current=")

// Result
// Diode current is 143 mAmperes