Keyboard Shortcuts
Likes
- LTspice
- Messages
Search
Re: How to flip the screen's moving direction when using touchpad?
¿ªÔÆÌåÓýIf there is, it would be in the settings for
the touchpad on your computer, not in LTspice. On 2025-03-08 17:38, lyulinshen via
groups.io wrote:
--
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 |
How to flip the screen's moving direction when using touchpad?
When I move the circuit graphs using mouse, it works fine, but when I move them using two fingers on the touchpad of my laptop, they shift the other direction (meaning when my fingers drift left, the graph moves right, vice versa). Not to mention i did not find a way to move the graphs up/down with touchpad too.
Is there a way to modify the settings for this? |
Model of a Piezoelectric Buzzer Module
Hello, ? Lately, I needed to add an external piezoelectric buzzer to the internal ringer of my (bell) phone. ? I found, in the group¡¯s archive, a circuit of Piezoelectric Buzzer, BuzFB.asc , made by analogspiceman - Aug 2012. Based on it, I made a model whose supply current is close to the one of a buzzer module I have. I added it, BuzzerModule.zip, to the group¡¯s archive (though in the ¡¯Temp folder¡¯) as a subcircuit; BuzzerModule.asc + its symbol, BuzzerModule.asy (which is just a small box with 2 pins, IN+ and IN-). ? For instance, I built, for my ear, the low-voltage amplifier using TDA2822 (with a small electret micro and an NPN BJT pre-amp). Fortunately, it works as expected. ? Kerim ? |
Re: defining special kind of behavioral for current controlled oscilator in ltspice
You might want to consider MODULATE rather than MODULATE2. Sorry.
?
Jim
|
Re: defining special kind of behavioral for current controlled oscilator in ltspice
john23 asked:
?
Is there some bahvior model in LTspice which could help me represent this device in simulation?
?
What level of detail do you need to simulate? If it is just frequency out vs control inputs, then MODULATE2 device should be just fine. Convert the current input to a voltage (converter is called "resistor"). ?Put that in series with the Tune input voltage. Give the Modulate the appropriate scale factor(s) and output amplitude are you are in.
?
But if you need things like SWR over the tuning range, then you need a bit more.
?
Jim
?
?
On 03/07/2025 9:30 AM PST john23 via groups.io <yafimvar@...> wrote:
|
Re: defining special kind of behavioral for current controlled oscilator in ltspice
Adding a bit more to this:
?
What John Woodgate is talking about, is the special function named "MODULATE" (and its counterpart "MODULATE2") which you can find by typing "MODULATE" into LTspice's component selector menu.? They are in LTspice's [SpecialFunctions] folder.? It models an ideal VCO.? Its output voltage is a sine wave whose frequency is a linear function of the voltage applied to its "FM" input pin.
?
Use that to mimic your current-controlled oscillator.? Turn your current into a voltage.? Use either a small resistor, or a B-element, or H-element (CCVS) to get from current to voltage.
?
Apply the sum of the two input signals (your "Tune" and "FM" signals) to the MODULATE's "FM" input pin.
?
To include a nonlinear transfer function, add a pre-distorter before the MODULATE device's FM pin.? It can be a B-source with a Table() function to make it nonlinear.
?
See the example circuit PLL.asc that comes with LTspice, in the ...\examples\Educational folder.? Right-click on the MODULATE device and add these two parameters to any of the Value, Value2, SpiceLine, or SpiceLine2 lines:
where frequency0 is the VCO's frequency when the FM voltage = 0, and frequency1 is the frequency when the voltage = 1 V.? Those two set the offset and scale of the VCO's linear transfer function.? Note this refers to the voltage applied to the MODULATE device's "FM" pin, which is NOT the same as your "FM" signal you referred to in your question.
?
The MODULATE's "AM" pin should be left floating.? Or connect it to a voltage to control the sine wave's amplitude.
?
Andy
? |
Re: defining special kind of behavioral for current controlled oscilator in ltspice
¿ªÔÆÌåÓýI think that the MODULATE device will do this,
but needs other devices to produce the input signals it wants,
and those? that the YIG wants, from those you have available or
are produced by the MODULATE device. I recommend a careful study
of the HELP. On 2025-03-07 17:30, john23 via
groups.io wrote:
--
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 |
defining special kind of behavioral for current controlled oscilator in ltspice
Hello, I have a YIG device which? has two inputs.
Tune input at 2V puts my YIG to 9.4Ghz and 10dBm
FM input is current? input which moves the output 100Mhz each mili ampere.
I can measure the transfer function as a table also to see the effect of each input on the output
Is there some bahvior model in LTspice which could help me represent this device in simulation? Thanks. |
Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis
On Wed, Mar 5, 2025 at 08:31 AM, Andy I wrote:
It's been ages since I checked on that.? But it might be the option ITL1 = 100. For the tube amplifier schematic, ITS step takes 44 Direct NR iterations (totiter=44) to converge with default settings.
?
I tried to set .option ITL1=10 for .tran 0 10m analysis just to check that after the 10th iteration Direct NR gives up and switches to gmin stepping.
?
However, it looks like this is not actually the case though.
?
I asked also this on . ITL1 assigned value less than 100 (default) is actually ignored.
?
Carlo.
?
|
Re: 74HC_V.lib Issue
Hello eT,
?
At first my confusion had me looking for a diode named "p".
Dp begins with D for diode but, now I realize that Dp is the output node of a BUF element as you have described.
?
Removing the "ADDEL" BUF line eliminates the missing connection warning.
No need for the flip flop's data input to ride a BUF to nowhere.
?
My realization of the 74HC74 has regularly been flip-flopping as expected without an "ADDEL" buffer so I commented it out to remove the warning.
?
Thank you.
?
All for now ?
?
Sent:?Thursday, March 06, 2025 at 5:56 PM
From:?"eetech00 via groups.io" <eetech00@...> To:[email protected] Subject:?Re: [LTspice] 74HC_V.lib Issue Actually, in this case buf "ADDEL" output "DP" has a delay associated with it that isnt used.
It might have been intended for simulation of setup/hold time.
?
It will take some testing.
|
Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis
Spice 3f3 user's manual is /g/LTspice/files/Temp/man_spice3.pdf |
Re: 74HC_V.lib Issue
On Thu, Mar 6, 2025 at 10:16 AM, eewiz wrote:
Those are harmless warnings. ?
They can be ignored.? We get them all the time.? If you really really want to make the warnings go away, connect a 1G resistor from the node to ground.? Voila, warning gone!
?
I'm not saying there isn't another problem here that slipped through the cracks.? But those warnings about "less than two connections" are not errors and can almost always be ignored.
?
Andy
? |
74HC_V.lib Issue
Hello All:
?
WARNING: Less than two connections to node xlogic:u1:dp.? This node is used by a:xlogic:u1:ddel.
?
xlogic:u1 is a 74HC74 from the 74HC_v.lib of which my copy has the following header;
?
*? 74hc_v.lib
*? 74HCxxx Model libraray for LTSPICE from www.linear.com/software *? Revision 0.55 08/20/2003? ? *? Revision 0.56 08/21/2003??? ? *? Revision 0.57 02/04/2005 ? *? Revision 0.58 03/28/2005? ? *? Revision 0.59 03/29/2005? ? *? Revision 0.60 07/09/2006?? 74HC191 added? ? *? Revision 0.61 10/16/2006?? 74HC4538 added *? Revision 0.62 10/23/2009?? 74HC373 typo corrected *? Revision 0.63 11/13/2009?? 74HC533 added *? Revision 0.64 05/02/2010?? 74HC40103 added *? Revision 0.65 30/05/2010?? 74HC244 added *? Revision 0.66 01/30/2012?? enabled B(VCC) in input/output driver models *? Revision 0.67 10/04/2013?? 74HC_IN_0: V=LIMIT(0,V(in) -> V=LIMIT(0,V(in,VGND) ? *? Revision 0.68 09/30/2014?? corrected a typo HCT to HC in 74HC244 *? Revision 0.69 02/01/2019?? 74HC05 added. ?
The model is as follows;
?
* D-filp-flop with asynchronous set and reset
* CP->Q Tpd 47n/17n/14n * R/S->Q Tpd 52n/19n/15n * CP/R/S Tw 19n/7n/6n * D->CP Ts 6n/2n/2n * D->CP Th -6n/-2n/-2n * R,S Trem 3n/1n/1n .SUBCKT 74HC74? S C D R Q QN? VCC VGND? vcc1={vcc} speed1={speed} tripdt1={tripdt} .param td1=1e-9*(17-5-3-3)*4.0/({vcc1}-0.5)*{speed1} .param td2=1e-9*(19-5-3-3)*4.0/({vcc1}-0.5)*{speed1} .param td3=1e-9*(17+2-5-3-3)*4.0/({vcc1}-0.5)*{speed1} .param td4=1e-9*(5)*4.0/({vcc1}-0.5)*{speed1} * XIN1? S Si? VCC VGND? 74HC_IN_1? vcc2={vcc1}? speed2={speed1}? tripdt2={tripdt1} XIN2? C Ci? VCC VGND? 74HC_IN_1? vcc2={vcc1}? speed2={speed1}? tripdt2={tripdt1} XIN3? D Di? VCC VGND? 74HC_IN_1? vcc2={vcc1}? speed2={speed1}? tripdt2={tripdt1} XIN4? R Ri? VCC VGND? 74HC_IN_1? vcc2={vcc1}? speed2={speed1}? tripdt2={tripdt1} * ACDEL? Ci 0 0? 0? 0?? 0?? Cp 0? BUF? tripdt={tripdt1}? td={td1} ADDEL? Di 0 0? 0? 0?? 0?? Dp 0? BUF? tripdt={tripdt1}? td={td3} ARINV? Ri 0 0? 0? 0?? Rn? 0? 0? BUF? tripdt={tripdt1}? td={td2} ASINV? Si 0 0? 0? 0?? Sn? 0? 0? BUF? tripdt={tripdt1}? td={td2} A1???? Di 0 Cp Sn Rn? QNi Qi 0? DFLOP? tripdt={tripdt1} td={td4} * XOUT1? Qi? Q?? VCC VGND? 74HC_OUT_1X? vcc2={vcc1} speed2={speed1}? tripdt2={tripdt1} XOUT2? QNi QN? VCC VGND? 74HC_OUT_1X? vcc2={vcc1} speed2={speed1}? tripdt2={tripdt1} .ends ?
I was able to find the culprit, highlighted in red above.
I was unable to devine where Dp should/could connect to eliminate the "Less than two connections" warning.
If it has only one connection, then possibly Dp could be eliminated but, that escapes me also.
I see that A1's data input is connected directly to Di which skips the ADDEL buffer.
Should A1's data input be connected to Di (input pin) or should it be connected to Dp (buffered delayed output)?
?
All for now
?
?
|
Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis
I have a good PDF manual for Barkley spice, if it's needed.
toggle quoted message
Show quoted text
?
|
Re: LTspice vs ngspice 12AU7 tube amplifier transient analysis
On Thu, Mar 6, 2025 at 03:24 AM, Carlo wrote:
There are many.? So many.? Here are some that have stood the test of time and are sometimes recommended, but are not cheap: ?
Ken Kundert's "Designer's Guide to SPICE and Spectre".
?
Paul Tuinenga's "SPICE: A Guide to Circuit Simulation and Analysis Using PSpice".
?
LTspice's Help has a FAQ page, "What about a Paper Manual?"? Have you looked there?? It showed 10 book titles with "LTspice" in the name.? That was as of about 2015 so I am sure there are many more now.? One that might not be on that list is W¨¹rth Elektronik's "The LTspice XVII Simulator", published in both German and English.? I can't tell you which ones on the list are better or which should be avoided, and I am sure the slant (the approach used by the author) varies from book to book.? Some may be designed to get a newbie going, whereas others delve into the details better.
?
My personal experience with short tutorials about LTspice is that many of them are rubbish.? Some of their authors clearly do not know how to use LTspice well, and they cover up their mistakes by telling you to do things incorrectly in an attempt to fix what they did incorrectly.? Any Joe can write a tutorial and put it to video and claim that they know what they are doing.? But getting yourself published on paper takes a bit more skill.
?
I recommend doing some checking around to see what's out there and what the reviewers say.
?
Andy
? |