开云体育

Date

Re: LTspice Save Internal Device Voltages

 

On Fri, Feb 21, 2025 at 04:12 AM, Andy I wrote:
It might be that the internal node in the Thevenin equivalent of a lossless inductor is not one of them either.
Thinking again about it, since Thevenin equivalent introduces actually the inductor current as new system's unknown, maybe it doesn't count as new "internal node voltage" though.
?
Carlo.


Re: LTspice Save Internal Device Voltages

 

I never knew exactly what those "internal device" nodes were, and I think it was never explained, in the years I have been following this group.
?
I suspect those internal nodes might be internal to certain transistor models.? For example, if you look at the VBIC model, the circuit is quite complex and has a handful of what appear to be internal nodes.? I tried once to see if those were the "internal device" nodes that this setting refers to, but was unable to see them.? It might be that the internal node in the Thevenin equivalent of a lossless inductor is not one of them either.
?
Andy
?


LTspice Save Internal Device Voltages

 

On LTspice Control Panel->Save Default tab there is a checkbox named "Save Internal Device Voltages".
?
I believe it is supposed to save the voltages of "device internal nodes". Take for instance an inductor with a default Rser=1m. For a such device, LTspice employs a proprietary "compound model" based on Norton equivalent in order to reduce the overall circuit's solving matrix size.
?
As explained in Help page, setting Rser=0 forces LTspice to use the "cumbersome" Thevenin equivalent introducing an internal node in the inductor's model. That means the current through the inductor becomes a new unknown of the circuit's solving system (you can check this in SPICE Error log: the matrix size actually increments by 1).
?
That said, I thought the checkbox above added some information about this "device internal node". However, it seems it is not actually the case.
?
Any idea about it ? Thanks.
?
Carlo.
?
?


Re: 12AU7 tube heater model

 

开云体育

Sorry, I misinterpreted that last line in the netlist. A G source is a voltage-dependent current source, so it defines a transconductance, not a simple conductance. I think that the syntax in the Help is much too terse: the parameter N is, for example, not defined, and it seems that it is not essential to use the old POLY command.

On 2025-02-21 10:27, Carlo wrote:
On Fri, Feb 21, 2025 at 01:59 AM, John Woodgate wrote:
I suspect that the 'error message' is nothing to worry about. the current source has infinite impedance, so the U1:HB node appears not to be connected.
Sorry, what kind of controlled source is actually the G source named "hot" within the SUBCKT heater model ?
?
From LTspice help:
Syntax: Gxxx n+ n- value={<expression>}This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B.
Does it mean that Ghot is just a behavioral voltage source, or that it is a current source controlled from a voltage (i.e. voltage-controlled current source) ?
?
--
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: Interpreting Noise Simulation Results

 

开云体育

Further to what I wrote below, I have uploaded a modified version of your schematic that uses a single amplifier circuit but switches the filter networks into or of out of circuit. This enables the noise with and without the HPFs to be displayed on the same graph, by stepping the Ctl parameter.

You should also know that the FMMT718 model you have added is unreasonably optimistic, as it exhibits no 1/f noise. In any event it is swamped by the increased noise from the HPFs, when these are in circuit.

You could drastically decrease the noise contribution of the HPFs by scaling the impedance down, while keeping the cut-off frequency the same. I've shown the effect of changing Rfilt from 100Ω to 10kΩ.

--
Regards,
Tony


On 20/02/2025 23:19, Tony Casey wrote:

Yes, an RC high pass filter on the input will increase the noise. Although the capacitor doesn't itself add any noise, it causes the effective input noise voltage to increase, because:

Vn(tot) = √(En^2 + (In/2/pi/Cser)^2)

