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.

OPA695 Problem Pspice Model Altium Designer

Other Parts Discussed in Thread: OPA695

Hi

 I try to simulate a circuit using a downloaded model from the TI website.

When I added the model to the schematic symbol and mapped the ports.

When I run a simulation I get an error message:

[Error] TXfilter XSpice Error: Syntax error in expression on line: 93

 The error found is in the line:

E_ABM21 $N_0001 0 VALUE { ( V(Dis) / (V(V+) + 1e-6) ) * 5.0 }

I have no clue what is wrong but I attached the model part of my simulation.

Hopefully one of the other users could help me get this simulation running. I do not need the disable pin in my simulation I am currently only performing an AC tranfer sweep.

 

Thans in advance.

 

 

Bert Hennink

 

*Models and Subcircuits:
.SUBCKT OPA695_model + - Dis OUT V+ V-
.PARAM x1 = {1/8}
.PARAM x2 = {x1*2}
.PARAM x3 = {x1*3}
.PARAM x5 = {x1*5}
.PARAM x12 = {x1*12}
.PARAM x16 = {x1*16}
.PARAM x60 = {x1*60}
C_C1         Vmid Dis  2p
X_S1    $N_0001 0 $N_0002 $N_0003 OPA695_model_S1
R_R11         Vmid Dis  100MEG
R_R8         Vmid $N_0004  10k
Q_Q1         $N_0006 $N_0005 $N_0007 PNP8 {x1}
Q_Q4         $N_0008 $N_0008 $N_0005 NPN8 {x1}
Q_Q5         $N_0009 $N_0005 $N_0010 PNP8 {x2}
Q_Q12         $N_0011 $N_0005 $N_0012 PNP8 {x2}
Q_Q9         $N_0013 $N_0005 $N_0014 PNP8 {x2}
Q_Q7         $N_0015 $N_0015 $N_0016 NPN8 {x2}
Q_Q6         $N_0015 $N_0017 $N_0009 PNP8 {x16}
Q_Q14         $N_0011 $N_0017 $N_0018 NPN8 {x1}
Q_Q16         $N_0017 $N_0018 $N_0019 NPN8 {x1}
Q_Q15         $N_0018 $N_0018 $N_0020 NPN8 {x1}
Q_Q10         $N_0011 $N_0011 $N_0021 NPN8 {x16}
Q_Q8         $N_0013 $N_0015 $N_0022 NPN8 {x2}
D_D3         $N_0023 $N_0021 DX 1
D_D1         $N_0021 $N_0024 DX 1
D_D2         $N_0024 $N_0025 DX 1
Q_Q18         $N_0026 $N_0026 $N_0021 PNP8 {x16}
Q_Q17         $N_0026 $N_0015 $N_0027 NPN8 {x2}
R_R24         V- $N_0028  250
X_F1    $N_0002 $N_0029 $N_0006 V- OPA695_model_F1
Q_Q2         V- $N_0006 $N_0005 PNP8 {x1}
R_R18         V- $N_0015  50k
R_R20         V- $N_0022  500
R_R19         V- $N_0016  500
R_R21         V- $N_0019  2k
R_R22         V- $N_0020  2k
R_R23         V- $N_0027  500
D_D5         $N_0028 V- DX 1
Q_Q20         $N_0030 $N_0030 $N_0028 NPN8 {x3}
Q_Q19         $N_0030 $N_0026 $N_0025 PNP8 {x16}
Q_Q25         $N_0031 $N_0030 $N_0032 NPN8 {x12}
Q_Q24         $N_0034 $N_0033 $N_0035 PNP8 {x12}
R_R10         V+ V-  123.609k
E_E1         $N_0004 V- V+ V- 0.5
E_ABM21         $N_0001 0 VALUE { ( V(Dis) / (V(V+) + 1e-6) ) * 5.0  }
R_R9         Dis V+  41k
R_R12         $N_0008 V+  8k
R_R14         $N_0010 V+  500
R_R15         $N_0014 V+  500
R_R16         $N_0012 V+  500
R_R17         $N_0006 V+  72k
R_R13         $N_0007 V+  1987
Q_Q21         $N_0036 $N_0030 $N_0037 NPN8 {x5}
R_R7         $N_0029 Vmid  10k
R_R25         V- $N_0037  150
D_D7         V+ $N_0038 DX 1
R_R26         $N_0038 V+  250
Q_Q22         $N_0033 $N_0033 $N_0038 PNP8 {x3}
R_R27         $N_0039 V+  150
Q_Q23         $N_0036 $N_0033 $N_0039 PNP8 {x5}
D_D8         $N_0039 V+ DX 1
Q_Q13         $N_0017 $N_0006 $N_0013 PNP8 {x1}
Q_Q30         $N_0041 $N_0040 $N_0036 NPN8 {x1}
Q_Q31         $N_0042 $N_0040 $N_0036 PNP8 {x1}
V_V1         $N_0003 Vmid 2.04V
L_L1         + $N_0021  1.3nH
Q_Q11         $N_0033 $N_0011 $N_0025 NPN8 {x16}
D_D4         $N_0025 $N_0023 DX 1
L_L3         $N_0040 OUT  1.3nH
L_L2         $N_0025 $N_0043  1.3nH
C_C2         $N_0036 V+  0.2p
R_R31         $N_0043 -  65
Q_Q32         $N_0044 $N_0044 $N_0041 PNP8 {x60}
Q_Q33         $N_0040 $N_0044 $N_0041 PNP8 {x60}
Q_Q28         $N_0045 $N_0045 $N_0042 NPN8 {x60}
Q_Q29         $N_0040 $N_0045 $N_0042 NPN8 {x60}
Q_Q35         $N_0045 $N_0031 $N_0040 PNP8 {x60}
Q_Q34         $N_0044 $N_0034 $N_0040 NPN8 {x60}
Q_Q27         $N_0042 $N_0036 $N_0034 PNP8 {x60}
Q_Q26         $N_0041 $N_0036 $N_0031 NPN8 {x60}
R_R28         $N_0035 V+  62.5
D_D6         $N_0037 V- DX 1
R_R29         V- $N_0032  62.5
V_V3         V- $N_0042 0.2V
V_V2         $N_0041 V+ 0.2V

  • Hi Bert,

    Altium Designer may not support the ABM (analog behavior model) function or may have a different syntax.

    However, since you do not need the disable function, you can try replacing the line,

    E_ABM21         $N_0001 0 VALUE { ( V(Dis) / (V(V+) + 1e-6) ) * 5.0  }

    with

    V_V21         $N_0001 0 5.000005V

    Assuming the DIS pin is going to be tied to V+ anyway, the value expression will reduce to (1 + 1e-6) * 5.0 = 5.000005V. This change replaced the ABM with a regular voltage source.

    I have moved your post to the Spice models forum. The modeling team may have experience with this issue in Altium Designer and may have better suggestions if the above does not work.

  • I misread the ABM expression:  if the DIS pin is tied to V+ (OPA695 enabled) the fraction  V(Dis) / (V(V+) + 1e-6) will have a value very close to 1, and the total expression will have a value close to 5.0V.

    Therefore, you should replace the E_ABM21 line with

    V_V21         $N_0001 0 5.0V

  • Hi Kristoffer,

     

    I will try this after the weekend.

    I read your mail from home.

    AD has ABM but I am pretty sure this is cause by a difference in syntax interpetatin.

     

    Thanks and have a nice weekend!

     

    Bert

  • Hi Sorry it took me some time to try this.

    There was some more urgent work asking miy time;)

     

    But the good news is that this solution works!

     

    So thanks kristoffer!!!!