Very helpful. It would be good to add a .ZIP
of all the files to the folder.
On 2025-05-18 18:29, Tony Casey via
groups.io wrote:
All LTspice users should be familiar with UniversalOpamps. There
are 7 different UniversalOpAmp models of increasing complexity
capable of modelling almost any proprietary opamp to reasonable
levels of accuracy in most regards, typically with superior
convergence and speed within LTspice.
I see quite a few people using opamps to model comparators,
despite the requirements being quite different. It occurred to me
this might be because there isn't an equivalent universal
comparator. So I set out to change that.
The UniversalComp is the simplest solution I could think of with
just one B-source, and it features:
- Programmable Propagation Delay (trapped to prevent values
<0)
- Programmable Hysteresis (trapped to prevent values <0)
- Rail-to-Rail Output
- Excellent convergence
- Blistering speed
- Infinite Common-mode Input Range
I have also made two symbols, with the
inputs reversed for drafting convenience, that are otherwise
pin-wise compatible with the opamp2 and UniversalOpAmp symbols.
The model and a test schematic is also available in
Universal
Comparator.
--
Regards,
Tony
--
Best wishes John Woodgate RAYLEIGH Essex OOO-Own Opinions Only
If something is true: * as far as we know - it's science *for
certain - it's mathematics *unquestionably - it's religion