Comparator slows down LTspice

Collapse
X
Collapse
+ More Options
Posts
 
  • Time
  • Show
Clear All
new posts
  • ben7
    Capaholic
    • Jan 2011
    • 4059
    • USA

    #1

    Comparator slows down LTspice

    Hey, Im having trouble simulating a circuit with comparators in LTspice. Without the comparators, the circuit works fine, but with them the circuit immediately slows down. By slows down, I mean it goes about 10 microseconds per second!

    Tried op-amps used as comparators, but with no luck.

    I also tried almost all the comparator models ltspice comes with, and none of them worked any better. I also tried an LM339 model but it did the same thing!

    Any ideas how to get the comparators to run better?
    Muh-soggy-knee
  • b700029
    Banned
    • Sep 2010
    • 640

    #2
    Re: Comparator slows down LTspice

    It's a lot more complex simulating an active, non-linear IC like that than a simple resistor, transistor, or diode. I don't know about LTspice but there may be a precision option that you could decrease to trade precision for speed.

    Comment

    • ben7
      Capaholic
      • Jan 2011
      • 4059
      • USA

      #3
      Re: Comparator slows down LTspice

      Originally posted by b700029
      It's a lot more complex simulating an active, non-linear IC like that than a simple resistor, transistor, or diode. I don't know about LTspice but there may be a precision option that you could decrease to trade precision for speed.
      Yea there might be, I am new to ltspice too. And the circuit doesn't need to be very accurate either.
      Muh-soggy-knee

      Comment

      • PeteS in CA
        Badcaps Legend
        • Aug 2005
        • 3580
        • USA, Unsure of Planet

        #4
        Re: Comparator slows down LTspice

        Using an op-amp for a comparator should be slower - not optimized for coming out of saturation at the rails. An LM339 is a GP, low power, not super fast, comparator. Maybe look into seeing if NatSemi has a spice model available on their website for their LM319, which is very fast (but not low power). The LM319 is also one comparator per package rather than quad, like an LM339. The LM339 and LM319 are very old-school parts - designed in the early or mid 70s. There may be an inexpensive, more modern, very fast and low power parts available from NatSemi, TI, Linear Technology or Maxim.
        PeteS in CA

        Power Supplies should be boring: No loud noises, no bright flashes, and no bad smells.
        ****************************
        To kill personal responsibility, initiative or success, punish it by taxing it. To encourage irresponsibility, improvidence, dependence and failure, reward it by subsidizing it.
        ****************************

        Comment

        Related Topics

        Collapse

        • Document Archive
          Texas Instruments bq24745 bq24745RHDR bq24745RHDT Battery Charger IC for Laptop Computers Datasheet
          by Document Archive
          The bq24745 bq24745RHDR bq24745RHDT is a high-efficiency, synchronous battery charger with an integrated input-current comparator, offering low component count for space-constrained, multi-chemistry battery-charging applications. The input-current, charge-current, and charge-voltage DACs allow very high regulation accuracies that can be easily programmed by the system power-management microcontroller using the SMBus interface. The bq24745 charges two, three, or four series Li+ cells, and is available in a 28-pin, 5-mm x 5 mm QFN package.

          The bq24745 features dynamic power management...
          10-23-2024, 02:50 AM
        • Cuboy
          HP probook 4510s mosfet issue
          by Cuboy
          Hello,

          I am currently trying to help a ONG by volunteering to help repair laptops, it's something that i have been into since 2017, always watching videos, on discords, forums etc...

          I have an HP ProBook 4510s laptop that does not power on and has no indicator lights, which suggests an issue with the power supply or the motherboard.

          I started by verifying that there is voltage at the input of the motherboard, confirming that the power adapter is working correctly. However, when I checked the voltage at the output of the first MOSFET (Q1032), I found 19V at...
          03-16-2024, 10:29 AM
        • прямо
          TRIAC circuit
          by прямо
          Anyone is familiar with a TRIAC circuit?

          I came across this schematic, and I built it, but I can't seem to figure it out why I'm getting a low AC voltage output at the TRIAC terminals.

          With 230V AC hot side at the TRIAC MT2, I measured 60V AC between MT1 and neutral side when the comparator output LED indicator is on, and 20V AC when it is off.

          Same result if 230V AC hot side is at MT1, and I measured between MT2 and neutral side.

          My heating element doesn't work with 60V AC. It's not even getting hot and the thermocouple amplifier output is a...
          04-27-2024, 02:12 AM
        • YellowJacket
          DELL Latitude 5410 - dead; pwrbtn flashing
          by YellowJacket
          Hi folks,
          DELL Latitude 5410, board number FDZ41 LA-J371P Rev: 1.0 (A00), schematic uploaded in different post, here is the link --> https://www.badcaps.net/filedata/fetch?id=3484415

          When I connect it to a power ( DELL round charger, or USB-C ), LED on the power button starts flashing white, and the laptop doesn't do anything ( flashing slows for a very brief time in time when I press it, but it continues again ). Battery is not charging. While the charger is connected, I have few voltages present, but some of them are fluctuating, see attached pictures.
          All I was able...
          04-26-2025, 07:05 AM
        • Document Archive
          MT3608 Step-Up Converter IC Datasheet
          by Document Archive
          The MT3608 is a constant frequency, 6-pin SOT23 current mode step-up converter intended for small, low power applications. The MT3608 switches at 1.2MHz and allows the use of tiny, low cost capacitors and inductors 2mm or less in height.

          Internal soft-start results in small inrush current and extends battery life.

          The MT3608 features automatic shifting to pulse frequency modulation mode at light loads. The MT3608 includes under-voltage lockout, current limiting, and thermal overload protection to prevent damage in the event of an output overload. The MT3608 is available...
          10-07-2024, 05:02 AM
        • Loading...
        • No more items.
        Working...