Tim Wescott wrote:
> Hey Piotr, why are you doing this with a current sense resistor?
Because the the ACS758 datasheet says that the resistance of
the current path is ~100uOhm. So, since there is this "resistor"
already, I simply decided to use this fact. I am still learning
Spice, so I didn't know about its more advanced primitive blocks.
Let alone about how to use them correctly.
> If the Hall sensor has some specified internal resistance (that 100u-ohm?
> ), I think I'd still simulate it as a resistor in series with the sensing
> voltage source, and use an "H" block.
Since I've already mastered "E", there is time to learn "H". ;-)
> Just a simple H block won't simulate any output impedance, frequency-
> dependence, nonlinear behaviors, etc. But you knew that.
Yes, but that doesn't matter here. The frequency is 100Hz,
the currents are within the specified range and I simply
wanted to check whether the Hall sensor could be used to
correctly drive a synchronous rectifier. And Spice says it
can, much better than the standard comparator-based approach,
as there are no oscillations. Its primary purpose was
overcurrent protection, but since the signal is already
available, I wanted to see what would happen. I set the
threshold to 0.25A and combined its output with the outputs
of the sign detector -- voila, it works and seems to be very robust.
One stupid thing about the ACS75* and similar sensors design:
three output terminals. The output voltage is specified to be
VCC/2 + V(I), but they do not expose their VCC/2 in order to
allow accurate differential measurements. And they say that
the drift can be +-25mV, which is half an amp of an error...
Best regards, Piotr