0% found this document useful (0 votes)
27 views

Assignment 1: CLC Clear Resistance 10e3 Capacitance 16e-9

The document discusses three topics: 1) A circuit is non-linear because scaling the input voltage by a factor of 2 does not scale the output by the same factor. 2) Matlab code is used to plot the gain of an opamp, showing practically no gain at frequencies below 102 Hz. 3) An iterative method and Matlab code finds that after 20 iterations, the solution converges to VD = 2.6880 V by solving the given equations.

Uploaded by

Diwakar Somu
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Assignment 1: CLC Clear Resistance 10e3 Capacitance 16e-9

The document discusses three topics: 1) A circuit is non-linear because scaling the input voltage by a factor of 2 does not scale the output by the same factor. 2) Matlab code is used to plot the gain of an opamp, showing practically no gain at frequencies below 102 Hz. 3) An iterative method and Matlab code finds that after 20 iterations, the solution converges to VD = 2.6880 V by solving the given equations.

Uploaded by

Diwakar Somu
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 1

1 (a)

( (b)

Testing for linearity by testing for homogeneity. If the equation of the circuit is linear ( )

then scaling the input Vin by a factor of 2 would scale the output Vout by a factor of 2 that is ( )

but instead we only get ( )

Therefore the circuit in NON-LINEAR.

2 (a) Impedence of an capacitor is given by Simplifying h(f) =

so , h(f) =

(b) using the following matlab code, the following graph has been generated.

clc; clear; resistance capacitance = 10e3; = 16e-9;

frequencyvalues = logspace(1,5,500); hf = 1+ resistance*2*pi.*frequencyvalues*capacitance; abshf = abs(hf);

yvalues = 20*log10(abshf); semilogx(frequencyvalues,yvalues);

title('Gain of opamp in Q2') xlabel('Frequency (HZ)') ; ylabel('Gain (dB)');

Features include, Practically no gain for the opamp at frequencies smaller than 102 HZ.

3 The vD and the were found using an iterative method the following matlab code was used to find the answer
clc; clear;

a = 6e-3; vd = 5; vs = 10; r = 1000; iterations = 20; x = 0; while (x < iterations); i = a*vd^(1/5); vd = (i*r)-vs; vd = vd*-1; x = x+1;

disp(vd); end

after 20 iterations the answer converges to VD = 2.6880 V and by substituting this into the original equation we get .

You might also like