User Name Stay logged in? Password
 Home Forums Rules Articles diyAudio Store Blogs Gallery Wiki Register Donations FAQ Calendar Search Today's Posts Mark Forums Read Search

 Solid State Talk all about solid state amplification.

 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
 8th February 2006, 02:07 PM #1 aparatusonitus   diyAudio Member     Join Date: Jan 2004 Location: Split, Croatia Qs. about LTSwitcher CAD Hi guys, I have a few qustions about LTSwitcher CAD: 1) How to performe a squarewave/sawwave response from amp circuit, I mean how to define input pulse voltage source (Vinitial, Von, Tdeley, Trise, Tfall, Ton, Tperiod, Ncycles) for 100Hz, 1Khz, 10Khz... and 10mV, 100mV, 1V... input amplitude 2) Is it possible to wieu distortion vs frequency, distortion vs output power, and if it is, how? 3) How to get "accurate" reading for output impedance from transfer analysis, is it OK if I place spice directive .tf V(Out) V1? Thanks, a __________________ Non é mai abbastanza...
 8th February 2006, 03:04 PM #2 teemuk   diyAudio Member   Join Date: Nov 2004 Location: Suomi, Finland Re: Qs. about LTSwitcher CAD 1) I donīt have the LTSpice right at hand now but i remember that the pulse function of the voltage source had some problems with accepting zero values and gave unpredictable results with them. You can use 0.000... ...00001 for example, just do not use zero. Then, if i remember right, again, Tperiod should be = (Trise + Tfall + Ton) * 2, which is quite logical. No zero values! Set Vinitial and Von respectivily and Ncycles high enough to give useful readings when voltages have adjusted. (I use at least 0.5 delay before viewing simulation results - note that i do not mean the delay in pulse function now.) 2) Take a look at .step command, it should get you started. I hope i was able to help you at least a bit, Teemu K
 8th February 2006, 03:16 PM #3 aparatusonitus   diyAudio Member     Join Date: Jan 2004 Location: Split, Croatia Hi Teemu K, Thank you for valuable informations regarding LTSpice, I'll try yours tips & tricks tonight and see Best, a __________________ Non é mai abbastanza...
 9th February 2006, 04:59 AM #4 jcx   diyAudio Member   Join Date: Feb 2003 Location: .. LtSpice is really great but it doesn't do harmonic distortion sweeps, you can collect the points for drawing such a graph from the .four output in the log file by finely stepping the frequency or input amplitude, I have written a VBA macro in Word to extract a matrix from the .four log file text results and passed the data to mathcad for plotting (for a completely different use, I wanted a "describing funcition" plot of the fundamental of a clipped ampifier output as a freq, amplitude surface) THD really throws away too much valuable information for me to worry about LtSpice lacking a THD sweep Output Z is easily tested via a active current source load - .tran analysis are more realistic so fine stepping of your current source frequency or ampitude is the best spice "measurement" technique, I avoid nearly all .ac or other linearization based analysis (like tf) I have posted a number of example sims here, most with LtSpice source files, try searching by user name: jcx and optionally containing these words: ltspice swcad sim asc
teemuk
diyAudio Member

Join Date: Nov 2004
Location: Suomi, Finland
Quote:
 Originally posted by jcx LtSpice is really great but it doesn't do harmonic distortion sweeps...
A stupid question: What is a harmonic distortion sweep? Are you perhaps meaning a stepped fourier analysis, because if you are the LTspice can indeed make one although the option is sort of "hidden"...

Teemu K

 9th February 2006, 01:53 PM #6 Bazukaz   diyAudio Member     Join Date: Nov 2005 Location: Vilnius One more question : Can LTSpice simulate a spectrum analyzer , but with only 1 tone passed to input ? It would be possible to calculate THD then.
 9th February 2006, 04:56 PM #7 teemuk   diyAudio Member   Join Date: Nov 2004 Location: Suomi, Finland Performing an FFT analysis with LTspice goes like this: First make a transient analysis, it should popup a window with a waveform in U, I or P/ t graph. Right click the graph and select FFT from the menu. Select which node you want to plot, (note that in the opening menu you can also overwrite the node with your own plot function). After this another window will open to show the spectrum in a dB / f graph. The bigger the time for transient analysis is (more samples) the more accurate the FFT analysis will be. I still haven't found an option that would calculate the average THD ratio manually though. Teemu K
aparatusonitus
diyAudio Member

Join Date: Jan 2004
Location: Split, Croatia
Quote:
 Originally posted by teemuk I still haven't found an option that would calculate the average THD ratio manually though.
Press Wieu -> Spice Error Log after FFT analysis
__________________
Non é mai abbastanza...

 9th February 2006, 06:25 PM #9 Bazukaz   diyAudio Member     Join Date: Nov 2005 Location: Vilnius Here i found DB to THD conversion : http://www.sengpielaudio.com/calculator-thd.htm
Bazukaz
diyAudio Member

Join Date: Nov 2005
Location: Vilnius
One Q about FFT analysis : if i take a voltage source , set it at 1K @ 1V.
"-" of the source is grounded , and i perform a FFT analysis of "+" of it.
I get very strange spectrum analysis with badly distorted signal.Why ?
Attached Images
 test.png (21.2 KB, 196 views)

 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 Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Site     Site Announcements     Forum Problems Amplifiers     Solid State     Pass Labs     Tubes / Valves     Chip Amps     Class D     Power Supplies     Headphone Systems Source & Line     Analogue Source     Analog Line Level     Digital Source     Digital Line Level     PC Based Loudspeakers     Multi-Way     Full Range     Subwoofers     Planars & Exotics Live Sound     PA Systems     Instruments and Amps Design & Build     Parts     Equipment & Tools     Construction Tips     Software Tools General Interest     Car Audio     diyAudio.com Articles     Music     Everything Else Member Areas     Introductions     The Lounge     Clubs & Events     In Memoriam The Moving Image Commercial Sector     Swap Meet     Group Buys     The diyAudio Store     Vendor Forums         Vendor's Bazaar         Sonic Craft         Apex Jr         Audio Sector         Acoustic Fun         Chipamp         DIY HiFi Supply         Elekit         Elektor         Mains Cables R Us         Parts Connexion         Planet 10 hifi         Quanghao Audio Design         Siliconray Online Electronics Store         Tubelab     Manufacturers         AKSA         Audio Poutine         Musicaltech         Holton Precision Audio         CSS         exaDevices         Feastrex         GedLee         Head 'n' HiFi - Walter         Heatsink USA         miniDSP         SITO Audio         Twin Audio         Twisted Pear         Wild Burro Audio

 New To Site? Need Help?

All times are GMT. The time now is 02:09 PM.