Академический Документы
Профессиональный Документы
Культура Документы
Simulate the transient response of the following monostable mulivibrator using SPICE. As
an input trigger signal vI, using the illustrated waveform. Simulate the circuit from 0 to
3ms. Assume R1 = 1K, R2 = 9K, R3 = 50K, R4 = 100K, C1 = Cs = 0.1F, OP-Amp
A741, diode 1N4148. Use biasing voltage for the Op-Amp such that it saturates to 15V
(vA = 15 V at steady state). Plot the voltage vA, vB, vC, and vE.
Schematic
Input signal
Solution
For a preliminary test of the OPAM subcircuit model on SPICE, I did the following, with
the purpose of understand how use the sub circuits on SPCIE language.
Netlist Results
Simulation
V(in) V(E)
V(C)
V(B)
V(in) V(A)
Exercise 2
Using SPICE as a curve tracer, plot versus IB taking VCE as a parameter. Vary IB from
0.5A to 300A, and generate 4 plots for VCE = 1v, 10v, 19v and 28v, respectively. Plot
two families of the curves, one for the BJT 2N2222, and other one for the BJT 2N3904.
Solution:
Figure 6 Netlist - Exercise 2
150 @
IB = 100A
IC 15mA
Verification Results
IC
DC = IC = IB DC
IB
From plots we takes the following values
IB 100A, 150
I C = (100 A )(150 ) = 15 mA
Figure 7 Gain () Verification
In the figure 7 is showing the relationship between base current and collector current, on
the exercise was took the gain of the transistor when the base current is equal to 100uA. Is
appreciate that gain is affected to base current of the transistor. Is appreciate that gain is
affected by base current of the transistor. The gain of the transistor is keep constant to until
it is operating in saturation region.
IB(A) IB(A)
Gain @ VCE = 19v Gain @ VCE = 28v
IB(A) IB(A)
@ VCE = 28v
@ VCE = 19v
@ VCE = 10v
@ VCE = 1v
IB(A)
IC @ VCE = 28v
IC @ VCE = 19v
IC @ VCE = 10v
IC @ VCE = 1v
IB(A)
IB(A) IB(A)
Gain @ VCE = 19v Gain @ VCE = 28v
IB(A) IB(A)
@ VCE = 28v
@ VCE = 19v
@ VCE = 10v
@ VCE = 1v
IB(A)
IC @ VCE = 28v
IC @ VCE = 19v
IC @ VCE = 10v
IC @ VCE = 1v
IB(A)
Using the interactive interpreter language of WinSpice, write a file to plot 6 times the
small signal voltage gain of the amplifier shown below, from 10Hz to 900MHz, assuming
that for each plot the parameter of the MOSFETs take the values of 0V-1, 0.01V-1, 0.02V-
1
, , 0.05V-1. Assume that the ionternal parameters of the MOSFETs are: nCOX =
60A/V2, pCOX = 30A/V2, VTN = 0.8V, VTP = -0.8V (Use level 2 MOSFET models).
Solution:
Vo = 10v
Vo = 9.56v
Vo @ = 0.02 Vo @ = 0.03
Vo = 9.25v Vo = 8.9v
Vo @ = 0.04 Vo @ = 0.05
Vo = 8.75v Vo = 8.55v
Figure 16 Vo vs LAMBDA
Exercise 4
Usando SPICE, obtener la respuesta a la frecuencia del circuito, de 8Hz a 8KHz, en escala
lineal, graficando:
a) La impedancia de entrada del circuito, Zin = vL/iL (graficar magnitud de Zin y ngulo
de fase de Zin en grados)
b) La inductancia equivalente Leq de la impedancia de entrada, Leq = Im{Zin}/(2f).
Figure 17 Exercise 4 - Homework 3
Solucin:
El valor de inductancia esperado es de 1H, este valor es alcanzado por el circuito dentro un
primer rango de frecuencia, aproximadamente de 8Hz a 2KHz, despus de los 2KHz se
aprecia una diferencia entre el valor esperado y el valor obtenido. Esto debido tambin al
efecto de las capacitancias parasitas del dispositivo. Esto se puede apreciar en la figura 22
donde claramente se aprecia el efecto de la frecuencia sobre la inductancia.
Figure 23 Phase of the current of the circuit CGI with UA741 OPAM
Figure 24 Phase of the input current vs Phase of the input voltage with UA741 OPAM
En la figura 25 se muestra la impedancia del circuito CGI con un modelo spice de un OPAM ideal,
como se esperaba la impedancia del circuito mantiene una pendiente constante, es decir el valor de
la inductancia no se ve afectada por la frecuencia de la seal de entrada, como sucede en un
inductor ideal.
Figure 30 Impedance of the CGI with UA741 OPAM model spice vs ideal OPAM model spice
Figure 31 Inductance of the CGI with UA741 OPAM model spice vs ideal OPAM model spice
Figure 32 Current phase of the CGI with UA741 OPAM model spice vs ideal OPAM model spice
Exercise 5
1
= + ln + ln
RT (T=273 K) = 2.2k
RT (T=300 K) = 1k
RT (T=320 K) = 395
Solucin:
Ecuacin 1
1
+ ln 2.2 10 + ln 2.2 10 =
273
Ecuacin 2
1
+ ln 1 10 + ln 1 10 =
300
Ecuacin 3
1
+ ln 395 + ln 395 =
320
Utilizando MATLAB se puede resolver el sistema ecuaciones simultneas, el programa
siguiente resuelve el sistema.
Figure 33 MATLAB program to solve the equation system simultaneous
A = 4.702567445944E-3
B = -4.598813380163E-4
C = 5.483662909584E-6
Despejando RT de la ecuacin Steinhart-Hart, se obtiene la siguiente expresin:
Ecuacin 41:
! " !#
=
Donde:
Ecuacin 51:
1
$=
Ecuacin 61:
$
& = '( ) +
3 4
Si partimos de la ecuacin:
1
= + ln + ln
Si ln(RT) = x y sustituimos:
1 1 1
+ + ++ = + + ++ =0 ( + + ++ = 0)
1 1
+ + ++ = 0; / = ,1 =
+ + /+ + 1 = 0
+ + /+ + 1 = 0 ; + = 3 + 4
3+4 + 3 + 4 / + 1 = 0 3 + 33 4 + 334 + 4 + 3 + 4 / + 1 = 0
3 + 4 + 334 + / 3 + 4 + 1 = 0
5 5
1) 334 + / = 0 34 = 34 = 6 7
2) 3 + 4 + 1 = 0 3 + 4 = 1
3 + 4 = 1 3
3 + 3 4 = 13
/
3 + 34 = 13 ; 34 =
3
/
3 + 13 = 6 7
3
De la ecuacin anterior el primer termino se puede escribir de la forma a2 +2ab+b2
1 1 1 /
3 + 23 6 7 + 6 7 = 6 7 + 6 7
2 2 2 3
1 1 /
63 + 7 = 6 7 + 6 7
2 2 3
Despejando u
1 1 / 1 1 /
3 + = '6 7 + 6 7 ; 3 = + '6 7 + 6 7
2 2 3 2 2 3
1 1 / 1 1 /
3 = 8 + '6 7 + 6 7 = 9 + '6 7 + 6 7 :
2 2 3 2 2 3
1 1 /
3 + 4 = 1 4 = 1 <9 + '6 7 + 6 7 : =
2 2 3
1 1 /
4 = '6 7 + 6 7
2 2 3
1 1 / 1 1 /
4 = 8 '6 7 + 6 7 = 9 '6 7 + 6 7 :
2 2 3 2 2 3
Y recordamos que:
+ =3+4
Por lo tanto
; ;
1 1 / 1 1 /
+ = 9 + '6 7 + 6 7 : + 9 '6 7 + 6 7 :
2 2 3 2 2 3
Que esta es una raz de la ecuacin, pero como es una ecuacin de 3 grado tiene 3 races.
Las races faltantes las podemos encontrar de la siguiente manera.
La ecuacin
3 + 4 = 1
3 + 4 = 3 + 4 3 34 + > = 1
Y como se comprob u+v es una raz de la ecuacin, en este caso solo nos interesa la
siguiente expresin:
3 34 + 4 = 0
/
3 + 234 + 4 = 34 + 234 ; 34 =
3
/
3+4 = 3 6 7 3 + 4 = /
3
3 + 4 = ?/
Donde:
;
@ @ 5 @ @ 5
3 = ' + 6 7 + 6 7 = + 6 7 + 6 7 !
;
@ @ 5 @ @ 5
4 = ' 6 7 + 6 7 = 6 7 + 6 7 !
Por lo tanto:
;
1 1 /
3 = ?/ 9 '6 7 + 6 7 :
2 2 3
1 1 /
4 = ?/ 9 + '6 7 + 6 7 :
2 2 3
Adems:
; ;
1 1 / 1 1 /
+ = B<?/ 9 '6 7 + 6 7 : = + <?/ 9 + '6 7 + 6 7 : =
2 2 3 2 2 3
; ;
1 1 / 1 1 /
+ , = B2?/ 9 '6 7 + 6 7 : 9 + '6 7 + 6 7 :
2 2 3 2 2 3
+ + /+ + 1 = 0
Son las siguientes:
; ;
@ @ 5 @ @ 5
+C = + 6 7 + 6 7 ! + 6 7 + 6 7 !
; ;
@ @ 5 @ @ 5
+ = '2?/ 6 7 + 6 7 ! + 6 7 + 6 7 !
; ;
@ @ 5 @ @ 5
+ = '2?/ 6 7 + 6 7 ! + 6 7 + 6 7 !
1 2 / 3
=( ) +( )
2 3
S, > 0, la ecuacin pose una solucin real y dos complejas.
S, = 0, las 3 races son iguales y al menos 2 son iguales.
S, < 0, las 3 races son reales
En nuestro caso
1
/= ,1 =
A = 4.702567445944E-3
B = -4.598813380163E-4
C = 5.483662909584E-6
p = -83.86389638
q = 189.5747058 @ T = 273 K
2 3
189.5747058 83.86389638
= ! + ! = 12860.82529
2 3
Es el caso
Como se demuestra las 3 races son reales, la ecuacin en funcin de la temperatura para
obtener la resistencia es la siguiente:
; ;
N N
C MM C R C MM C R
J M J J M J
I 9 K : M
MI9 K :Q Q I 9 K : M
MI9 K :Q Q
M S M S
H MH P 6 7 P H MH P "96 K 7: P
H M
"MH K : P "H M P
H M P "9 P H M
MH P P
H MH P P H MH P P
M
M M
M
LG O LG O
= G O G O
Esta es la expresin que se indica en la literatura y que fue determinada, pero al momento
de querer evaluar la siguiente parte:
189.5747058 83.86389638
'( ) +( ) = 12860.82529 =
2 3
12860.82529 = U12860.82529VU1V
= 113.4055787 W
Esto indica un error, se esperan cantidades reales, y lo que se obtienen son cantidades
imaginarias, que no concuerdan con lo esperado. Dado que el trabajo y las soluciones
encontradas pudieran estar equivocadas o ser incorrectas, se opto por utilizar el poder de
cmputo de MATLAB, mediante su procesamiento simblico, el resultado es el siguiente:
Races
Figure 35
Figure 36
El cmputo simblico de MATLAB, arroja resultados distintos, una raz real y dos
complejas, pero muestra el mismo problema, en conclusin, no se pudo reolver.
Exercise 6
Medidor de Flujo. Se desea disear y simular con SPICE la electrnica necesaria para
acondicionar la seal proveniente de un sensor de flujo volumtrico, de forma que cuando
el flujo sea 20gal/min el voltaje de salida del circuito sea 0V, y caudal el flujo sea 150
gal/min el voltaje sea 5V.
Utilizando el siguiente circuito de acondicionamiento para la seal del sensor de flujo, con
VR = 0.7V.
Solucin:
X
X = YC Z Z = ( )
YC
La salida del voltaje del sensor est determinada por la siguiente expresin:
[\ = Y Z
X
[\ = Y ( )
YC
Q1 = 20 gal/min
Q2 = 150 gal/min
bcd
^ I 20eaf Q
[\C = 61.8_`a7 H bcd P
= 50.41928538 10 V
119.5 eaf;
G psiR O
bcd
^ I 150eaf Q
[\ = 61.8_`a7 H bcd P
= 2.363404002V
eaf
119.5 ;
G psiR O
Vs
3
2.5
1.5
Vs
0.5
0
0 20 40 60 80 100 120 140 160
Q (gal/min)
Figure 41
La etapa 1 se puede resolver y encontrar los voltajes en cada uno de sus nodos, por medio
de las siguientes expresiones.
VA = VSENSOR
VB = 0
R
VC = VA 1 + 2
R1
R
VD = VA 2
R1
(VC VD ) = VA R1 + 2 R2
R1
Figure 42
R
V O= (V D V C ) 4
R3
Figure 43
2 R R R
VO = VR + VSENSOR 1 + 2 4 6 R1 = 2R2
R1 R3 R5
R R
VO = VR + 2VSENSOR 4 6 R4 = R3
R3 R5
R
VO = (VR + 2VSENSOR ) 6
R5
Figure 44
Se establecieron los siguientes valores, que se encuentran dentro del rango comercial.
R1 = 2.4k
R2 = 1.2k
R3 = 1.2k
R4 = 1.2k
R5 = 1.2k
R6 = 1.49k
Se espera que la salida al final del circuito acondicionar, a una entrada lineal, presente la
siguiente respuesta:
Sensor Transfer Function
6
4
V
m2 = 38.46153846 E 3
gal
min
3 Vs_1(Volts)
Vs_2(Volts)
V
1 m1 = 17.79219013E 3
gal
min
0
0 20 40 60 80 100 120 140 160 Q (gal/min)
Figure 45
El circuito acondicionador de seal es el siguiente:
vina c e
a g
h
b
vo
k
vr
vinb d f