summaryrefslogtreecommitdiff
path: root/929/CH2/EX2.4/Example2_4.sce
blob: f06daee3b51b6fad1fdd99e7d08a7460ca2ab167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//Example 2.4

clear;

clc;

Vsat=15;//Saturation Voltage

vL=10;

iL=10^(-3);//Load Current

vI=Vsat;//Assuming Vsat as the input Voltage

R1=vI/iL;//(Tolerance-1%)

//vL<=(R1/(R1+R2))*Vsat, Vsat=15V ->10<=(R1/(R1+R2))*15 or 10=(R1/(R1+R2))*13 (approx)
//->R2=((13*R1)/vL)-R1

R2=((13*R1)/vL)-R1;//(Tolerance-1%)

R3=R1;//(Tolerance-1%)

R4=R2;//(Tolerance-1%)

printf("Designed Current Source using Grounded Load Converter :");

printf("\nR1=%.f kohms",R1*10^(-3));

printf("\nR2=%.1f kohms",R2*10^(-3));

printf("\nR3=%.f kohms",R3*10^(-3));

printf("\nR4=%.1f kohms",R4*10^(-3));