LTSpice how to measure THD+N ? - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools

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 29th October 2011, 02:06 PM   #1
diyAudio Member
 
Join Date: Nov 2009
Location: Ghaziabad (Delhi NCR)
Default LTSpice how to measure THD+N ?

Hi,

How to measure THD+N of an audio oscillator under LTSpice ?
__________________
Regards,
Sameer Dhiman
  Reply With Quote
Old 29th October 2011, 02:57 PM   #2
diyAudio Member
 
Join Date: Nov 2009
Location: Pune
LTspice : LTspice/SwitcherCAD III

This group is dedicated for LTspice. will get lot of information here. As well help.
__________________
There is always a first time....
  Reply With Quote
Old 30th October 2011, 03:34 PM   #3
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
my fundamental null circuit could help for single tone - just take the RMS of the residual

Spice simulation

for an oscillator circuit you will need a very large ncycles number for any high Q oscillator sim to startup, stabilize

set the plot limits to the last cycle and use the <ctrl>, left click the trace lable in the waveform viewer

or add a .meas directive to print the result in the error log


noise in spice requires added sources in a .TRAN sim
  Reply With Quote
Old 30th October 2011, 05:21 PM   #4
diyAudio Member
 
Join Date: Nov 2009
Location: Ghaziabad (Delhi NCR)
@Aucosticraft : Thanks

@JCX: Very nice null circuit

Do you mean .Tran does not add N-Sources to passive and active components while simulation. Do I need to add N-Sources to each and every component during .TRAN simulation ? What if active component have noise source in their spice model like LME49860 ?
__________________
Regards,
Sameer Dhiman
  Reply With Quote
Old 31st October 2011, 04:42 PM   #5
diyAudio Member
 
Join Date: Nov 2009
Location: Ghaziabad (Delhi NCR)
Quote:
Originally Posted by jcx View Post
noise in spice requires added sources in a .TRAN sim
Hello JCX,

Please clear my doubt.
__________________
Regards,
Sameer Dhiman
  Reply With Quote
Old 31st October 2011, 11:31 PM   #6
jcx is offline jcx  United States
diyAudio Member
 
Join Date: Feb 2003
Location: ..
I don't use noise analysis in spice, not an expert in that use - the doc claims .NOISE is an AC analysis

for .TRAN I'm pretty certain you have to add your own noise modeling sources

for xtal osc noise sim is going to be "interesting" close in noise requires millions of cycles to evaluate, the measured noise has multiple slopes, unmodeled thermal and acceleration effects become significant

Last edited by jcx; 31st October 2011 at 11:35 PM.
  Reply With Quote
Old 1st November 2011, 07:31 AM   #7
diyAudio Member
 
Join Date: Nov 2009
Location: Ghaziabad (Delhi NCR)
Thank you so much for confirming.
__________________
Regards,
Sameer Dhiman
  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
THD vs output power in LTspice Tekko Solid State 7 4th January 2012 02:40 PM
LTSpice way too high input sine wave THD Neutrality Software Tools 8 17th May 2011 03:53 AM
THD in LTSpice ? Tekko Solid State 74 30th November 2010 02:37 PM
OT: how can I measure THD of my amplifier if my sound card is 0,02% THD ? ygg-it Solid State 1 13th June 2010 08:54 AM
Measure THD, etc of power amp with sound card - attenuator? CBRworm Solid State 36 18th September 2009 06:55 AM


New To Site? Need Help?

All times are GMT. The time now is 05:27 AM.


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

Content Relevant URLs by vBSEO 3.3.2