blob: 4c174d2c6f499a227b9a701df4b8bd90b634ad6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear;
clc;
//Example 10.1
Vbe=0.6;//(V)
b=100;
V1=5;
Io=200;//micro A
Iref=Io*(1+2/b);
printf('\nreference current=%.2f microA\n',Iref)
Iref=Iref*0.001;//mA
R1=(V1-Vbe)/Iref;
printf('\nR1=%.2f KOhm\n',R1)
|