blob: c61fb05ebcc6208261ff7bf634e957955b27ff79 (
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
29
30
31
|
// Exa 5.15
clc;
clear;
close;
// Given data
fa= 1;// in kHz
fa=fa*10^3;// in Hz
Vp=1.5;// in volt
C=0.1;// in micro F
C=C*10^-6;// in F
// Part (a)
R= 1/(2*%pi*fa*C);// in ohm
R=R*10^-3;// in k ohm
R=floor(R*10)/10;// in k ohm
fb= 20*fa;// in Hz
R_desh= 1/(2*%pi*fb*C);// in ohm
// Let
R_desh= 82;// in ohm
R_OM= R;// in k ohm
disp(R_OM,"Value of R_OM in k ohm")
// Part(b)
// given data
Vp=1.5;// in volt
f= 200;// in Hz
// v_in= Vp*sin(omega*t) = sin(2*%pi*f*t) = sin(2000*omega*t)
// v_out= -CR*diff(v_in) = -0.942 Cos(2000*%pi*t)// in micro volt
disp("Output Voltage")
disp("-0.942 Cos(2000*%pi*t)")
|