http://ltwiki.org/api.php?action=feedcontributions&user=Vlad&feedformat=atomLTwiki-Wiki for LTspice - User contributions [en]2024-03-28T18:28:36ZUser contributionsMediaWiki 1.31.7http://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=2307Filter Pages and LTspice Goodies2022-02-04T18:21:55Z<p>Vlad: temporary(?) fix for files</p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[[#0101|<nowiki>[</nowiki>0101<nowiki>]</nowiki>]]'''), filtering and control theory ('''[[#Filt|<nowiki>[</nowiki>Filt<nowiki>]</nowiki>]]'''), mathematics equations ('''[[#Math|<nowiki>[</nowiki>Math<nowiki>]</nowiki>]]'''), power electronics ('''[[#Pwr|<nowiki>[</nowiki>Pwr<nowiki>]</nowiki>]]'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filt.php Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIRx</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIRx</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform and maximum length, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.php <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.php <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.php <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.php <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.php Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.php Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="Rants">Rants</div> ===<br />
<br />
&emsp;This part deals with some thoughts about modelling or, in general, related to SPICE (and LTspice, in particular):<br />
<br />
* [http://ltspicegoodies.ltwiki.org/implicit.php Implicit Math]: Mathematical functions in behavioural sources can take a toll, sometimes, so having an alternative way to perform these can pay off: linearized nonlinear functions.<br />
* [http://ltspicegoodies.ltwiki.org/filtering.php Efficient Filtering]: The simplest filters are the ones that have just the needed states, and no more. That means LC networks, which are the simplest and fastest, but not so easy to calculate. So this is about how a Sallen-Key, multiple feedback, Antoniou, etc, can be so slow and inefficient, and what (and how) to do about it.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/0101.zip 0101.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/Filt.zip Filt.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/Math.zip Math.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/Power_Conditioning.zip Power_Conditioning.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/Pwr.zip Pwr.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/files.zip files.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/filtering.zip filtering.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/implicit.zip implicit.zip]<br />
* [http://ltspicegoodies.ltwiki.org/files/archives/syntax.zip syntax.zip]<br />
<br />
{{#widget:DISQUS<br />
|id=ltwiki<br />
|uniqid={{PAGENAME}}<br />
|url=http://ltwiki.org/index.php5?title=Filter_Pages_and_LTspice_Goodies<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Talk:Undocumented_LTspice&diff=2258Talk:Undocumented LTspice2021-05-07T14:33:36Z<p>Vlad: /* Newly found extended parameters for the EXP() source */ new section</p>
<hr />
<div>Can someone add a description of the MAXORD option, to the Undocumented LTspice page?<br />
<br />
== Newly found extended parameters for the EXP() source ==<br />
<br />
The user Didier has found out that the EXP() source can have additional parameters that are listed in the official libraries. The discussion is in this thread:<br />
<br />
https://groups.io/g/LTspice/topic/undocumented_exponential/82635335</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=2257Filter Pages and LTspice Goodies2021-04-30T19:03:41Z<p>Vlad: added the rants</p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[[#0101|<nowiki>[</nowiki>0101<nowiki>]</nowiki>]]'''), filtering and control theory ('''[[#Filt|<nowiki>[</nowiki>Filt<nowiki>]</nowiki>]]'''), mathematics equations ('''[[#Math|<nowiki>[</nowiki>Math<nowiki>]</nowiki>]]'''), power electronics ('''[[#Pwr|<nowiki>[</nowiki>Pwr<nowiki>]</nowiki>]]'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filt.php Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIRx</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIRx</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform and maximum length, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.php <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.php <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.php <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.php <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.php Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.php Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="Rants">Rants</div> ===<br />
<br />
&emsp;This part deals with some thoughts about modelling or, in general, related to SPICE (and LTspice, in particular):<br />
<br />
* [http://ltspicegoodies.ltwiki.org/implicit.php Implicit Math]: Mathematical functions in behavioural sources can take a toll, sometimes, so having an alternative way to perform these can pay off: linearized nonlinear functions.<br />
* [http://ltspicegoodies.ltwiki.org/filtering.php Efficient Filtering]: The simplest filters are the ones that have just the needed states, and no more. That means LC networks, which are the simplest and fastest, but not so easy to calculate. So this is about how a Sallen-Key, multiple feedback, Antoniou, etc, can be so slow and inefficient, and what (and how) to do about it.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/archives/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}<br />
<br />
{{#widget:DISQUS<br />
|id=ltwiki<br />
|uniqid={{PAGENAME}}<br />
|url=http://ltwiki.org/index.php5?title=Filter_Pages_and_LTspice_Goodies<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1594Filter Pages and LTspice Goodies2015-03-30T13:55:18Z<p>Vlad: /* Filter */</p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[[#0101|<nowiki>[</nowiki>0101<nowiki>]</nowiki>]]'''), filtering and control theory ('''[[#Filt|<nowiki>[</nowiki>Filt<nowiki>]</nowiki>]]'''), mathematics equations ('''[[#Math|<nowiki>[</nowiki>Math<nowiki>]</nowiki>]]'''), power electronics ('''[[#Pwr|<nowiki>[</nowiki>Pwr<nowiki>]</nowiki>]]'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIRx</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIRx</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform and maximum length, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}<br />
<br />
{{#widget:DISQUS<br />
|id=ltwiki<br />
|uniqid={{PAGENAME}}<br />
|url=http://ltwiki.org/index.php5?title=Filter_Pages_and_LTspice_Goodies<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1368Filter Pages and LTspice Goodies2014-05-11T10:40:36Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[[#0101|<nowiki>[</nowiki>0101<nowiki>]</nowiki>]]'''), filtering and control theory ('''[[#Filt|<nowiki>[</nowiki>Filt<nowiki>]</nowiki>]]'''), mathematics equations ('''[[#Math|<nowiki>[</nowiki>Math<nowiki>]</nowiki>]]'''), power electronics ('''[[#Pwr|<nowiki>[</nowiki>Pwr<nowiki>]</nowiki>]]'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}<br />
<br />
{{#widget:DISQUS<br />
|id=ltwiki<br />
|uniqid={{PAGENAME}}<br />
|url={{fullurl:{{PAGENAME}}}}<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1367Filter Pages and LTspice Goodies2014-05-11T10:37:37Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[[#0101|<nowiki>[</nowiki>0101<nowiki>]</nowiki>]]'''), filtering and control theory ('''[[#Filt|<nowiki>[</nowiki>Filt<nowiki>]</nowiki>]]'''), mathematics equations ('''[[#Math|<nowiki>[</nowiki>Math<nowiki>]</nowiki>]]'''), power electronics ('''[[#Pwr|<nowiki>[</nowiki>Pwr<nowiki>]</nowiki>]]'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1366Filter Pages and LTspice Goodies2014-05-11T10:35:30Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''<nowiki>[</nowiki>[[#0101|0101]]<nowiki>]</nowiki>'''), filtering and control theory ('''<nowiki>[</nowiki>[[#Filt|Filt]]<nowiki>]</nowiki>'''), mathematics equations ('''<nowiki>[</nowiki>[[#Math|Math]]<nowiki>]</nowiki>'''), power electronics ('''<nowiki>[</nowiki>[[#Pwr|Pwr]]<nowiki>]</nowiki>'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice. All the files can be found in the provided links.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;<code style="color:#007900">FIR</code>, <code style="color:#007900">FIR2</code> and <code style="color:#007900">FIR_FS</code> are, element-wise, the same, except for the windows/functions they perform, while the last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br><br><br />
&emsp;The files can be found in the [http://ltspicegoodies.ltwiki.org Home] link (the top menu), the '''Filter manual''' paragraph.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1365Filter Pages and LTspice Goodies2014-05-11T10:30:19Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''<nowiki>[</nowiki>[[#0101|0101]]<nowiki>]</nowiki>'''), filtering and control theory ('''<nowiki>[</nowiki>[[#Filt|Filt]]<nowiki>]</nowiki>'''), mathematics equations ('''<nowiki>[</nowiki>[[#Math|Math]]<nowiki>]</nowiki>'''), power electronics ('''<nowiki>[</nowiki>[[#Pwr|Pwr]]<nowiki>]</nowiki>'''). In addition, there is one more model, '''[[#Filter|Filter]]''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The files are in the provided links but, alternatively, if one only needs the files, they are shown at the [[#files|end]] of the page.<br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.<br />
<br />
=== <div id="files">The files</div> ===<br />
<br />
&emsp;If only the files are needed and there's no need for extra browsing, below is the list with all the files:<br />
<br />
{{#widget:Iframe<br />
|url=http://ltspicegoodies.ltwiki.org/files/<br />
|width=800<br />
|height=600<br />
|border=0<br />
}}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1364Filter Pages and LTspice Goodies2014-05-09T11:27:46Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies.ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1363Filter Pages and LTspice Goodies2014-05-09T11:26:48Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies/ltwiki.org/examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1362Filter Pages and LTspice Goodies2014-05-09T11:24:49Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}<br />
<br />
=== <div id="Examples">[http://ltspicegoodies/ltwiki.org/Examples.html Examples]</div> ===<br />
<br />
&emsp;The two purposes in creating these were to have some schematics concerning power conditioning, in general, and that they should be made with the symbols and libraries from the above folders. In no particular order, the schematics are:<br />
<br />
* two shunt active power filters, pq theory, sine and power strategies<br />
* shunt active power filter, dq theory<br />
* shunt active power filter, pq/sine strategy, full schematic but with ideal blocks<br />
* universal power quality conditioner, dq theory for both shunt and series filters<br />
* simple passive reactive power compensation<br />
* positive sequence detectors, pq and dq, and filtering methods test case<br />
* phase-locked loop for grid-tied inverters<br />
* quadrature signal generator based on generalized integrators<br />
* three-phase, three-level modulation example<br />
* three-phase thyristor bridge rectifier<br />
* a small extra find<br />
<br />
=== <div id="Utilities">[http://ltspicegoodies.ltwiki.org/useful.html Utilities]</div> ===<br />
<br />
&emsp;Not related specifically to LTspice, but with SPICE, in general, there are two files made to help editing netlist/librariy/subcircuit/model files (text files with ''*.net, *.cir, *.sp, *.lib, *,sub, *.mod'' extensions) with editors based on ''GtkSourceView'' (''gEdit, Mousepad, Scribes'' or others that may be using): a syntax highlighting and<br />
an optional colour theme matching LTspice's.</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1361Filter Pages and LTspice Goodies2014-05-09T10:45:48Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html <nowiki>[0101]</nowiki>]</div> ===<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html <nowiki>[Filt]</nowiki>]</div> ===<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html <nowiki>[Math]</nowiki>]</div> ===<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html <nowiki>[Pwr]</nowiki>]</div> ===<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1360Filter Pages and LTspice Goodies2014-05-09T10:37:45Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev (and many others), but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ===<br />
&emsp;A few models which I found useful, this folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html [Filt]]</div> ===<br />
&emsp;The contents of this folder is mixed, in general, filtering and control theory, but can be applied anywhere.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, see the [[#Filter]] section<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html [Math]]</div> ===<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br><br />
&emsp;For example, the function ''<code>abs()</code>'' requires one variable and that variable is the input. The symbol that makes use of one variable functions is <code style="color:#007900">Math1</code>. In the case of ''<code>atan2()</code>'', the two variables are the two inputs and the symbols for these are <code style="color:#007900">Math2</code>, <code style="color:#007900">Math2r</code> and <code style="color:#007900">Math2rT</code>. There are also two 5-input symbols, <code style="color:#007900">Math5</code> and <code style="color:#007900">Math5r</code> but they do only summing and/or difference.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html [Pwr]]</div> ===<br />
&emsp;Except a few models, all are three-phase and power electronics related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1359Filter Pages and LTspice Goodies2014-05-09T10:27:27Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="Filter">[http://ltspicegoodies.ltwiki.org/Filter_Manual/index.html Filter]</div> ===<br />
&emsp;The '''Filter''' is a library encompassing analog and digital filters and it was made with the thought of making life easier when dealing with schematics that use filtering but don't emphasize the filters, in particular. The filters range from analog passive and active to digital IIR and FIR, where the IIRs are the digitized analog active filters and the FIRs are windows such as rectangular, Hann, Hamming, Blackman, Kaiser, Dolph-Chebyshev, but also differentiator, Hilbert transformer and frequency sampling method. The list contains:<br />
{|style="border-collapse:collapse;border:0"<br />
|-<br />
|style="text-indent:2em"|'''''Analog passive'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_LC</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_LC</code><br />
|-<br />
|style="text-indent:2em"|'''''Analog active'''''<br />
|-<br />
|style="color:#007900"|<code>3dBoct</code><br />
|-<br />
|style="color:#007900"|<code>Bessel</code> <font color="black">(and <code style="color:#007900">Bessel2</code>, an older version)</font><br />
|-<br />
|style="color:#007900"|<code>Butterworth</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev</code><br />
|-<br />
|style="color:#007900"|<code>Cauer</code><br />
|-<br />
|style="text-indent:2em"|'''''IIR'''''<br />
|-<br />
|style="color:#007900"|<code>Butterworth_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Chebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>InvChebyshev_IIR</code><br />
|-<br />
|style="color:#007900"|<code>Cauer_IIR</code><br />
|-<br />
|style="text-indent:2em"|'''''FIR'''''<br />
|-<br />
|style="color:#007900"|<code>FIR</code><br />
|-<br />
|style="color:#007900"|<code>FIR2</code><br />
|-<br />
|style="color:#007900"|<code>FIR_FS</code><br />
|-<br />
|style="text-indent:2em"|'''''Moving average'''''<br />
|-<br />
|style="color:#007900"|<code>MAFv</code><br />
|-<br />
|style="color:#007900"|<code>RRS</code><br />
|}<br />
<br />
&emsp;The last two moving averages and just some analog approaches. In fact, all of them are since LTspice's engine is a dedicated analog simulator. Because of that, the digital filters will not be faster than their analog cousins, quite the contrary. They may also suffer from random spikes around transitions from one sample to another, mainly due to the imperfections of the simulation time-step or to tiny mismatches in sampling time (don't forget that the rise and fall times ''do'' count).<br><br />
&emsp;In the end, the '''Filter''' is a handy tool for anyone who needs a quick implementation of a filter without going through the hassle of calculating, placing all elements, attributing values and wiring them to form a filter when the purpose of the schematic is different, not to mention the bother of repeating the steps anytime a change is needed.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ===<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html [Filt]]</div> ===<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, see the [[#Filter]] section<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html [Math]]</div> ===<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html [Pwr]]</div> ===<br />
&emsp;Except a few models, all are three-phase related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1358Filter Pages and LTspice Goodies2014-05-09T09:03:42Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ===<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html [Filt]]</div> ===<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, with a separate section as the <font size="+1">[http://ltspicegoodies.ltwiki.org/Filter_Manual.html Filter manual]</font><br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html [Math]]</div> ===<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html [Pwr]]</div> ===<br />
&emsp;Except a few models, all are three-phase related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1357Filter Pages and LTspice Goodies2014-05-09T08:57:34Z<p>Vlad: </p>
<hr />
<div>=== Introduction ===<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br><br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
=== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ===<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
=== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html [Filt]]</div> ===<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, [http://ltspicegoodies.ltwiki.org/Filter_Manual.html separate]<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
=== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html [Math]]</div> ===<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br />
<br />
=== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html [Pwr]]</div> ===<br />
&emsp;Except a few models, all are three-phase related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1356Filter Pages and LTspice Goodies2014-05-09T08:53:50Z<p>Vlad: </p>
<hr />
<div>== Introduction ==<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, digital devices ('''[0101]'''), filtering and control theory ('''[Filt]'''), mathematics equations ('''[Math]'''), power electronics ('''[Pwr]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br />
&emsp;The links go to an external site, for now hosted on the same http://ltwiki.org, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ==<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
== <div id="Filt">[http://ltspicegoodies.ltwiki.org/Filt.html [Filt]]</div> ==<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, [http://ltspicegoodies.ltwiki.org/Filter_Manual.html separate]<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}<br />
<br />
== <div id="Math">[http://ltspicegoodies.ltwiki.org/Math.html [Math]]</div> ==<br />
&emsp;LTspice's mathematical functions for behavioural sources plus a few others in a more accessible, streamlined package. There's no point in enumerating them since they're all packed into a specific symbol, depending on how many variables the functions allow.<br />
<br />
== <div id="Pwr">[http://ltspicegoodies.ltwiki.org/Pwr.html [Pwr]]</div> ==<br />
&emsp;Except a few models, all are three-phase related.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>3lvl_mod</code>||3-level modulation w/out external carrier and dead-time<br />
|-<br />
|style="color:#007900"|<code>3ph_ACMotor</code>||a rather simplified DQ reference frame AC motor which allows either inductances/resistances or power/frequency inputs, respectively.<br />
|-<br />
|style="color:#007900"|<code>3ph_br_cm, 3ph_br_vm</code>||current-/voltage-mode switching bridges<br />
|-<br />
|style="color:#007900"|<code>3ph_gen</code>||harmonics generator up to 51st, w/out external amplitude/frequency/phase control<br />
|-<br />
|style="color:#007900"|<code>3ph_SW</code>||3-phase to 3-phase timed switch<br />
|-<br />
|style="color:#007900"|<code>BrdgRect, BrdgRectThy</code>||simple and thyristor bridge rectifiers<br />
|-<br />
|style="color:#007900"|<code>Cable</code>||a simple &Pi; LC with terminating resistances cable model<br />
|-<br />
|style="color:#007900"|<code>Disturb</code>||disturbance inducer, meant to be used together with <code style="color:#007900">3ph_gen</code>, but not only<br />
|-<br />
|style="color:#007900"|<code>HystComp</code>||single-phase hysteresis comparator w/out external error control and dead-time<br />
|-<br />
|style="color:#007900"|<code>Isense, Vsense</code>||isolated current and voltage sensors<br />
|-<br />
|style="color:#007900"|<code>RLC</code>||universal RLC load, can be series or parallel, w/out null, wye or delta<br />
|-<br />
|style="color:#007900"|<code>SVHCC, SVPWM</code>||space-vector hysteresis current controller and PWM, respectively<br />
|-<br />
|style="color:#007900"|<code>sym</code>||symmetrical components analyzer, abc-to-120 and inverse<br />
|-<br />
|style="color:#007900"|<code>Transforms</code>||Clarke and Park matrices, 2- or 3-inputs, direct and inverse, plus a cvasi-instantaneous approach for a symmetrical components analyzer<br />
|-<br />
|style="color:#007900"|<code>WattMeter</code>||one-phase wattmeter, outputs apparent/active/reactive powers, power-factor and RMS voltage/current<br />
|-<br />
|style="color:#007900"|<code>wt</code>||PLL angle generator<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1355Filter Pages and LTspice Goodies2014-05-09T08:00:18Z<p>Vlad: </p>
<hr />
<div>== Introduction ==<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, power electronics ('''[Pwr]'''), digital devices ('''[0101]'''), mathematics equations ('''[Math]'''), filtering and control theory ('''[Filt]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br />
&emsp;The links go to an external site, for now, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ==<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
== [http://ltspicegoodies.ltwiki.org/Filt.html [Filt]] ==<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, [[#Filter|separate]]<br />
|-<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|-<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|-<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|-<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|-<br />
|style="color:#007900"|<code>Lim</code>||hard limitter<br />
|-<br />
|style="color:#007900"|<code>MUX</code>||a simple externally controlled analog multiplexer<br />
|-<br />
|style="color:#007900"|<code>PhaseDet</code>||phase detector<br />
|-<br />
|style="color:#007900"|<code>PID</code>||a universal PID/PI/PD/ID/P/I/D analog/digital controller<br />
|-<br />
|style="color:#007900"|<code>PLL</code>||a phase-locked loop with single/quadrature inputs<br />
|-<br />
|style="color:#007900"|<code>SampledSource</code>||LTspice's own SINE and/or PULSE sources, sampled<br />
|-<br />
|style="color:#007900"|<code>StateSpace</code>||1st/2nd/3rd order, SISO state-space block<br />
|-<br />
|style="color:#007900"|<code>UpDnSpl</code>||<code>.AC</code>-friendly up-/down-sampler<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1354Filter Pages and LTspice Goodies2014-05-09T07:54:48Z<p>Vlad: </p>
<hr />
<div>== Introduction ==<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, power electronics ('''[Pwr]'''), digital devices ('''[0101]'''), mathematics equations ('''[Math]'''), filtering and control theory ('''[Filt]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br />
&emsp;The links go to an external site, for now, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
== <div id="0101">[http://ltspicegoodies.ltwiki.org/0101.html [0101]]</div> ==<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
== [http://ltspicegoodies.ltwiki.org/Filt.html [Filt]] ==<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, [[#Filter|separate]]<br />
|style="color:#007900"|<code>FreqDet</code>||frequency detector<br />
|style="color:#007900"|<code>Gain</code>||a linear/dB gain/buffer with variable output resistance<br />
|style="color:#007900"|<code>Integ_r</code>||resettable integrator w/out external period control<br />
|style="color:#007900"|<code>LeadLag, LeadLag2</code>||two versions for a ''<code>&lt;-&pi;..&pi;&gt;</code>'' lead-lag control, w/out external control<br />
|}</div>Vladhttp://ltwiki.org/index.php?title=Filter_Pages_and_LTspice_Goodies&diff=1353Filter Pages and LTspice Goodies2014-05-09T07:47:08Z<p>Vlad: </p>
<hr />
<div>== Introduction ==<br />
&emsp;The following links contain macro models built for LTspice with the purpose of turning large-scale simulations into block-level schematics, similar to hierarchy design but with predefined models. The domains of interest include, but are not limited to, power electronics ('''[Pwr]'''), digital devices ('''[0101]'''), mathematics equations ('''[Math]'''), filtering and control theory ('''[Filt]'''). In addition, there is one more model, '''Filter''', that is made to be a sort of a universal filter for LTspice.<br />
&emsp;The links go to an external site, for now, until I fully merge all the pages to blend in with LTwiki. The lists describing the contents of every folder is limited to enumeration and a simple description, details are in the links.<br />
<br />
== [http://ltspicegoodies.ltwiki.org/0101.html [0101]] ==<br />
&emsp;This folder holds the following:<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>ADC16</code>||an asynchronous (max) 16bit ADC<br />
|-<br />
|style="color:#007900"|<code>Bin2Dec</code>||a binary to decimal translator<br />
|-<br />
|style="color:#007900"|<code>CNT16asy</code>||an asynchronous (max) 16bit counter<br />
|-<br />
|style="color:#007900"|<code>DAC16</code>||a (max) 16bit DAC<br />
|-<br />
|style="color:#007900"|<code>Dec2Bin</code>||a decimal to binary translator<br />
|-<br />
|style="color:#007900"|<code>JKFLOP</code>||a behavioural JK flip-flop<br />
|}<br />
<br />
== [http://ltspicegoodies.ltwiki.org/Filt.html [Filt]] ==<br />
&emsp;The contents of this folder is mixed filtering and control theory.<br />
<br />
{|style="border-collapse:collapse;border:0;width:75%"<br />
|-style="width:25%"<br />
|style="color:#007900"|<code>AGC</code>||an automatic gain controller w/out external frequency control<br />
|-<br />
|style="color:#007900"|<code>DeadTime</code>||dead-time<br />
|-<br />
|style="color:#007900"|<code>DeadZone</code>||dead-zone<br />
|-<br />
|style="color:#007900"|<code>Delay</code>||analog -- ''<code>exp(-sT)</code>'' -- or digital -- ''<code>z<sup>-1</sup></code>'' -- delay<br />
|-<br />
|style="color:#007900"|<code>Diff</code>||differentiator<br />
|-<br />
|style="color:#007900"|<code>FFT</code>||actually a continuous-time Fourier decomposition, but <code style="color:green">FFT</code> is shorter<br />
|-<br />
|style="color:#007900"|<code>Filter</code>||a universal filter, [Filter_Pages_and_LTspice_Goodies:[0101]|separate]<br />
|}</div>Vlad