daily pastebin goal
21%
SHARE
TWEET

Untitled

a guest Nov 1st, 2018 115 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Lab1
  2.  
  3. ***Settings***
  4. simulator lang=spice
  5. ***Parametrs***
  6. .PARA G=12
  7. .PARA A=200k
  8. .PARA Vdd=5
  9.  
  10. .SUBCKT Opamp N1 N2 N4
  11.  
  12. ***Netlist***
  13. *Elements*
  14.  
  15. R_1 N1 N2 200k*G
  16. R_0 N3 N4 75/G
  17. C_0 N4 0 G*1p
  18. *Controlled Voltage Source*
  19. E_V1 N3 0 N1 N2 200k
  20.  
  21. .ENDS
  22.  
  23. ***Netlist***
  24. X_Inverter 0 2 3 Opamp
  25. R_in 1 2 4k
  26. C_f 2 3 250u
  27. *R_f 2 3 100k*
  28. *V_in 1 0 5*
  29. *V_in 1 0 PULSE(0 5 0 1u 1u 10u 50u)*
  30. V_in 1 0 AC 5 SIN(0 5 1MEG)
  31.  
  32. ***Analysis***
  33. *.DC V_in 0 5 0.5*
  34. *.PRINT DC V(3)*
  35. *.TRAN 0.5u 100u 0*
  36. *.PRINT TRAN V(3)*
  37. *.MEAS TRAN tpd TRIG V(1) VAL='0.5*Vdd' TD=10n RISE=1*
  38. *+TARG V(3) VAL='-5*Vdd' RISE=1*
  39. .AC DEC 10 0.1 1MEG
  40. .PRINT AC V(3)
  41.  
  42. .END
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top