..where: En = I/P noise voltage density, and In = I/P noise current density (neglecting the source resistance noise, which often you can't do)

Remember also: "No attenuation before gain".

I should also mention (without seeing your schematic), that many of the devices in the LTspice standard libraries don't have realistic noise parameters, especially when it comes to 1/f noise.

--
Regards,
Tony


On 20/02/2025 20:17, manauo via groups.io wrote:
I don't have much experience using LTSPICE for noise simulations, and I'm having trouble understanding some of the results I'm getting. I'm investigating an amplifier circuit (file "Amplifier Noise" uploaded to files/Temp).
?
The amplifier is a cascode differential pair, signal frequency is 1MHz. Currently the circuit has no filtering besides the inherent roll-off at high frequency. I'm investigating whether adding AC coupling capacitors to the input to filter low-frequency noise can improve the performance. The inductance/resistance in series with each input represents the output impedance of the previous stage.
?
When I simulate the original circuit with no coupling capacitors, the result seems reasonable - relatively flat, input noise is a fraction of the output noise. However when I simulate the proposed circuit with coupling capacitors I don't understand the result.
?
The input noise balloons at low frequencies - the frequency range that the HPF of the capacitor is supposed to reduce, is now much greater. The output noise is lower in terms of total integrated noise, but still has an increased magnitude at low frequency compared to the original.
?
The decrease in total output noise is coming from a decrease in the high frequency noise, which makes sense because the inductance of the source impedance and the base pull-down resistor form an RL LPF. But the capacitor does not seem to be reducing LF noise, even though an AC sweep shows the expected HPF behavior.
?
Am I misinterpreting the results somehow? How is adding a high-pass filter at the input increasing noise at the low frequencies that it is supposed to be attenuating? What am I missing about noise simulations?


Re: 12AU7 tube heater model

 

On Fri, Feb 21, 2025 at 01:59 AM, John Woodgate wrote:
I suspect that the 'error message' is nothing to worry about. the current source has infinite impedance, so the U1:HB node appears not to be connected.
Sorry, what kind of controlled source is actually the G source named "hot" within the SUBCKT heater model ?
?
From LTspice help:
Syntax: Gxxx n+ n- value={<expression>}This is an alternative syntax of the behavioral source, arbitrary behavioral voltage source, B.
Does it mean that Ghot is just a behavioral voltage source, or that it is a current source controlled from a voltage (i.e. voltage-controlled current source) ?
?


Re: 3 Phase Voltage Sense model

 

开云体育

For curiosity
What device are you driving with Vout(ABC) ?
My home is "3Phased"? :)


Le 20/02/2025 à 18:58, larry.gunseor@... a écrit?:

Already did that and the outputs still are not correct
?


Re: 12AU7 tube heater model

 

开云体育

I suspect that the 'error message' is nothing to worry about. the current source has infinite impedance, so the U1:HB node appears not to be connected. RHO=42 means that the heater is set for 12.6V/0.15A operation, whereas the amp circuit may be using either 6.3V/0.3A or 6.3V/0.3A. The bad behaviour of the amp circuit must be due to the last line of the heater netlist, since that function returns an infinite value at start-up, where V(HB,H2) = 0. I don't see what that conductance represents anyway, nor why it's defined as a conductance rather than a resistance. The whole thing looks very complicated for representing a simple hot wire.

On 2025-02-21 08:50, Carlo wrote:
Starting from the 12AU7 SUBCKT from , I created a SUBCKT model for the 12AU7 heater, namely:
*** 12AU7 Heater subckt model ***
.SUBCKT 12AU7H H1 H2
+PARAMS: RCO=6.2 RHO=42 HTV=6.3 HWU=10.5
Rcool H1 HA {RCO}
Rload HA HB 1M
Esens HD 0 ?VALUE {V(HA,HB)*1000}
Epwr ?HE 0 ?VALUE {V(H1,H2)*V(HD)/(PWR({HTV},2)/{RHO})}
RH1 ? HE HF 91k
CH1 ? HF 0 ?{HWU/1E6}
EH2 ? HG 0 ?VALUE {V(HF)}
RH2 ? HG HH 270k
CH2 ? HH 0 ?{HWU/1E6}
EH3 ? HJ 0 ?VALUE {LIMIT(V(HH)-0.75,0,1E6)*4}
RH3 ? HJ HK 91k
CH3 ? HK 0 ?{HWU/1E6}
Ghot ?HB H2 VALUE {(1/(V(HG)+0.001))/({RHO}-{RCO})*V(HB,H2)}
.ENDS
I used it in a simple schematic doing a DC Sweep analysis on a DC current source connected to heater's pins H1 and H2 (one of the current source's pin is connected to GND). However Spice Error log reports the following:
ERROR: Node U1:HB is floating and connected to current source G:U1:HOT
?
Direct Newton iteration for .op point succeeded.
What is the problem behind it ? Thanks.
?
Carlo.
--
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: 3 Phase Voltage Sense model

 

开云体育

Symbol pin order is good with "3Phase_Voltage_Sense.asy"

Delete "3Phase_Voltage_Sense.asy"
Load "3Phase_Voltage_Sense_model.asc"
Generate "3Phase_Voltage_Sense_model.asy" by clicking "Hierarchy/Open or generate ..? "
Load "3Phase_Voltage_Sense_Test.asc"
Place "3Phase_Voltage_Sense_model.asy"
And yes, pin order has changed, correct cabling

And it works

Ground to Neutral is necessary
"3Phase_Vsense.sub" is unuseful

Greetings




