# Chapter 1: Circuit Configuration for Linear Integrated Ciruits¶

## Example 1 Page No:1.81¶

In [1]:
#given
rc=50000;#ohm
re=100000;#ohm
rs=10000;#ohm
rp=50000;#ohm
beta0=2000;
r0=400000;#ohm

#calculation
rc1=(rc*r0)/(rc+r0);
acm=(-(beta0*rc1)/(rs+rp+2*re*(beta0+1e0)))#common mode gain
import math
cmrr=20*(math.log10((1+((2*re*(beta0+1))/(rs+rp)))))#common mode rejection ratio

#result
print 'acm=',round(acm,3);
print 'cmrr=',cmrr,'db'

adm= -1482.0
acm= -0.222
cmrr= 76.4838188131 db


## Example 2 Page No:1.83¶

In [1]:
#given
import math
sr=0.000001;#volt/sec
freq=100000;
vsat=12;
baw=100000;
#determine vx

#calculation
vx=2*(1/(sr*2*3.14*freq))

#result
print 'maximum peak amplitude at 100khz',round(vx,3),'V'

maximum peak amplitude at 100khz 3.185 V


## Example 3 Page No: 1.84¶

In [2]:
#given
import math
V=20;
t=4;
#determine slew rate
#calculation
w=V/t
#result
print'slew rate=',w,'volt/μsec'

slew rate= 5 volt/μsec


## Example 4 Page No: 1.84¶

In [3]:
#given
import math
a=50;
vi=20e-3;
sr=0.5e6;
#determine max frequency
#calculation
vm=a*vi;
freq=sr/(2*3.14*vm)
#result
print 'max frequency of input is ',freq,'hz'

max frequency of input is  79617.8343949 hz


## Example 5 Page No: 1.84¶

In [4]:
#given
import math
sr=0.5e6;
freq=40e3;
a=10;
#determine max peak to peak input signal
#calculation
vm=sr/(2*3.14*freq);
vm=2*vm;
v1=vm/a
#result
print'max peak to peak input signal ',v1,'V'

max peak to peak input signal  0.398089171975 V


## Example 6 Page No: 1.85¶

In [5]:
#given
import math
cmrr=50;
vin1=50e-3;
vin2=60e-3;
vnoise=5e-3;
#calculation
v1=vnoise*acm
print'noise ',round(v1,7),'V'

noise  0.0063247 V


## Example 7 Page No: 1.86¶

In [6]:
#given
import math
sr=35e6;#volt/sec
vsat=15;#volt
#determine time to change from 0 to 15V
#calculation
i=150e-6;#A
w=vsat/sr
w1=i/c;
#result
print'time to change from 0 t0 15 ',round(w,7),'sec'
print'slew rate',w1/1000000,'volt/μsec'

time to change from 0 t0 15  4e-07 sec
slew rate 1.5 volt/μsec


## Example 8 Page No: 1.86¶

In [7]:
#given
import math
sr=2e6;#v/sec
vsat=15;#volt
#determine bandwidth
#calculation

bw=sr/(2*3.14*vsat)
#result
print'bandwidth ',bw,'hz'

bandwidth  21231.4225053 hz


## Example 9 Page No: 1.87¶

In [8]:
#given
import math
iin=30e-9;#A
a=1e5;
rin=1000;#ohm
#determine output offset voltage
#calculation
vid=iin*rin;
v0=a*vid
#result
print'output offset ',v0,'V'

output offset  3.0 V


## Example 10 Page No: 1.86¶

In [9]:
#given
import math
inb1=22e-6;#A
inb2=26e-6;#A
#determine input offset current input base current
#calculation
i1=inb2-inb1
i2=(inb2+inb1)/2
#result
print'input offset current ',i1,'A'
print'input base current ',i2,'A'

input offset current  4e-06 A
input base current  2.4e-05 A


## Example 11 Page No: 1.86¶

In [10]:
#given
import math
inb2=90e-9;#A
inb1=70e-9;#A
a=1e5;
#determine input offset current
#calculation
i1=(inb2+inb1)/2
i2=inb2-inb1
v1=((inb2-inb1)*1000)*a
print'input base current ',i1,'A'
print'input offset current ',i2,'A'
print'input offset  ',v1,'V'

input base current  8e-08 A
input offset current  2e-08 A
input offset   2.0 V


## Example 12 Page No: 1.87¶

In [2]:
#given
import math
vin1=150e-6;#volt
vin2=100e-6;#volt
a=1000;
from array import array
cmrr=array('i',[100,200,450,105])
#determine output voltage
#calculation
vc=(vin1+vin2)/2;
vd=(vin1-vin2);
j=0;
while j<=3 :v0=(a*vd*(1+(vc/(cmrr[j]*vd)))) ;print 'output voltage cmrr ',cmrr[j],'    ',round(v0,3),'V';j=j+1;

output voltage cmrr  100      0.051 V
output voltage cmrr  200      0.051 V
output voltage cmrr  450      0.05 V
output voltage cmrr  105      0.051 V


## Example 13 Page No: 1.87¶

In [13]:
#given
import math
rin=100e3;#ohm
rf1=900e3;#ohm
vc=1;#volt
cmrr=70;
#determine the output voltage
#calculation
v0=(1+(rf1/rin))*vc/3160
print 'output voltage ',round(v0,3),'V'

output voltage  0.003 V


## Example 14 Page No: 1.89¶

In [14]:
#given
import math
sr=0.5e6;#volt/sec
a=50;
freq=20e3;#hz
#determine max peak to peak voltage
#calculation
v1=sr/(2*3.14*freq*a)
print'input voltage ',round(v1,3),'V'

input voltage  0.08 V


## Example 15 Page No: 1.90¶

In [15]:
#given
import math
sr=50e6;#volt/sec
rin=2;
vimax=10;
#determine max frequency
#calculation
vm=vimax*(1+rin);
freq=sr/(2*3.14*vm)/10e3;
print 'max frequency ',round(freq,3),'Khz'

max frequency  26.539 Khz