summaryrefslogtreecommitdiff
path: root/181/CH3/EX3.30/example3_30.sce
blob: 8ded5b33b1a21a7deb0da4983bf1a6bbd32eaf55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Calculate R,I_l(max)
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 3-30 in page 181

clear; clc; close;

// Given data
V_0=50; // Zener diode voltage in V
I_L=0; // Load current in A

// Calculation
R=(150)/(40*10^-3);
printf("(a)R = %0.2e ohm\n",R);
printf("I_L = I_max when Id = Id_min = 10mA\n");
I_Lmax=40-10;
printf("(b)Maximum load current = %0.0f mA",I_Lmax);

// Result
// (a) R = 3.75 K-ohms
// (b) I_Lmax = 30 mA