Question

ECE 202- Experiment 3-PreLab Homework NTROD TION TOTHE INTEG IRO T OP AMP VOLTAGE COMPARATOR 1. Op Amp functions in two diffe
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answes shall deccribe the idel mAmb seemanier As er theay tVcc in( V)An +5V 씨 2 ITF Time penSe, We (0, 40 mse) his will cevert 2 tine beriels time nge e / the snussid. New, 1ets pit teuhet grnsh in M

MATLAB CODE ==>

clear
clear all
t = 0:0.000001:0.01; %time range and samples for the plot
v2 = 2.5*sin(2*pi*200*t); % v+ input
v1 = 2; % v- input
k = 0;
for(tt = 0:0.000001:0.01)
k = k+1;
if(v2(k) >= v1) % comparison
vo(k) = 5;
elseif(v2(k) < v1) % comparison
vo(k) = -5;
end
end
plot(t,v2) % plot v+
figure
plot(t,vo) % plot vo
  

RESULTS ==>

2.5 r 1.5 0.5 0.5 -1 1.5 -2 2.5 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01 time (seconds)10 -5 0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009 0.01 time (seconds) -10

For further help, please write in the comments.

Add a comment
Know the answer?
Add Answer to:
ECE 202- Experiment 3-PreLab Homework NTROD TION TOTHE INTEG IRO T OP AMP VOLTAGE COMPARATOR 1....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT