summaryrefslogtreecommitdiff
path: root/2459/CH12/EX12.1/Ex12_1.sce
blob: 78ed019517ed977fb98cdf48019039754d3c7ecf (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
// chapter 12
// example 12.1
// page 235

V_CC=6 // V
R_C=2.5 // kilo ohm

// for faithful amplification V_CE should not be less than V_CC for Si transistor so
V_max=V_CC-1
I_max=V_max/R_C

// As negative and positive half cyces of input are equal, change in collector current will be equal and opposite so
I_min=I_max/2

printf("Maximum allowable collector current = %.3f mA \n",I_max)
printf("Minimum zero signal collector current = %.3f mA \n",I_min)

// the circuit diagram is constructed on xcos and its screenshot has been taken.
// the waveform given can not be obtained in xcos unless we assume necessary values as data is insufficient for plotting graph in scilab.
// so waveform is constructed as below

clf()
x=linspace(1,5*%pi,100)
[t]=sin(x)+1
plot(x,[t])
xtitle("max and min allowable collector currents","t","i_c (mA)")