Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Comparator with hysteresis - convergence problem

Status
Not open for further replies.

rainy23

Newbie level 3
Newbie level 3
Joined
Dec 1, 2012
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,305
Hi.

I'm working on a school project, which aims to design an cell voltage supervisor according to the datasheet. I've encountered this very basic problem. One of the functions of the device is to detect the undervoltage, if the cell voltage falls below 2.3 V. The discharge MOSFET is then turned OFF. It should be turned ON again, if the cell voltage rises above some voltage. Let's say this voltage is 3.0 V. So I designed a simple comparator using the ABM models using this equations:

LIMIT(1MEG*V(%IN1,%IN2),5,0) for the op-amp
IF(V(%IN)>0,3,2.3) for the feedback (connected between op-amps output and IN2). This should simulate the hysteresis. It works perfectly in the block I designed for detecting overvoltage, but in this case, PSpice reports convergence problem. I also try to design simple comparator with ideal op-amp and resistors, instead of using ABMs, but the result was the same. Also I found out, that if I increase the threshold voltages of the comparator, it works. For example, IF(V(%IN)>0,4.5,4) works fine.

Can anybody help me solve this?
Thanks.
 

comp.PNG
Ok, this is the circuit.
 

Wrong sign of hysteresis function, I think. It's like negative feedback with discontinuity, causing permanent oscillations.
 

Ok, my bad. I tried some stuff and I figured out, that I have to solve another problem. Comparator now works fine, but if I connect som logic gate, e.g. OR, there comes the convergence error again. Any ideas how to fix this?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top