Le 21/02/2025 à 06:53, Andy I via groups.io a écrit?:

Larry,
?
Here is an actual mistake, and the likely cause of the problem you have.? The pin-order of the symbol does not match the pin-order of the included netlist model.
?
Symbol's pin-order:? Neutral VinA VinB VinC VoutA VoutB VoutC
?
Subcircuit's pin-order:? VinA VinB VinC Neutral VoutA VoutB VoutC
?
That needs to be corrected.? Edit either the symbol (.asy) file or the model (.sub) file.
?
Andy
?
?


12AU7 tube heater model

 

Starting from the 12AU7 SUBCKT from , I created a SUBCKT model for the 12AU7 heater, namely:
*** 12AU7 Heater subckt model ***
.SUBCKT 12AU7H H1 H2
+PARAMS: RCO=6.2 RHO=42 HTV=6.3 HWU=10.5
Rcool H1 HA {RCO}
Rload HA HB 1M
Esens HD 0 ?VALUE {V(HA,HB)*1000}
Epwr ?HE 0 ?VALUE {V(H1,H2)*V(HD)/(PWR({HTV},2)/{RHO})}
RH1 ? HE HF 91k
CH1 ? HF 0 ?{HWU/1E6}
EH2 ? HG 0 ?VALUE {V(HF)}
RH2 ? HG HH 270k
CH2 ? HH 0 ?{HWU/1E6}
EH3 ? HJ 0 ?VALUE {LIMIT(V(HH)-0.75,0,1E6)*4}
RH3 ? HJ HK 91k
CH3 ? HK 0 ?{HWU/1E6}
Ghot ?HB H2 VALUE {(1/(V(HG)+0.001))/({RHO}-{RCO})*V(HB,H2)}
.ENDS
I used it in a simple schematic doing a DC Sweep analysis on a DC current source connected to heater's pins H1 and H2 (one of the current source's pin is connected to GND). However Spice Error log reports the following:
ERROR: Node U1:HB is floating and connected to current source G:U1:HOT
?
Direct Newton iteration for .op point succeeded.
What is the problem behind it ? Thanks.
?
Carlo.


Re: PWM Timing Causing Shoot-thru

 

May,
?
I don't know if we will see your updated file with the missing LTspice symbol, or if you consider the problem to be solved already.
?
But I want to mention that your signals HCF and LCF did not look right.? In contrast with the other two pairs which have no overlap, the HCF and LCF pair have tons of overlap.? I think maybe you forgot to invert one of them.? Maybe that is correct, but it looks funny when compared with the other two pairs.
?
Andy
?


Re: 3 Phase Voltage Sense model

 

Larry,
?
Here is an actual mistake, and the likely cause of the problem you have.? The pin-order of the symbol does not match the pin-order of the included netlist model.
?
Symbol's pin-order:? Neutral VinA VinB VinC VoutA VoutB VoutC
?
Subcircuit's pin-order:? VinA VinB VinC Neutral VoutA VoutB VoutC
?
That needs to be corrected.? Edit either the symbol (.asy) file or the model (.sub) file.
?
Andy
?
?


Re: 3 Phase Voltage Sense model

 

Larry,
?
Here are some issues to comment on:
?
(1)? Your original schematic (3Phase_Voltage_Sense_circuit.asc) leaves the Neutral net floating.? Why?? Did you really want it to float like that?? Also, do you want it grounded in the final schematic?? If nothing else, it is different.
?
(2)? The symbol you created (3Phase_Voltage_Sense.asy) is set up with incorrect properties.? It should have Symbol Type = Cell, but you left it with Symbol Type = Block, which is correct only for calling a lower-level schematic, not a netlist file.? Fortunately LTspice seems to handle it anyway in spite of the wrong property.
?
(3)? Your final schematic (3Phase_Voltage_Sense_Test.asc) should not have ".inc 3Phase_Vsense.sub" because the symbol file already includes that netlist file.? It does not actually hurt because the end result is that the subcircuit file is included twice.? But it's not a good idea to do that because it might later create problems.
?
I think none of these issues causes the problem you have, but I want to mention them anyway.
?
Andy
?
?


Locked Re: Windows XP installation disk

 

Off-topic.? And it suggests it is not legal.
?
This topic is closed.? No replies, please.
?
This group is about LTspice.


Locked Windows XP installation disk

 

Does anyone have a Windows XP install disk they could give or sell me? ?Or a copy with the password decrypted.

?

I need a pukka XP machine to run the software I wrote myself in da last Millenium. ?Yes. ?I've tried the various Virtual machines but none of them give me the functionality I need. ?To put this into perspective, I run a DOS window under Win 98 on the XP machine.

