summaryrefslogtreecommitdiff
path: root/3754/CH31/EX31.18/31_18.sce
blob: 5c18c0490f47271fb136d68c4158649b6a9fc885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clear//

//Variables

fo = 2.0 * 10**3                                //Frequency (in Hertz)
hie = 2.0 * 10**3                               //hie (in ohm)
R1 = 20.0 * 10**3                               //Resistance (in ohm)
R2 = 80.0 * 10**3                               //Resistance (in ohm)
RC = 10.0 * 10**3                               //Collector Resistance (in ohm)
R = 8.0 * 10**3                                 //Resistance (in ohm)

//Calculation

C = 1/(2*%pi*R)*(1/(6 + 4*RC/R)**0.5)/fo    //Capacitance (in Farad)
hfe = 23 + 29 * R/RC + 4* RC /R                 //Current gain 
Ri = (1/R1 + 1/R2 + 1/hie)**-1                  //Input resistance (in ohm)
R3 = R - Ri                                     //Feedback resitor (in ohm)

//Result

printf("\n Value of capacaitor C is  %0.3f  micro-Farad.\nValue of transistor gain is hfe >=  %0.3f .\nValue of feedback resistor R3 is  %0.1f  kilo-ohm.",C*10**6,hfe,R3*10**-3)