¿ªÔÆÌåÓý


Re: Diode TVS like zener in LTspice??

 

By high power, do you mean that TVSs behave like high voltage zeners when simulating?


Re: Diode TVS like zener in LTspice??

 

??
Thanks for your reply.
I'll connect the zener capacitors in anti-series...
Wouldn't it work correctly in anti-parallel?


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

¿ªÔÆÌåÓý

On 23/04/2025 09:55, §¡§Ý§Ö§Ü§ã§Ñ§ß§Õ§â §¢§à§â§Õ§à§Õ§í§ß§à§Ó via groups.io wrote:
I had to replace the parameter k with k0, because in Qspice k is the Boltzmann constant. At tau=10ns, the counting time was 2.2 seconds. And everything was fine.
k is also defined as Boltzmann's constant in LTspice.

--
Regards,
Tony


Re: Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

¿ªÔÆÌåÓý

On 23/04/2025 09:50, sugaraltan via groups.io wrote:
Input Offset Voltage, Input-Referred Noise, Regeneration Time, Power Consumption, Kickback Noise, Input Common-Mode Range, Supply Voltage. I need these parameters analysis in LTspice PLEASE HELP ME
You cannot hope to simulate things like offset voltage if you use ideal ideal models throughout - the devices will all be identical, i.e. zero offset. You also haven't specified any noise parameters in the model, so the simulated noise won't be realistic. The same thing applies to capacitances. First thing you need to do is get proper device models.

There's also an error in you schematic: Out- is shorted to Out+.

--
Regards,
Tony


Re: Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

¿ªÔÆÌåÓý

Please don't put uploaded file directly in the Files location. They should be uploaded to Files > Temp, as the instructions say.

I have moved 456.asc to Temp.

--
Regards,
Tony

On 23/04/2025 10:07, sugaraltan via groups.io wrote:

Thanks for the reply. I uploaded my file in FIles named 456.asc. Please check it out.?


Re: Diode TVS like zener in LTspice??

 

¿ªÔÆÌåÓý

Actually, 'zener' embraces true Zeners , less than about 6V, and avalanche diodes, greater than about 6V.? LTspice models take account of this. TVS diodes are high-power avalanche diodes.

On 2025-04-23 09:04, j.bernabe1 via groups.io wrote:
Good morning....
I'd like to know why LTspice simulates a TVS diode as a zener, even though its behavior isn't exactly the same.
I'd also like to know where I can find an LTspice library for some TVS diodes, for example, that are 15 volts and others that are around 140 volts, and that are bidirectional.
Thanks...for everything.
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Virus-free.


Re: Diode TVS like zener in LTspice??

 

¿ªÔÆÌåÓý

On 23/04/2025 10:04, j.bernabe1 via groups.io wrote:
I'd like to know why LTspice simulates a TVS diode as a zener, even though its behavior isn't exactly the same.
I'd also like to know where I can find an LTspice library for some TVS diodes, for example, that are 15 volts and others that are around 140 volts, and that are bidirectional.
Did you try looking on the sites of manufacturers that make TVS diodes, e.g. Diodes Inc., Littelfuse, Vishay etc?

You could always try looking on the group's Files section and put "TVS" in the search box in the top right. I got 24 hits, but not all them were relevant.

As far as LTspice simulations are concerned, actually unidirectional TVSs are similar to Zeners, but tend to higher current. Bidirectional ones are equivalent to two unidirectional ones in anti-series.

--
Regards,
Tony


Re: MJ11021 Darlington NPN & PNP pair model help needed.

 

¿ªÔÆÌåÓý

