DesignSoft
December 17, 2017, 10:47:21 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to TINACloud, the cloud based version of TINA, running in your browser without any installation and anywhere in the world. For limited time, now you can get it for free if you purchase a new license or upgrade to v10 version of TINA at www.tinacloud.com.  With this great extension you can present or modify your designs wherever you are in the world and even while travelling.

We are eager to hear from you any comments and feedback.
 
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: importing micro model with sub circuits  (Read 198 times)
dbrown2k
Newbie
*
Posts: 2


View Profile
« on: October 17, 2017, 08:41:27 PM »

So I have a micro model from the MAXIM website for a current sense amplifier. When I test to see if it compiles its fine, but when I come to import it I get a choice of 3 sub-circuits where it should be using all of them.

How do I import this into TINA? or how do you re-factor / collapse multiple subcircuits into a single 'file'? (i've not generated my own spice models so have no idea about the syntax).

Code:
* MAX9634F MACROMODEL
* ------------------------------
* Revision 0, 07/2012
*********************************
.subckt MAX9634F RS+ RS- OUT GND
X_1 OUT 2 GND RS+ 5 RS- MAX9634
.ends
*********************************
.subckt MAX9634 1 2 3 4 5 6

V_MAX9634_V1         MAX9634_N102868240 3 3mV
G_MAX9634_G1         MAX9634_N10291173 3 4 3 13.0435n
C_MAX9634_C1         3 MAX9634_N10293664  1n 
D_MAX9634_D5         MAX9634_N10307477 MAX9634_N10286938 diodemacro_ideal
I_MAX9634_I1         MAX9634_N10291173 3 DC 0.18478u 
R_MAX9634_R2         MAX9634_N10286582 4  200 
D_MAX9634_D6         MAX9634_N10286918 MAX9634_N10307477 diodemacro_ideal
V_MAX9634_AMP_Vic2         MAX9634_AMP_N99860681 3 28V
G_MAX9634_AMP_Gcm1         MAX9634_N10286736 3 MAX9634_AMP_N9990110 3
+  -12.589E-9
G_MAX9634_AMP_G1         MAX9634_N10286736 3 MAX9634_N10286582
+  MAX9634_AMP_N9985356 -1
R_MAX9634_AMP_RG         3 MAX9634_N10286736  1Meg 
E_MAX9634_AMP_Ecm         MAX9634_AMP_N99899100 3 MAX9634_AMP_N9985410 3 1
R_MAX9634_AMP_Ri+         MAX9634_AMP_N9985410 MAX9634_N10286582  500Meg 
R_MAX9634_AMP_Rcm1         MAX9634_AMP_N9990142 MAX9634_AMP_N9990110  1 
C_MAX9634_AMP_Cgbw         3 MAX9634_N10286736  0.0501u 
R_MAX9634_AMP_Rcm2         3 MAX9634_AMP_N9990142  24 
D_MAX9634_AMP_D1         MAX9634_N10286736 MAX9634_N10289958 diodemacro_ideal
E_MAX9634_AMP_Eic1         MAX9634_AMP_N9986028 3 MAX9634_AMP_N9985410
+  MAX9634_AMP_N99859541 -1E5
R_MAX9634_AMP_Ri-         MAX9634_N10286590 MAX9634_AMP_N9985410  500Meg 
L_MAX9634_AMP_Lcm         MAX9634_AMP_N9990142 3  0.15279mH 
D_MAX9634_AMP_D2         3 MAX9634_N10286736 diodemacro_ideal
G_MAX9634_AMP_Gcm2         MAX9634_AMP_N9990110 3 MAX9634_AMP_N9990098 3 -1
V_MAX9634_AMP_Vic3         MAX9634_AMP_N99859541 3 1.5V
M_MAX9634_AMP_M1         MAX9634_N10286736 MAX9634_AMP_N9986042 3 3 NJNT L=1u
+  W=2u
V_MAX9634_AMP_Voff         MAX9634_AMP_N9985356 MAX9634_N10286590 0.1mV
C_MAX9634_AMP_Ccm         MAX9634_AMP_N99899100 MAX9634_AMP_N9990098  16m 
M_MAX9634_AMP_M2         MAX9634_N10286736 MAX9634_AMP_N9986028 3 3 NJNT L=1u
+  W=2u
E_MAX9634_AMP_Eic2         MAX9634_AMP_N9986042 3 MAX9634_AMP_N9985410
+  MAX9634_AMP_N99860681 5E6
R_MAX9634_AMP_Rcm         3 MAX9634_AMP_N9990098  1Meg 
M_MAX9634_M1         MAX9634_N10286582 MAX9634_N10286736 MAX9634_N10307477 3
+  NAMP L=1u W=500u
E_MAX9634_E2         MAX9634_N10295792 3 4 3 1
E_MAX9634_E1         MAX9634_N10289958 3 MAX9634_N10293664 3 1
X_MAX9634_F1    6 MAX9634_N10291173 4 3 MAX9634_MAX9634_F1
D_MAX9634_D7         1 MAX9634_N10286938 diodemacro_ideal
D_MAX9634_D8         MAX9634_N10286918 1 diodemacro_ideal
D_MAX9634_D11         MAX9634_N10293664 MAX9634_N10295792 diodemacro_ideal
I_MAX9634_Ish         MAX9634_N10286938 MAX9634_N10286918 DC 7.5mA 
G_MAX9634_G2         MAX9634_N10293664 3 MAX9634_N10295792 3 -5E-6
D_MAX9634_D10         MAX9634_N102868240 1 diodemacro_ideal
D_MAX9634_D12         3 MAX9634_N10293664 diodemacro_ideal
R_MAX9634_R3         MAX9634_N10286590 6  200 
R_MAX9634_R1         3 1  10k
******************
.model diodemacro_ideal d(n=0.001)
.model NJNT nmos(VTO=0.5 KP=50E-2)
.model NAMP nmos(VTO=0.1 KP=100E-6)
.ends MAX9634
******************
.subckt MAX9634_MAX9634_F1 1 2 3 4 
F_MAX9634_F1         3 4 VF_MAX9634_F1 1
VF_MAX9634_F1         1 2 0V
.ends MAX9634_MAX9634_F1
******************

* Copyright (c) 2003-2012 Maxim Integrated Products.  All Rights Reserved.
Logged
horvatht
Global Moderator
Full Member
*****
Posts: 139


View Profile
« Reply #1 on: October 18, 2017, 01:45:37 AM »

You should select the main (top level) subcircuit which is in your case 'MAX9634F'
Logged
dbrown2k
Newbie
*
Posts: 2


View Profile
« Reply #2 on: October 18, 2017, 08:07:07 AM »

Thanks, that makes sense, but was not clear initially.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!