summaryrefslogtreecommitdiff
path: root/929/CH2/EX2.6/Example2_6.sce
blob: eadc1321477112a29eba9dffd5feeef5deb43e66 (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
35
36
//Example 2.6

clear;

clc;

//From result of Example 2.4 
R1=15*10^3;

R2=4.5*10^3;

R3=R1;

R4=R2;

p=0.01;

e=4*p*R1;//Resistance to be trimmed

R3redmax=R3-e;//R3red<=R3redmax

R3red=R3redmax-400;//Tolerance 1%

Rpot=2*(R3-R3red);

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

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

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

printf("\nRs=%.2f kohms",R3red*10^(-3));

printf("\nRpot=%.2f kohms",Rpot*10^(-3));

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