ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
748 stars 101 forks source link

AudioIC tda2003 element does not work correctly #620

Closed egrast closed 3 months ago

egrast commented 4 months ago

tda2003-lib

tomhajjar commented 4 months ago

The "original" TDA2003 model was modified to work with LTspice and then modified again to work with Qucs-S/ngspice but you have to enable "LT" compatibility.

2024-02-28_202520

tomhajjar commented 4 months ago

@ra3xdh

I found three versions Jim Thompsons TDA2003 Spice model. The version in Qucs-S has one change, "5" versus "5A" in the version from Jim's website. The model with "5A" works in LTspice. What is the reason for 5 versus 5A?

The version Bordodynov supplies is either older or he modified it.

2024-02-28_205833

egrast commented 4 months ago

@tomhajjar

Thank you ! Works !

I tried to create a model based on "Analysis of TDA2003 and TDA2005 Integrated Amplifiers.pdf". It is not intended for accurate AC analysis.

tda2003-pdf

tda2003-pdf.zip

tomhajjar commented 4 months ago

Nice work. Jim Thompson was an IC designer for Motorola and many others. He created a lot of Spice models as well. His archived website might not last too long.

https://web.archive.org/web/20180806223743fw_/http://www.analog-innovations.com

https://web.archive.org/web/20180806223743fw_/http://www.analog-innovations.com/subcircuits.html

egrast commented 4 months ago

@tomhajjar

Thank's

tomhajjar commented 4 months ago

Updated TDA2003. Added LM386, TDA2030 single ended and TDA2030 bipolar.

2024-02-29_141257

AudioIC_prj.zip

ra3xdh commented 4 months ago

What is the reason for 5 versus 5A

Ngspice treats this as 5 attoamper. It is near zero.

ra3xdh commented 4 months ago

@egrast The description of the TDA2003 device says that the LTspice compatibility setting is required for this model. The compatibility mode could be set using spiceinit: https://github.com/ra3xdh/qucs_s/pull/26 I failed to port this model to pure Ngspice and decided to leave it as is. Please always read the device description.

egrast commented 3 months ago

@ra3xdh

Ok ! Thanks for the answer.

ra3xdh commented 3 months ago

@tomhajjar

Jim Thompson was an IC designer for Motorola and many others. He created a lot of Spice models

Thanks for sharing the link. I have grabbed the models from archive to my HDD. It would be nice to wrap some of the models in the Qucs library.