This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Why TINA-TI shows THD=0.035% for Voltage Generator with Ri=0 ?

Other Parts Discussed in Thread: TINA-TI

I performed Fourier series for my schematic and got about 0.036% THD. Base frequency 10khz, start time is 10msec, end time in transient analysis is 100msec. It was strange and I reconnected "out" port directly to Voltage Generator. The result was 0.035% again! I checked  internal impedance of VG1 - it was 0 ohms. I disconnected VG1 from my amplifier and did the test again. The result is 0.000000...% - it is expected result with ideal sinus source with Ri=0.

Questions:

1. Why I don't see zero THD on output of ideal sinus generator with internal impedance 0 ohms when I connect it to my circuit with non-zero input impedance?

2. Why the amplitude of first harmonic is not correct and doesn't follow the amplitude parameter of Voltage Generator?

  • Pavel,

    I am a modeling engineer in the WEBENCH modeling team.

    What options did you choose for the TINA Fourier Series Analysis?
    We have found the THD and individual harmonics can have a strong dependence not only on the circuit &  transient parameters, but also the Fourier Analysis parameters.
    We have found this to be true for other Spice simulators as well.

    I tried reproducing your results with  just a 1Vpeak, 10kHz sinusoidal source driving a 1k resistor.
    The transient sim used the parameters you gave in your message.

    TINA's Fourier Analysis gave anywhere from 0.06% THD to 4.7e-8% depending on the number of harmonics and the number of samples chosen in the Fourier Analysis options.

    For example, if 128 samples with the default number of 10 harmonics gave THD = 0.011%.
    If the number of harmonics increased to 30, the THD doubled. Increasing the number of harmonics to 40 caused the THD to increase to 0.06%.

    If the number of samples was increased to the max (65536), the THD for 10 harmonics dropped to 4.65e-8%.
    Increasng the number of harmonics to 30 gave THD = 7.2e-8% and 40 harmonics caused the THD to drastically increasae to 0.066%; same as the case of 128 samples..

    I hope this helps.
    If you don't get the results you are looking for, Is it possible to share your schematic or the TINA .TSC file itself?

    Regards,

    John

  • Hello, John.

    Thank you for answer.

    It is link to my .TSC file http://clip2net.com/s/1KbrY

    You can find all simulation parameters.

    Please try to change R9 load resistor and see results of Fourier series. With R9=100 Ohm THD is about 0.035%. With R9=300 Ohm THD is about 3.4147e5 % . It looks very strange, isn't it?

    Thereafter disconnect "out" port from the output of amplifier and connect it directly to VG1 signal generator and perform FFT. You can see 201.77% THD.

    Now delete R7 (disconnect amplifier from VG1) and perform FFT again. You can see 3.9558e-9 % THD. Good trick, doesn't?

    I don't see the logic ...

    Another important question is about SPICE models for TINA-TI provided by Texas...

    Usually classic SPICE model of OpAmp doesn't contain parameters for linearity simulation like THD measurements, only poles and zeroes, CMRR, open loop gain etc. But for example, there are no slew rate limiters.

    Are there all necessary parameters for assessment of real behaviour of the linearity in  TINA-TI models ?

  • Pavel,

    We usually do not try to capture nonlinear distortion behavior with our op amp models.
    That being said, it can be useful to compare a model’s HD behavior to what is shown in the device data sheet.
    This approach can be a useful tool to understand high level behavior & trends before any hardware is built or  evaluated.

     I downloaded your circuit file and tried some experiments with Fourier Analysis and the associated Transient sims.

     Experiment #1: Original circuit and sim parameters
    With the default simulation analysis parameters the reported THD was 1%.
    One reason to not trust this result that the Fourier coefficient for the fundamental waveform (k=1) is 11.26m, rather than the expected value equal to the signal’s rms value: 0.707*8Vp = 5.67Vrms.   We have found this kind of strange behavior is due to simulation parameters that are too relaxed. Default sim parameters are usually balanced trade-offs between speed and accuracy. It is common practice to tailor  sim parameters to met the requirements for accuracy & sim time.

     Experiment #2: Modify sim analysis parameters (DC)
    The first step was to tighten the sim analysis parameters associated with DC convergence.
    The following changes were made:

    1. DC absolute current error was changed from a default value of 1n to 10p.
    2. DC absolute voltage error was changed from a default value of 1u to 100n.
    3. DC relative error was changed from a default value of 1m to 1u.

    These changes resulted in a  reported output THD = 0.00754%.

     Experiment #3: Modify TRAN & FOUR analysis parameters for output THD
    Digging into some of the details of the Fourier Analysis option via the Help menu found this feature uses only a single cycle of the fundamental signal to calculate the Fourier series coefficients. So the time duration for the Fourier Analysis begins at the Start Time and ends after a single cycle of the fundamental frequency. Any subsequent data is ignored. With this in mind, the 10ms start time for the Transient sim and the Fourier analysis was left unchanged, while the Stop time was reduced from 100ms to 11ms.
    This decreased the sim time, but did not cnage the results relative to the 100ms Stop time.

    In addition, the max transient step size was changed from the default value of 10G to 1u.
    The reuced step size would result in a long sim time with the 100ms Stop time, but with a 11ms Stop time, the sim takes only a few seconds.

    The reported output THD for the tightened DC &Tran sim parameters was 1.67e-6%.

     Experiment #4: THD of signal source
    The next step was to look at the THD of the signal source using the DC & TRAN sim parameters described above.
    If the input circuit was disconnected from the rest of the amplifer, and VG1 was loaded only by R7 and C8, the reported THD was 3.96e-9%.
    If VG1, R7 and C8 were connected in the normal way, the THD increased to 1.77e-6%.

    Snapshots of the TINA windows for the experiments above have been pasted into the attached circuit file.
    The descriptions reference your schematic designations, but your schematic has been deleted.

     So it looks like a few of the many sim analysis parameters are really the key to some consistent results.
    It may be necessary to modify other parameters, but without more information its hard to say anything definite.
    One approach is to try tightening things further; if the results don’t change then you probably have optimized your sims and any additional changes won’t be reflected in the results.

    I hope this helps.

    Please let me know if you have any questions.

    Best Regards,

    John

    composite_amp_sim results.TSC