Question about importing spice models

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Question about importing spice models

Post by broos72482 »

Dear Mr/Mrs,

I've imported the hardware design of the SFH6916 optocoupler. I've found a spice model
(see below) but run into trouble when following the tutorial on simulation.

The problem I ran into is the following:
- I've defined the PRIMITIVE property, THe SPICEMODEL, the SPICEFILE and the SPICEPINS.
- The SPICEPINS seems to be the problem
Error_messages.PNG
Error_messages.PNG (19.54 KiB) Viewed 1615 times
I've got the spice model from here:
https://www.vishay.com/product/83687/ta ... tools-ppg/
David
Site Admin
Posts: 2267
Joined: Mon 2006-02-20 14:56
Location: Head Office
Contact:

Re: Question about importing spice models

Post by David »

Hi,

I don't think that this is a Berkley SPICE model so therefore not supported... But I will check with the Dev guys, thanks.

Regards,
Dave.
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Question about importing spice models

Post by Ettore »

Unfortunately this is a PSPICE Cadence format model which is not Berkley SPICE format supported, as said.
However, in this case it's possible to translate it in PROSPICE primitives (the Proteus SPICE).

To get the translated model and instruction how to use it, go to LIBRARIES AND MODELS->"Library and Model Requests" licensed user's forum: the topic is "SFH6916 model".
Kind regards,
Ettore Arena - Labcenter Electronics.
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Re: Question about importing spice models

Post by broos72482 »

LIBRARIES AND MODELS->"Library and Model Requests" licensed user's forum
Where can i find this forum. What is the url?
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Question about importing spice models

Post by Ettore »

As your status appears as "Professional User" you should see almost all additional forum sections. The link is here, let us know if you can see it. viewtopic.php?t=8378
Kind regards,
Ettore Arena - Labcenter Electronics.
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Re: Question about importing spice models

Post by broos72482 »

Okay i've managed to follow the steps in the LIBRARY AND MODELS forum.
So what I dit was the following and try to attach the MODEL FILE to my SFH6916 model:
  • I put the BJT_5MA.MDF in de models directory.
  • I've defined a property MODFILE=BJT_5MA.MDF
  • I've defined a property REL_CTR=1.
  • I've defined a property BF=100
Now the simulation gives the following error messages when stopped:
Error_messages1.png
Error_messages1.png (35.51 KiB) Viewed 1560 times
It seems it doesn't find the correct pins. So my thought was: "Is it possible to connect a subckt to an existing device ?"
In you're example project you can zoom in on the opto-coupler and there is the schematic model of the opto-coupler defined and the pins .
But I don't now how to do that with my existing model, since there is no child sheet in my existing device.
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Re: Question about importing spice models

Post by broos72482 »

Error_messages2.png
Error_messages2.png (18.37 KiB) Viewed 1560 times
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Question about importing spice models

Post by Ettore »

Could you please post your project test file ?
I'm not exactly sure what are you doing but It seems you're drawing a single part with 4 couplers where I was expecting you were making a Multi-Element Homogeneous Device with four identical sections as for example like LM324. The BJT_5MA.MDF model is for only one section, though.
Kind regards,
Ettore Arena - Labcenter Electronics.
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Re: Question about importing spice models

Post by broos72482 »

In the attachment i've included the testproject a 5Vdc to 24Vdc 0,5A driver circuit.
Attachments
Test1a.pdsprj
(22.13 KiB) Downloaded 1072 times
Ettore
Labcenter Staff
Posts: 2932
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Question about importing spice models

Post by Ettore »

Ok, here it is your version fixed. Type CTRL+C when your mouse pointer is over U1 to see how you should have done that to make it to work.
Test1a.pdsprj
(18.72 KiB) Downloaded 1072 times

However I think that a more professional method (and much better adopted practice) is what we call Multi-Element Homogeneous Device. You see that approach in SSH6916.pdsprj file. The SSH6916_test.pdsprj is the your test project with Multi-Element Homogeneous Device approach. In order to work both TIP117.LIB and BJT_5MA.MDF models must be in the same directory of those projects.
SFH6916.pdsprj
(6.72 KiB) Downloaded 1070 times
SFH6916_test.pdsprj
(8 KiB) Downloaded 1074 times
Kind regards,
Ettore Arena - Labcenter Electronics.
broos72482
Professional User
Posts: 6
Joined: Wed 2023-04-12 17:08

Re: Question about importing spice models

Post by broos72482 »

Thanks very much. :D
Post Reply