summaryrefslogtreecommitdiff
path: root/1757/CH5/EX5.2/EX5_2.sce
blob: d0aad4ae8d49b9df994654959fb80a0029565877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Example5.2 // find the total offset voltage of feedback op-amp
clc;
clear; 
close;
Vos = 2 ; //mV  // input offset volt
Ios = 20*10^-3 ; // input offset current
R1 = 10 ; //kilo ohm  // input resistance
R2 = 250 ; //kilo ohm  // feedback resistance

// the output voltage (Vo) of an op-amp circuit due to input offset voltage (Vos) is
Vo1 = ((R1+R2)/(R1)*Vos) ;
disp(' the output voltage (Vo) of an op-amp circuit due to input offset voltage (Vos) is = '+string(Vo1)+' mV ');

// the output voltage (Vo) of an op-amp circuit due to input offset current (Ios) is
Vo2 = R2*Ios ;
disp(' the output voltage (Vo) of an op-amp circuit due to input offset current (Ios) is = '+string(Vo2)+' mV ');

// the total offset voltage is
Vo = Vo1+Vo2 ;
disp(' the total offset voltage (Vo) of an op-amp circuit is = '+string(Vo)+' mV ');