summaryrefslogtreecommitdiff
path: root/181/CH2/EX2.32/example2_32.sce
blob: c0e37bcca89ad81007543aa5ba0b19409e86fb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Find the range for R
// Basic Electronics
// By Debashis De
// First Edition, 2010
// Dorling Kindersley Pvt. Ltd. India
// Example 2-32 in page 110

clear; clc; close;

// Given data
P=250; // Maximum power dissipation in mW
V=15; // Supply voltage in V

// Caluclation
I=(250*10^-3)/5;
printf("Maximum permissible current = %0.3e A\n",I);
printf("10 percent of 50mA = 5mA\n");
I1=I-(5*10^-3);
printf("Maximum current through diode to maintain constant voltage = %0.1e A",I1);

// Result
// Maximum current to maintain constant voltage = 45mA