?

Machines that have XP drivers are all more than 10 yrs old. ?I found one but I lent my pukka XP install disc to a friend who promptly lost it???


Re: Weird results DC operating point for Tube amplifier

 

开云体育

You're correct.

Le 20/02/2025 à 23:20, Andy I via groups.io a écrit?:

On Thu, Feb 20, 2025 at 12:17 PM, Jerry Lee Marcel wrote:

BTW, source-follower it is not. It's actually a common-source stage.
A source fiollower has about unity gain, this common-source has about 15dB gain.

No, it is a source follower.? Its voltage gain is unity.? Input applied to gate, output from source pin.? Almost the same output voltage, but shifted 4.2 V lower.
?
The overall circuit has voltage gain (~23 dB), but all of that comes from the 12AU7, in its common-cathode configuration.
?
I wonder why you saw only 15 dB gain, and why you saw that in just the MOSFET.
?
Not that the following has any significance - but I vaguely recall reading about operating valves (vacuum tubes) at much lower than "normal" anode voltages.? ?There were specialized miniature valves designed for it.? But it was also applied to more traditional valves too, ones like the 12AU7 that are capable of hundreds of volts.? It does not appear to be a sure-fire way to generate distortion, as this simulation demonstrates, if you trust the SPICE models.? I can't recall what were the advantages (if any) of using such low voltages - other than easier battery power.? Lower noise?? ?Longer life?? I dunno.
?
Andy
?


CD4000_v(65).lib with syntax error messages updated to CD4000_v(65a).lib

 

hi
?
I've corrected and uploaded CD4000_v(65a).lib
?
The only corrections made were to the td1,td2,td4 equations used in CD4008B sub circuit.
The unbalanced braces/parenths caused syntax error messages in LTspice 24.1.4
?
eetech00


Re: Weird results DC operating point for Tube amplifier

 

开云体育

Oh, I get that by putting a 10cm long unobtanium tube over the headphone cable.

On 2025-02-20 22:22, Andy I via groups.io wrote:
On Thu, Feb 20, 2025 at 12:32 PM, John Woodgate wrote:

There really isn't any point in criticizing the design. It's deliberately weird. An LM386 makes a good headphone amplifier, but it might be difficult to sell for $130.

Yeah, but then it would not have that "tube sound".
?
Andy
?
--
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


Re: Weird results DC operating point for Tube amplifier

 

开云体育

I have to confess that I was misled by this at an early age, about 13 I think.? The valve doesn't know what the supply voltage is with zero signal. It only knows the voltage between anode and cathode, which can be quite small, yet even a triode still can give gain. I simply didn't believe a DAC32 would work with a 470k anode load, so I used 4.7k, which gave hardly any gain. What this low Vak does, of course, is limit the maximum output signal amplitude, but if only a volt or two is required, there is no problem.

OT observation: With small-signal pentodes, such as EF33 or EF50, very low anode and g2 voltages can be used, with megohm values of feed resistors, giving very high gain.

On 2025-02-20 22:20, Andy I via groups.io wrote:
Not that the following has any significance - but I vaguely recall reading about operating valves (vacuum tubes) at much lower than "normal" anode voltages.?
--
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: Interpreting Noise Simulation Results

 

manauo,
?
Almost all the simulated noise in your circuit comes from the circuit itself.? If there was noise in the sources driving it (V1, V2, V5, V6), it is not present in the simulation.? Those voltage sources are noise-free.? Therefore, adding high-pass filter capacitors to reduce noise from the source, does not do you any good, unless the source itself had noise.? I think the only parts behind the HPF that generate any noise in this simulation, are the 0.6 ohm resistors, R9, R10, R21, and R22.? (Also the Rser of L1-L4.)? That's about the only benefit to be had from adding those capacitors.
?
On top of that, there is the increase in noise caused by making the source impedance (connected to the transistor bases) larger.? That is likely why you saw the noise density going up instead of down.
?
Not many people use SPICE's .NOISE analysis.? Consequently, many device models either lack the parameters needed to simulate it well, or the parameter values are badly wrong.? That was especially true of the JFET models that came with LTspice.? LTspice got those models from the company Linear Systems (not to be confused with Linear Technology Corp.), but someone at Linear Systems had inadvertently messed up their own SPICE models before giving them to LTC for inclusion in LTspice.? If I remember correctly, the mistake was 5 orders of magnitude (!) and applied to every one of their JFET models.? Fortunately your circuit has only BJTs, no JFETs, so it might be OK.? Should be OK for comparative simulations.
?
Andy
?