summaryrefslogtreecommitdiff
path: root/3682/CH2/EX2.11/Ex2_11.sce
blob: 1bf6a9a681fa624cb70016340cc3d7d19577561b (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
// Exa 2.11

clc;
clear;

// Given data

Io=10*10^-6; // Output current(A)
Vcc= 10;  // Volts
B=125; // current gain
Vbe=0.7; // Voltage between base and emitter(V)
Vt=25*10^-3; // volt equivalent of temperature at room temperature(V)

//Solution

disp(" Let Iref = 1 mA then using equation 2.79, we get- ");

Iref=1*10^-3; // we choose

R1=(Vcc-Vbe)/Iref;
printf('\n  The value of R1 = %.1f kΩ. \n',R1/1000);

disp(" Using equation 2.74, we get-");
Re=(Vt/((1+1/B)*Io))*log(Iref/Io);
printf('\n  The value of Re = %.1f kΩ. \n',Re/1000);

disp(" Thus, it is clearly seen that Wildar circuit allows the generation of small currents using relatively small resistors.");