rainy23
Newbie level 3
- Joined
- Dec 1, 2012
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- 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.
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.