summaryrefslogtreecommitdiff
path: root/1850/CH1/EX1.15/exa_1_15.sce
blob: 38645ada099e9c625055e2aea3b201fb0bae9eb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Exa 1.15
clc;
clear;
close;
// Given data
V_CC=10;// in volt
V_BE=0.7;// in volt
R1= 15;// in k ohm
R1=R1*10^3;// in ohm
Bita=100;
I_REF= (V_CC-V_BE)/R1;// in amp
disp(I_REF*10^3,"Reference current in mA")
I_out= I_REF*Bita/(Bita+2);// in amp
disp(I_out*10^3,"Output current in mA")