This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with using TI OPA633.LIB in microcap 10 ( actually MC10 version 10.0.9.1)

The original OPA633.LIB file was downloaded from TI website ( dated 03/10/2013, model 1.0 Release to Web).

I have been trying to simulate a very simple circuit in order to test the OPA633.LIB model, but without success.

I am not very experienced with making simulations with Microcap 10, a word document including screenshots has been attached. 3022.Attempt to import the OPA633.LIB to MC-10.docx

 

The OPA633.LIB File attached contains my "correction" made to "solve" problem 1. 4477.opa633.lib

 

Problem 1:

In SUBFCT call XU10:

XU10 VDD VSS 12 13 14 15 GNDF CMR

+ PARAMS VMAXIO = 2 VMINIO = 2

 I got a Microcap error message stating: "Not a SUBFCT parameter".

Looking in the  .SUBFCT  CMR definition I found:

*******************************

 .SUBFCT CMR VDD VSS VIP VIM VOP VOM CNDF

+ PARAMS VMAX = 0 VMIN = 0

ECLAMPP VOP GNDF VALUE = { LIMIT(V(VIP,GNDF),V(VDD,GNDF) - VMAX, V(VSS,GNDF) + VMIN)}

ECLAMPM VOM GNDF VALUE = { LIMIT(V(VIM,GNDF),V(VDD,GNDF) - VMAX, V(VSS,GNDF) + VMIN)}

.ENDS

*******************************  

I changed the XU10 call to the CMR Subfunction as follows:

XU10 VDD VSS 12 13 14 15 GNDF CMR

+ PARAMS VMAX = 2 VMIN = 2

This change caused the above mentioned Microcap error message to disappear - but I do not know if the change will produce a correct model?? Please comment.

 

 

 Then i was exposed to Problem 2:

 In the .SUBFCT OUT_CURRENT_CLAMP definition:

 

******************************

.SUBFCT OUT_CURRENT_CLAMP IN OUT VIMON

+ PARAMS  RSER  =  1 IMAX  =  10M   IMIN  =  10M

HSENS  VIMON 0  VSENS 1

VSENS OUTy OUT 0

GRESP OUTx OUTy VALUE = { LIMIT(V(OUTx, OUT)/RESR, IMAX, -IMIN) }

GRESN  IN  OUTx  VALUE = { -V(IN,OUTx)RSER }

.ENDS

*****************************

was the blue above marked line marked in black, and the following message was given:

Error: Nodes IC1.XU12.VI, IC1.XU15.OUTX have no DC path to ground. Part          IC1.XU15.GRESP     File: C:\MC10\library\OPA633.LIB

 

Can any suggestions be given to me on how to get rid of this error message???

N.B. In the Microcap Options has  "Path to ground" been selected!.

 

  • Povl Abrahamsen: further notes to my problem:

    The first part of the second problem:  "Nodes IC1.XU12.VI has no DC path to ground " could be eliminated by adding a "Dummy" resistor of 1 GOhm in  "SUBCKT TF VI  VO  GNDF   etc "  between the nodes  VI and GNDF.

    Trying  the same type of solution to the second part of problem 2 caused the MC 10 to crash and freeze!!.

    If I instead enabled the MC 10 option "Add DC Path to Ground" this would also cause the MC 10 to crash and freeze!!

    I tried to interpretate the SUBCKT  OUT_CURRENT_CLAMP the best I could, and my result was, thet the Voltage Controlled Current Sources  GRESP  and  GRESN  were actually put in series - which to my expectation is not permitted under any conditions - including in any Spice  based Simulation!?

    I am not aware of which actual circuits have been used for generating the PSpice models => I do not have any clues as to how to rectify the problem with the SUBCKT  OUT_CURRENT_CLAMP.

    All suggestions will be very welcome.

    Povl Abrahamsen