Multisim and Ultiboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Multisim Live comparator problem- built in hysteresis?

Solved!
Go to solution

I'm trying to simulate a zero-crossing detector using Multsim Live ideal comparator, however it appears there is built-in hysteresis.   I want output to change exactly when 0v is crossed.  It should not matter if I use inverting or noninverting input as the 0v reference.  I just want to demo ideal behavior.   But it does not work. There's hundreds of mV hysteresis, not mentioned in spec's of this ideal device.  How can this be fixed, or am I doing something wrong?

0 Kudos
Message 1 of 4
(1,473 Views)

Here is the simple circuit,  where I offset by 2.5 volts to get away from ground, but no matter what I tried, the output does not flip when inverting input =  noninverting input.   So what's happening? 

https://www.multisim.com/content/ujpomDK9hm2Lqs9ZGAs79g/lab-5-comparator/

 

0 Kudos
Message 2 of 4
(1,422 Views)
Solution
Accepted by jweaver

Hello,

 

it looks like if you let Multisim to choose the transient timestep automatically, for a rectangular wave it chooses just a few points which gives the strange hysteresis error.

 

As a workaround, try setting the maximum timestep manually to some sensible value, e.g. Period/1000. That will make the hysteresis go away or at least it will  be much less noticable. I tried a transient simulation for 1ms with 1e-5 and 1e-6 max timesteps. At 1e-5 the hysteresis is still visible but at 1e-6 looks gone.

Message 3 of 4
(1,401 Views)
Solution
Accepted by jweaver

That's it- Thanks a bunch,  I should have though of that

0 Kudos
Message 4 of 4
(1,395 Views)