On 23/04/2025 03:01, nima via groups.io wrote:
I am trying to build a model for MJ11021 to be used in an AB amplifier simulation.? Link to .
I made an attempt in building a model for the part PNP type first.? I also created a simulation to validate against the datasheet.
Validation part 1: DC simulation to Verify hFE and VCE.??
Never got past part 1!?
Part 2: Transient simulation? to measure switching time.
?
I have uploaded the files to temp directory under /g/LTspice/files/Temp/MJ11021.zip
?
It is not working and I am having a hard time figuring out how to fix the parameters in order to get it validated.? Any help and guidance in how to proceed to fix/tune the model parameters and how to setup the simulation to validate the model against key datasheet specs. would be greatly appreciated.
Developing a SPICE model for a Darlington is a considerable undertaking. Unfortunately, the Onsemi datasheet is not quite comprehensive enough to derive an accurate one.

The good news is that although Onsemi don't provide SPICE models for either of these devices, it does for the similar MJH11021 and MJH11022 transistors. These will be the same die, but in TO-247 packages instead of TO-3. Perhaps you were unaware of these modern equivalents?




You should nevertheless validate these models, at least partially. I recommend you construct several testjigs to re-generate the the graphs in the datasheet. Unfortunately, graphs for the output characteristic and FT are not shown, but you should check:
  1. Switching Time (Figure 2)
  2. The "On" Voltage (Figure 8 in the MJH11021/22 datasheet
  3. Figure 6 - DC Current Gain
  4. Figure 7 - Collector Saturation Region
--
Regards,
Tony


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

See file invJAmodel_AB.asc in TEMP folder.


Re: Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

Thanks for the reply. I uploaded my file in FIles named 456.asc. Please check it out.?
?


Diode TVS like zener in LTspice??

 

Good morning....
I'd like to know why LTspice simulates a TVS diode as a zener, even though its behavior isn't exactly the same.
I'd also like to know where I can find an LTspice library for some TVS diodes, for example, that are 15 volts and others that are around 140 volts, and that are bidirectional.
Thanks...for everything.


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

Hi.
I made an addition to your scheme. This is the calculation of dH/dT by a separate, controlled current source with RC. The resulting value is used to calculate delta. I made a netlist and used it to calculate Qspice. I had to replace the parameter k with k0, because in Qspice k is the Boltzmann constant. At tau=10ns, the counting time was 2.2 seconds. And everything was fine.


Re: Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

¿ªÔÆÌåÓý


We can't help much unless you let us see more of what you are doing. Upload your .ASC file AND all the other files required to run the simulation, but not .RAW? and .LOG files or pictures,? in a ZIP archive to Files => Temp.

Go to the web page: /g/LTspice/topics. Click on Files in the list on the left. Then click on Temp. Then click on New Upload in the blue box at top left. Click on Upload File in the drop-down menu. Then send a message to tell us that you did that.


On 2025-04-23 08:41, sugaraltan via groups.io wrote:
Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only If something is true: * as far as we know - it's science *for certain - it's mathematics *unquestionably - it's religion

Virus-free.


Re: Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

Input Offset Voltage, Input-Referred Noise, Regeneration Time, Power Consumption, Kickback Noise, Input Common-Mode Range, Supply Voltage. I need these parameters analysis in LTspice PLEASE HELP ME
?


Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT

 

Hello guys. Please help my Thesis. I want to make Comparators design of sar adc i have built Comparator in LTspice i wanna analysis. But i cant PLEASE HELP ME OUT


Re: LTspice accuracy, used for calculations and measurements

 

Udo,
?
I have more detail to add to this discussion, which might be marginally helpful to you.
?
First, I was incorrect when I suggested that LTspice's?value for pi maybe had only 12 digits.? That was wrong.? But .MEAS command printouts are limited to 12 digits maximum.
?
The internal value for pi appears to be approximately
3.1415926535897931...
which compares favorably with the value quoted in Help:
3.14159265358979323846
both of which are shown here with more digits than double-precision theoretically provides.? ?(Which means that both numbers might have meaningless digits by the end of what is displayed here.)
?
When comparing your pi and sqrt(x)**2 calculations, they differed by less than 1e-15, so they are at about the limit of double-precision math.? I saw no difference in that calculation between the Normal and Alternate solvers.? But I tried this on only one version of LTspice.? (My plans are to get several versions up and running again, but not for today.)
?
NUMDGT and MEASDGT do things differently:
?
If NUMDGT is omitted or set to 6 or below, LTspice's .raw output file uses single-precision floating point numbers, giving you about 6 digits of resolution.? If NUMDGT is 7 or above, the .raw file uses double-precision and about 16 digits of resolution.? The .raw output file is used to save all voltages and currents, but not internal parameters.? All internal calculations are either double-precision or x86-extended-precision, regardless of the value of NUMDGT.
?
MEASDGT has a useful range from 6 to 12.? Within that range, MEASDGT directly sets the number of digits printed to the .log file.? If omitted or set to a number smaller than 6, it defaults to 6 and .MEAS commands print with 6 digits.? If set to a number greater than 12, it maxes at 12 digits.? That is why we saw pi, x, and z displayed with only 12 digits, despite being internally stored with more resolution and accuracy than that.
?
.MEAS printouts of internal PARAM values do not use the .raw file, so they are unaffected by NUMDGT.? .MEAS printouts that involve voltages or currents (including .MEAS ... PARAM of previous .MEAS command results involving voltages or currents) must read them back from the .raw file, so they are affected by NUMDGT first, and then by MEASDGT.? In that case, NUMDGT indirectly affects the accuracy but not the number of printed digits, whereas MEASDGT sets the number of printed digits.
?
Andy
?


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

?
It helps to say why it does not run, or what happens when it does run.
?
There were major program changes between LTspice 24.0.x and 24.1.x.? It was like a change in the major revision number.? Many things that ran OK previously stopped working when version 24.1.x was introduced.? Any major change like that can have problems.? Telling the folks at Analog Devices why it stops running (or perhaps, it runs but why it does not produce the same output), it might help them restore the functionality that was lost.
?
Andy
?
Thanks for your suggestion. I will report this issue to them.


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

On Tue, Apr 22, 2025 at 11:31 PM, <limengfan81@...> wrote:
Also, I was surprised to find that this model doesn¡¯t seem to run in LTspice 24.1.5, even though it works fine with the same settings in version 24.0.7.
It helps to say why it does not run, or what happens when it does run.
?
There were major program changes between LTspice 24.0.x and 24.1.x.? It was like a change in the major revision number.? Many things that ran OK previously stopped working when version 24.1.x was introduced.? Any major change like that can have problems.? Telling the folks at Analog Devices why it stops running (or perhaps, it runs but why it does not produce the same output), it might help them restore the functionality that was lost.
?
Andy
?


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

Also, I was surprised to find that this model doesn¡¯t seem to run in LTspice 24.1.5, even though it works fine with the same settings in version 24.0.7.


Re: Non-converging oscillation problem of inverse Jiles-Atherton model in LTspice

 

Thanks for the suggestion ¡ª increasing rtol? is truly helpful.

This model seems to struggle when dH/dt is near zero, causing oscillations in all conditional terms. Sometimes it converges, sometimes it doesn't.

Three ways to improve it:

  1. Increase delay time (tau): Helps stability, but too large tau introduces more phase shift between B and H,which increases B-H loop area. At an input frequency of f = 50 Hz, using tau?= 300 ns still gives acceptable results, but if the frequency increases, tau must be reduced accordingly.

  2. Reduce max timestep: Slower simulation, but improves convergence near dH/dt ¡Ö 0. Dropping it from 1e-6 to 1e-7 helped. It seems that better numerical resolution earlier in the simulation helps the solver predict the behavior more accurately at those critical points.

  3. Increase rtol: Improves convergence but may distort waveforms. But combining this with a smaller timestep can balance accuracy. rtol = 0.005 worked better than the default rtol=0.001.

At this point, I haven¡¯t found a way to eliminate the oscillations, but I can improve both convergence and accuracy by balancing the three strategies above. I¡¯ll continue experimenting to see whether it's possible to reduce the oscillation by improving the inverse Jiles-Atherton algorithm itself.