Various projects using Raspberry Pi
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
1.8 KiB

  1. raspiHEAD headphone amplifier
  2. *
  3. * simulation of the analog amplifier stage after the pcm2704 dac
  4. * Torsten Meissner, 2012
  5. *
  6. * NE5532 subcircuit definition
  7. ***** NE5532 Source: Texas Instruments NE5534
  8. * C2 added to simulate compensated frequency response (Uwe Beis)
  9. * NE5532 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
  10. * CREATED USING NE5534 model from Texas InstrumentsAT 12:41
  11. * (REV N/A) SUPPLY VOLTAGE: +/-15V
  12. * CONNECTIONS: NON-INVERTING INPUT
  13. * | INVERTING INPUT
  14. * | | POSITIVE POWER SUPPLY
  15. * | | | NEGATIVE POWER SUPPLY
  16. * | | | | OUTPUT
  17. * | | | | |
  18. .SUBCKT NE5532 1 2 3 4 5
  19. *
  20. C1 11 12 7.703E-12
  21. C2 6 7 23.500E-12
  22. DC 5 53 DX
  23. DE 54 5 DX
  24. DLP 90 91 DX
  25. DLN 92 90 DX
  26. DP 4 3 DX
  27. EGND 99 0 POLY(2) (3,0) (4,0) 0 .5 .5
  28. FB 7 99 POLY(5) VB VC VE VLP VLN 0 2.893E6 -3E6 3E6 3E6 -3E6
  29. GA 6 0 11 12 1.382E-3
  30. GCM 0 6 10 99 13.82E-9
  31. IEE 10 4 DC 133.0E-6
  32. HLIM 90 0 VLIM 1K
  33. Q1 11 2 13 QX
  34. Q2 12 1 14 QX
  35. R2 6 9 100.0E3
  36. RC1 3 11 723.3
  37. RC2 3 12 723.3
  38. RE1 13 10 329
  39. RE2 14 10 329
  40. REE 10 99 1.504E6
  41. RO1 8 5 50
  42. RO2 7 99 25
  43. RP 3 4 7.757E3
  44. VB 9 0 DC 0
  45. VC 3 53 DC 2.700
  46. VE 54 4 DC 2.700
  47. VLIM 7 8 DC 0
  48. VLP 91 0 DC 38
  49. VLN 0 92 DC 38
  50. .MODEL DX D(IS=800.0E-18)
  51. .MODEL QX NPN(IS=800.0E-18 BF=132)
  52. .ENDS
  53. vin 1 0 pulse (0.0V 1.0V 2ms) ac 1.0 dc 0.0
  54. vcc 3 0 DC 18
  55. c1 1 2 100.0u
  56. c2 6 8 1.0m
  57. c3 4 0 100.0u
  58. c4 7 0 100.0u
  59. c5 3 0 100.0n
  60. r1 2 4 100.0K
  61. r2 5 6 10.0K
  62. r3 3 4 10.0K
  63. r4 5 7 10.0K
  64. r5 4 0 10.0K
  65. r6 8 0 16.0
  66. XOPA 2 5 3 0 6 NE5532
  67. .control
  68. * dispose of any 'save' statements from previous runs
  69. delete all
  70. * perform an ac analysis
  71. ac dec 10 0.1Hz 50kHz
  72. * plot the magnitude of the voltage at node 2 vs frequency
  73. plot db(v(8)) xlog
  74. plot ph(v(8)) xlog
  75. .endc
  76. .end