summaryrefslogtreecommitdiff
path: root/1514/CH10/EX10.6/10_6.sce
blob: a31b59d6da6e71d34372bd880a3b2f96398bab37 (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
//chapter 10
//example 10.6
//page 302
clear all;
clc ;
//given
R1=3.9 ; 
R2=2.2;//in Mohm
Rl=27;
Rs=1.5;
Rd=3.3;//in kohm
gm=3.5;//mA/V
rd=70;//kohm
vs=100;//mV
rs=600;//ohm
Rp=1/gm;//in kohm
Zi=1000*(Rs*Rp)/(Rs+Rp);
Zo=Rd*rd/(Rd+rd);
Av=gm*(Rd*Rl)/(Rd+Rl);
vi=vs*Zi/(rs+Zi);
vo=Av*vi;
printf('\nInput Impedance(Zi)=%d ohm',Zi)
printf('\nOutput Impedance(Zo)=%.2f kohm',(Zo))
printf('\nVoltage Gain:\nAv=%.1f ',Av)
printf('\nOutput Voltage(vo)=%d mV',ceil(vo))