PSPICE error using SG3525A (ERROR -- Invalid device in subcircuit)
时间:03-25
整理:3721RD
点击:
Hello,
I'm trying to design a PWM generator for a driver, using a PSPICE model for the SG3525 PWM generator (the model can be found in https://sourceforge.net/projects/psp.../files/SG3525/.
The problem is that, when trying to simulate the following circuit, i'm getting the error "ERROR -- Invalid device in subcircuit" all over the place.
If anyone can help me, thanks.
I'm trying to design a PWM generator for a driver, using a PSPICE model for the SG3525 PWM generator (the model can be found in https://sourceforge.net/projects/psp.../files/SG3525/.
The problem is that, when trying to simulate the following circuit, i'm getting the error "ERROR -- Invalid device in subcircuit" all over the place.
PHP Code:
**** 10/25/17 19:44:02 ******* PSpice 16.3.0 (June 2009) ****** ID# 0 ********
** Profile: "SCHEMATIC1-Acionador" [ C:\USERS\UDESC\ONEDRIVE - UDESC UNIVERSIDADE DO ESTADO DE SANTA CATARINA\GRADUA??O\PCE\Acionad
**** CIRCUIT DESCRIPTION
******************************************************************************
** Creating circuit file "Acionador.cir"
** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS
*Libraries:
* Profile Libraries :
* Local Libraries :
.LIB "C:/Cadence/SPB_16.3/tools/lib/SG3525A.lib"
* From [PSPICE NETLIST] section of C:\Cadence\SPB_16.3\tools\PSpice\PSpice.ini file:
.lib "C:\Cadence\SPB_16.3\tools\pspice\library\nom.lib"
*Analysis directives:
.TRAN 0 66.66us 0 0.1u
.PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
.INC "..\SCHEMATIC1.net"
**** INCLUDING SCHEMATIC1.net ****
* source ACIONADOR
V_V1 VCC 0 15
X_U2 0 N07837 0 VO N07613 N07653 N07613 N076731 N07713 0 VB 0 VCC VB
+ VCC N07837 sg3525a
R_R1 0 N07653 9.524k TC=0,0
C_C1 0 N07613 1nF TC=0,0
R_R4 0 VB 1k TC=0,0
R_R2 0 N07713 10k TC=0,0
C_C2 0 N076731 10nF TC=0,0
R_R3 0 VB 1k TC=0,0
**** RESUMING Acionador.cir ****
.END
**** FROM LIBRARY C:/Cadence/SPB_16.3/tools/lib/SG3525A.lib ****
.subckt sg3525a INV NI SYN OSC CT RT DCH SS CMP SHD OUA GND VC OUB VIN VRF
A1 N017 0 N009 0 0 N017 N020 0 DFLOP Vhigh=5.1 Trise=20n Rout=30
S
ERROR -- Invalid device in subcircuit
A2 N018 N019 N009 0 N020 N005 N011 0 OR Vhigh=5.1 Trise=400n Rout=30
S
ERROR -- Invalid device in subcircuit
A3 N017 N009 0 N019 N018 N023 N022 0 OR Vhigh=5.1 Trise=400n Rout=30
S
ERROR -- Invalid device in subcircuit
S1 OUA N004 N005 0 HOUT
S2 N012 OUA N011 0 LOUT
S3 OUB N021 N023 0 HOUT
S4 N028 OUB N022 0 LOUT
I1 N031 0 21m
D1 0 N031 IDEAL
R1 N029 N031 8.93
R2 N029 0 22.6
D2 N029 N032 D1_75
D3 0 N032 IDEAL
I2 N032 0 188m
R3 N032 0 2.28
D4 N028 N029 IDEAL
I3 N014 0 21m
D5 0 N014 IDEAL
R4 N013 N014 8.93
R5 N013 0 22.6
D6 N013 N015 D1_75
D7 0 N015 IDEAL
I4 N015 0 188m
R6 N015 0 2.28
D8 N012 N013 IDEAL
D9 VC N021 IDEAL
D10 VC N004 IDEAL
G1 0 N024 NI N027 table=(-70m -100u,0 0,70m 100u)
R7 N024 0 4meg
C1 N024 0 100p
R8 N024 CMP 30
R9 INV 0 1meg
R10 NI 0 1meg
I7 0 VRF 80m
R11 VRF 0 170
D11 0 VRF Z5_1
D12 0 VC Z40
A4 VIN 0 0 0 0 N001 0 0 SCHMITT Vhigh=5.1 Vlow=0.45 Trise=20n Vt=7.25 Vh=0.25
S
ERROR -- Invalid device in subcircuit
I8 VIN 0 TBL(0 0 3 3.8m 7 19m 8 20m 40 24.1m)
D13 N030 N024 Z5_6
V1 N030 0 0.2
R12 N036 0 5k
R13 SHD N002 5k
Q1 SS N002 N036 0 NPN
D14 N002 0 D1_2
R14 N001 N002 60k
D15 0 SS Z5_1
I9 0 SS 50
A5 N002 0 0 0 0 0 N019 0 SCHMITT Vhigh=5.1 Trise=400n Vt=634m Vh=1m
S
ERROR -- Invalid device in subcircuit
A6 N026 N009 0 0 0 0 N018 0 SRFLOP Vhigh=5.1 Trise=20n Rout=30
S
ERROR -- Invalid device in subcircuit
A7 0 N025 N019 0 0 0 N026 0 OR Vhigh=5.1 Trise=20n Rout=30
S
ERROR -- Invalid device in subcircuit
A8 CT N034 0 0 0 0 N025 0 SCHMITT Vhigh=5.1 Trise=20n Vt=0 Vh=10m
S
ERROR -- Invalid device in subcircuit
E1 N033 0 N024 0 1
E2 N035 0 SS 0 1
R15 N033 N034 500
D16 N034 N035 IDEAL
R16 INV N027 1k
C2 NI N027 40p
R17 SYN 0 2k
R18 OSC N016 250
V2 N003 0 3.64
F1 0 CT V2 -1
D17 N003 RT IDEAL
R19 N016 0 3k
D18 N009 N016 D1_6
S5 0 DCH N009 0 LSW
D19 0 CT Z5_1
A9 N008 N010 0 0 0 0 N009 0 SRFLOP Vhigh=5.1 Ref=0.9 Trise=150n Tfall=250n
S
ERROR -- Invalid device in subcircuit
A10 N006 N007 0 0 0 0 N008 0 OR Vhigh=5.1 Trise=20n
S
ERROR -- Invalid device in subcircuit
A11 CT 0 0 0 0 0 N006 0 BUF Vhigh=5.1 Ref=3.2 Trise=20n
S
ERROR -- Invalid device in subcircuit
A12 CT 0 0 0 0 N010 0 0 BUF Vhigh=5.1 Ref=0.9 Trise=20n
S
ERROR -- Invalid device in subcircuit
A13 SYN 0 0 0 0 0 N007 0 BUF Vhigh=5.1 Ref=2 Trise=20n
S
ERROR -- Invalid device in subcircuit
**** EXPANSION OF SUBCIRCUIT X_U2 ****
X_U2.A1
-S
ERROR -- Invalid device
+ A2 A3 S1 10 N004 N005 0 HOUT
X_U2.S2 X_U2.N012 VB X_U2.N011 0 X_U2.LOUT
X_U2.S3 VB X_U2.N021 X_U2.N023 0 X_U2.HOUT
X_U2.S4 X_U2.N028 VB X_U2.N022 0 X_U2.LOUT
X_U2.I1 X_U2.N031 0 21m
X_U2.D1 0 X_U2.N031 X_U2.IDEAL
X_U2.R1 X_U2.N029 X_U2.N031 8.93
X_U2.R2 X_U2.N029 0 22.6
X_U2.D2 X_U2.N029 X_U2.N032 X_U2.D1_75
X_U2.D3 0 X_U2.N032 X_U2.IDEAL
X_U2.I2 X_U2.N032 0 188m
X_U2.R3 X_U2.N032 0 2.28
X_U2.D4 X_U2.N028 X_U2.N029 X_U2.IDEAL
X_U2.I3 X_U2.N014 0 21m
X_U2.D5 0 X_U2.N014 X_U2.IDEAL
X_U2.R4 X_U2.N013 X_U2.N014 8.93
X_U2.R5 X_U2.N013 0 22.6
X_U2.D6 X_U2.N013 X_U2.N015 X_U2.D1_75
X_U2.D7 0 X_U2.N015 X_U2.IDEAL
X_U2.I4 X_U2.N015 0 188m
X_U2.R6 X_U2.N015 0 2.28
X_U2.D8 X_U2.N012 X_U2.N013 X_U2.IDEAL
X_U2.D9 VCC X_U2.N021 X_U2.IDEAL
X_U2.D10 VCC X_U2.N004 X_U2.IDEAL
X_U2.G1 0 X_U2.N024 N07837 X_U2.N027 table
-------------------------------------S
ERROR -- Invalid number
+ -70m -100u 0 0 70m 100u
X_U2.R7 X_U2.N024 0 4meg
X_U2.C1 X_U2.N024 0 100p
X_U2.R8 X_U2.N024 N07713 30
X_U2.R9 0 0 1meg
X_U2.R10 N07837 0 1meg
X_U2.I7 0 N07837 80m
X_U2.R11 N07837 0 170
X_U2.D11 0 N07837 X_U2.Z5_1
X_U2.D12 0 VCC X_U2.Z40
X_U2.A4
-S
ERROR -- Invalid device
+ I8 14 0 TBL 0 0 3 3.8m 7 19m 8 20m 40 24.1m
X_U2.D13 X_U2.N030 X_U2.N024 X_U2.Z5_6
X_U2.V1 X_U2.N030 0 0.2
X_U2.R12 X_U2.N036 0 5k
X_U2.R13 0 X_U2.N002 5k
X_U2.Q1 N076731 X_U2.N002 X_U2.N036 0 X_U2.NPN
X_U2.D14 X_U2.N002 0 X_U2.D1_2
X_U2.R14 X_U2.N001 X_U2.N002 60k
X_U2.D15 0 N076731 X_U2.Z5_1
X_U2.I9 0 N076731 50
X_U2.A5
-S
ERROR -- Invalid device
+ A6 A7 A8 E1 N033 0 N024 0 1
X_U2.E2 X_U2.N035 0 N076731 0 1
X_U2.R15 X_U2.N033 X_U2.N034 500
X_U2.D16 X_U2.N034 X_U2.N035 X_U2.IDEAL
X_U2.R16 0 X_U2.N027 1k
X_U2.C2 N07837 X_U2.N027 40p
X_U2.R17 0 0 2k
X_U2.R18 VO X_U2.N016 250
X_U2.V2 X_U2.N003 0 3.64
X_U2.F1 0 N07613 X_U2.V2 -1
X_U2.D17 X_U2.N003 N07653 X_U2.IDEAL
X_U2.R19 X_U2.N016 0 3k
X_U2.D18 X_U2.N009 X_U2.N016 X_U2.D1_6
X_U2.S5 0 N07613 X_U2.N009 0 X_U2.LSW
X_U2.D19 0 N07613 X_U2.Z5_1
X_U2.A9
-S
ERROR -- Invalid device
+ A10 A11 A12 A13 .model NPN NPN
.model X_U2.PNP PNP
.model X_U2.HOUT SW
-----------------S
ERROR -- Invalid model type
+ Ron 2.7 Roff 175k Vt 2.8 Vh -2.1 Vser 1.1 Ilimit 0.6
.model X_U2.LOUT SW
-----------------S
ERROR -- Invalid model type
+ Ron 10m Roff 175k Vt 2.8 Vh -2.1 Vser 0 Ilimit 0.6
.model X_U2.IDEAL D Ron
--------------------S
ERROR -- 'Ron' is not a model parameter name
+ 0 Roff 1G Vfwd 0
.model X_U2.D1_75 D Ron
--------------------S
ERROR -- 'Ron' is not a model parameter name
+ 1.57 Roff 1G Vfwd 1.75
.model X_U2.D1_6 D Ron
-------------------S
ERROR -- 'Ron' is not a model parameter name
+ 0 Roff 1G Vfwd 1.6
.model X_U2.Z5_1 D Ron
-------------------S
ERROR -- 'Ron' is not a model parameter name
+ 1 Roff 1G Vrev 5.075
.model X_U2.Z40 D Ron
------------------S
ERROR -- 'Ron' is not a model parameter name
+ 0 Roff 175k Vrev 40
.model X_U2.Z5_6 D Ron
-------------------S
ERROR -- 'Ron' is not a model parameter name
+ 1 Roff 1G Vrev 5.6
.model X_U2.D1_2 D Ron
-------------------S
ERROR -- 'Ron' is not a model parameter name
+ 0 Roff 1G Vfwd 1.2
.model X_U2.LSW SW
----------------S
ERROR -- Invalid model type
Looks like Ltspice rather than Pspice specific special A devices. If Orcad does support it (don't think so) it's a new feature of the latest version.