LM4562 - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools
Home Forums Rules Articles diyAudio Store Gallery Wiki Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools Search this Thread
Old 11th January 2015, 03:58 PM   #1
diyAudio Member
 
Join Date: Nov 2011
Location: Santa Fe, New Mexico
Default LM4562

Has anyone successfully gotten the TI spice model for the LM4562 to work in LTSpice? I tried importing the model myself, but I'm having issues getting everything setup properly.... Any help would be appreciated.
  Reply With Quote
Old 11th January 2015, 04:16 PM   #2
esgigt is offline esgigt  Netherlands
diyAudio Member
 
Join Date: Dec 2013
What you need is an .asy model working together with your model-file.
You can make this file from scratch, but you can also copy the .asy model of an other opamp (with same connections) and rename it.

In the model-file, the part ought to be defined as a .SUBCKT for this to work. Check that the connectors in the .SUBCKT model check-out with the connections in the .asy model!!! If it doesn't, it will not work.

The model file ( with a .lib, .sub or .txt extension ) ought to be stored in the C:\Program Files (x86)\LTC\LTspiceIV\lib\sub directory

and the .asy file in the C:\Program Files (x86)\LTC\LTspiceIV\lib\sym directory.

But that's not all.

In the .asy file you've got to verify that the attribute "modelfile" has the same name as the model-file.

Last edited by esgigt; 11th January 2015 at 04:19 PM.
  Reply With Quote
Old 17th January 2015, 05:01 PM   #3
sbrads is offline sbrads  United Kingdom
diyAudio Member
 
Join Date: Jun 2005
Location: Kent, UK
You can always auto generate a symbol direct from the model.
File>Open and load in the model to show the listing.
Place the cursor on the 1st line, i.e. the line with the device name in, and right click on it & select Create Symbol.
This will be a box shape with all the correct component pins and it will reside in the Auto Generated folder when you choose a component for your schematic.
  Reply With Quote
Old 18th January 2015, 03:56 PM   #4
udok is offline udok  Austria
diyAudio Member
 
Join Date: Jul 2011
Location: Austria
The LM4562 model has some convergence problems due to an "ideal" diode. Additionally the + and - input are exchanged.
I have included the corrected file.

To add the LM4562 in your simulation add the symbol Opamps/opamp2 and rename it to LM4562. Additionally add ".lib LM4562.lib" to your circuit.

Greetings,
Udo
Attached Files
File Type: zip LM4562.zip (3.5 KB, 147 views)
  Reply With Quote
Old 5th October 2015, 03:00 AM   #5
DPH is offline DPH  United States
diyAudio Member
 
Join Date: Dec 2008
Location: San Diego, CA
Realize this is a slight thread necro, but:

Udo--I was having convergence problems galore and trying to figure out what was wrong. Just found your post and wanted to thank you for your updated/corrected file.
  Reply With Quote
Old 8th June 2016, 11:48 AM   #6
diyAudio Member
 
Join Date: Jun 2016
Thanks Udo for the updated model.
  Reply With Quote
Old 24th December 2016, 11:14 AM   #7
diyAudio Member
 
Join Date: Dec 2015
I am also having problems with the spice model for the LM4562.

I am using the corrected version posted in this thread.
If I simulate a simple inverting amplifier test circuit using the model, it works fine.

However, if I substitute a TL072 with the LM4562 in a simulation of a 1kHz audio oscillator circuit, I get floating node and singular matrix error messages:-

===
WARNING: Node U1:1:U11:VP1 is floating.
WARNING: Node U1:1:14 is floating.
WARNING: Node U1:1:U11:VP2 is floating.
WARNING: Node U1:1:U11:VP3 is floating.
WARNING: Node U1:1:U11:VP4 is floating.
WARNING: Node U1:1:U11:VZ1 is floating.
WARNING: Node U1:1:U11:VZ2 is floating.
WARNING: Node U1:1:U11:VZ3 is floating.
WARNING: Node U1:1:U11:VZ4 is floating.
WARNING: Node U1:1:9 is floating.

WARNING: Less than two connections to node OUT. This node is used by R12.
Early termination of direct N-R iteration.
Direct Newton iteration failed to find .op point. (Use ".option noopiter" to skip.)
Starting Gmin stepping
Gmin = 10
vernier = 0.5
vernier = 0.25
vernier = 0.125
Gmin = 5.5165
vernier = 0.0625
vernier = 0.03125
vernier = 0.015625
vernier = 0.0078125
Gmin = 5.48432
vernier = 0.00390625
vernier = 0.00195313
vernier = 0.000976563
vernier = 0.000488281
Gmin = 0
Gmin stepping failed

Starting source stepping with srcstepmethod=0
Singular matrix: Check node u1:1:u11:vz4
Iteration No. 1
Singular matrix: Check nodes u1:1:u11:vz2 and u1:1:u11:vz3
Iteration No. 1
Could not converge to DC with sources off!
Starting source stepping with srcstepmethod=1
Singular matrix: Check nodes u1:1:14 and u1:1:9
Iteration No. 1
Could not converge to DC with sources off!
Singular matrix: Check nodes u1:1:9 and u1:1:u11:vz1
Iteration No. 1
Fatal Error: Singular matrix: check nodes u1:1:9 and u1:1:u11:vz1
Iteration No. 1

This circuit has floating nodes.
===

Can any LTSpice gurus suggest what might be going wrong?

I have attached a zip file containing the Oscillator3.asc file along with simulation models for the TL072 and LM4562.
Attached Files
File Type: zip Oscillator3.zip (7.4 KB, 5 views)
  Reply With Quote

Reply


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AD8066 vs. LM4562 douglesc Parts 21 22nd December 2011 03:41 PM
LM4562 decoupling... mikesnowdon Power Supplies 32 20th April 2010 09:07 PM
lm4562 is cool! digi01 Chip Amps 8 17th April 2008 03:29 PM
Self on LM4562 sam9 Solid State 7 17th April 2007 03:11 AM
Lm4562 Ryssen Swap Meet 0 12th October 2006 10:42 PM


New To Site? Need Help?

All times are GMT. The time now is 10:31 AM.


vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright 1999-2017 diyAudio

Content Relevant URLs by vBSEO 3.3.2
Wiki