EECS 215 F07 Problem Set 6 solutions

EECS 215 F07 Problem Set 6 solutions - HW 6 Problem 1 part...

This preview shows pages 1–8. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
0 1 2 3 4 5 6 7 8 9 10 -1 0 1 2 3 4 5 6 7 8 9 v in (V) v out HW 6, Problem 1, part b %EECS 215 HW 6 Problem 1, Part b clear all ; vina = linspace(0,1,100); vinb = linspace(1,10,900); vouta = vina.*0; voutb = -0.2.*(sqrt(vinb-0.99)-5.*(vinb-0.98)); vout = [vouta, voutb]; vin = [vina, vinb]; plot(vin,vout);

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
0 1 2 3 4 5 6 7 8 9 10 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 v in (V) dv out /dv Hw 6 question 1 part b (2) %EECS 215 HW 6 Problem 1, Part b second part clear all ; vin = linspace(1,10,1000); derivative = -0.2.*(0.5./sqrt(vin-0.99)-5); plot(vin,derivative);

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
2 a: Code for part A. %EECS 215 Fall 2007 HW6 Problem 2, part a clear all ; Vcc=10; K=5e-3; VT=1; % amp with source resistance R1=50e3; R2=250e3; VGS=0:1e-3:8.5; RT=R1+ R2; VGS_LIN=VT-1/(K*RT)+sqrt((1/(K*RT))^2+2/(K*RT)*Vcc) for jj=1:length(VGS), if VGS(jj)<VT, % transistor off ID(jj)=0; end ; if VGS(jj)>=VT & VGS(jj)<VGS_LIN, % saturation mode ID(jj)=0.5*K*(VGS(jj)-VT)^2; end ; if VGS(jj)>=VGS_LIN, % triode/linear mode vds1=(VGS(jj)-VT+1/(K*RT))-sqrt((VGS(jj)-VT+1/(K*RT))^2-2/(K*RT)*Vcc); ID(jj)=K*((VGS(jj)-VT)*vds1-vds1^2/2); end ; Vin(jj)=VGS(jj)+R1*ID(jj); Vout(jj)=Vcc-R2*ID(jj); VDS(jj)=Vcc-RT*ID(jj); end ; subplot(2,1,1); plot(Vin,Vout, 'linewidth' ,2); set(gca, 'fontsize'

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 23

EECS 215 F07 Problem Set 6 solutions - HW 6 Problem 1 part...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online