summaryrefslogtreecommitdiff
path: root/1757/CH14/EX14.1/EX14_1.sce
blob: 39da23bc951cb9391e2516dfd97cbdfb977e3ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Example14.1 // to determine the regulated voltage 
clc;
clear;
close;
R1 = 250 ; //ohm 
R2 = 2500 ; // ohm 
Vref = 2 ; //V //reference voltage
Iadj = 100*10^-6; // A  // adjacent current

//the output voltage of the adjustable voltage regulator is defined by
Vo = (Vref*((R2/R1)+1)+(Iadj*R2)) ;
disp('the output voltage of the adjustable voltage regulator is = '+string(Vo)+' V ');