summaryrefslogtreecommitdiff
path: root/2609/CH10/EX10.1/Ex10_1.sce
blob: 60c8cc65e008c27e52ebf8f77d436c8eb5212df5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
////Ex 10.1
clc;
clear;
close;
format('v',5);
t=0:0.01:5;//sec(Assumed)
Vin=5*sin(2*%pi*t);//V
VCC=15;//V
R2=1;//kohm
R1=6.8;//kohm
VEE=-15;//V
Vsat=13;//V
Vref=R2*VCC/(R1+R2);//V
disp(Vref,"Reference Voltage(V)")
disp(Vsat,"If Vin>Vref , Vout (V):");
disp(-Vsat,"If Vin<Vref , Vout (V):");