Convert LM386 into Multisim

Discussion in 'The Projects Forum' started by disney_snoopy, Mar 26, 2009.

  1. disney_snoopy

    Thread Starter Member

    Feb 19, 2009
    28
    0
    Hi all,

    I manage that the Multisim in our college doesnt have the LM386 component.
    As i know we can create a component by our own in Multisim.

    Can anyone here teach me how to convert the datasheet to Multisim?
    I have the PSpice file for my OrCad but not for Multisim. Plz advise
     
  2. StoN

    New Member

    Oct 19, 2007
    3
    0
    Here is a link to a tutorial to create a new component.

    http://zone.ni.com/devzone/cda/tut/p/id/3173

    You can also take an existing component that is very similar and just make adjustments to it, and even use an existing SPICE model in place of the original one. Make sure to allocate your pins properly.

    Good luck
     
  3. StoN

    New Member

    Oct 19, 2007
    3
    0
  4. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    Ron H Posted the LM 386 Spice Model in This Thread

    Use it with the component wizard in Multisim to build a 386.

    I'll post it again here:

    Code ( (Unknown Language)):
    1.  
    2. q1 gnd inn 10011 ddpnp
    3. r1 inn gnd 50k
    4. q2 gnd inp 10012 ddpnp
    5. r2 inp gnd 50k
    6.  
    7.  
    8. * differential input stage, gain-setting
    9. * resistors, and internal feedback resistor:
    10.  
    11.  
    12. q3 10013 10011 10008 ddpnp
    13. q4 10014 10012 g1 ddpnp
    14. r3 vs byp 15k
    15. r4 byp 10008 15k
    16. r5 10008 g8 150
    17. r6 g8 g1 1.35k
    18. r7 g1 out 15k
    19.  
    20.  
    21. * input stage current mirror:
    22.  
    23.  
    24. q5 10013 10013 gnd ddnpn
    25. q6 10014 10013 gnd ddnpn
    26.  
    27.  
    28. * voltage gain stage & rolloff cap:
    29.  
    30.  
    31. q7 10017 10014 gnd ddnpn
    32. c1 10014 10017 15pf
    33.  
    34.  
    35. * current mirror source for gain stage:
    36.  
    37.  
    38. i1 10002 vs dc 5m
    39. q8 10004 10002 vs ddpnp
    40. q9 10002 10002 vs ddpnp
    41.  
    42.  
    43. * Sziklai-connected push-pull output stage:
    44.  
    45.  
    46. q10 10018 10017 out ddpnp
    47. q11 10004 10004 10009 ddnpn 100
    48. q12 10009 10009 10017 ddnpn 100
    49. q13 vs 10004 out ddnpn 100
    50. q14 out 10018 gnd ddnpn 100
    51.  
    52.  
    53. * generic transistor models generated
    54. * with MicroSim's PARTs utility, using
    55. * default parameters except Bf:
    56.  
    57.  
    58. .model ddnpn NPN(Is=10f Xti=3 Eg=1.11 Vaf=100
    59. + Bf=400 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
    60. + Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
    61. + Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
    62. + Tf=1n Itf=1 Xtf=0 Vtf=10)
    63.  
    64.  
    65. .model ddpnp PNP(Is=10f Xti=3 Eg=1.11 Vaf=100
    66. + Bf=200 Ise=0 Ne=1.5 Ikf=0 Nk=.5 Xtb=1.5 Var=100
    67. + Br=1 Isc=0 Nc=2 Ikr=0 Rc=0 Cjc=2p Mjc=.3333
    68. + Vjc=.75 Fc=.5 Cje=5p Mje=.3333 Vje=.75 Tr=10n
    69. + Tf=1n Itf=1 Xtf=0 Vtf=10)
    70.  
    71.  
    72. .ends
    73.  
    *----------end of subcircuit model-----------
     
  5. disney_snoopy

    Thread Starter Member

    Feb 19, 2009
    28
    0
    Can anyone tell me what should i put fir the pin 1 and pin 8 type?
    is bidirectional, passive, NC or power?

    and pin 2 is my -ve feedback input and izit only put input for the type?
    also for pin 3 +ve feedback input?
    and also the pin7 the bypass?

    Can tell me what to put for pin parameter above pin?

    Thank You
     
  6. disney_snoopy

    Thread Starter Member

    Feb 19, 2009
    28
    0
    izit copy your this PSpice file and save it to a .txt file?
    or i need to save in a different name file? such as orcad using .lib...
    Mutisim used what file?
     
  7. thatoneguy

    AAC Fanatic!

    Feb 19, 2009
    6,357
    718
    I pasted that in the model part using the "Model Wizard" in multisim, then chose "copy" for a footprint, and assigned the pins.

    When you start the "Model Wizard", it walks you through it, the hard part is the actual electrical model above. I choose "copy from" for another amplifer (i believe Iused an op-amp), once the model is added, the pins are assigned correctly, they only need to be matched to the footprint for ultiboard.
     
  8. disney_snoopy

    Thread Starter Member

    Feb 19, 2009
    28
    0
    But i face a problem when im in the step 4. refer the attachment here and have a look.
    When i proceed to step 6 i paste the code that u paste it here and click next, it does come out an error. refer the 2nd attachment.
     
Loading...