ADC implementation

adccurrent measurement

Shunt current sensing

I want to sense the voltage across the resistor R1 (i.e convert it into digital form). I only have comparators available with me and no other hardware (ADC is not available).
Is there any way I could digitize this voltage across R1. from the circuit we can see the output of comparator would go from 0-5V as the voltage V1 is varied from 0-5V or if the voltage is fixed to 5V then the output will always be high (5V). Similarly, if we make the current flow in opposite direction the output will go from 0 to -5V or remain at -5V when supply is not varied. so the comparator acts as a 1 bit ADC. But a multibit output is required to sense the varying voltage across R1. The digital data has to be taken into an FPGA. So any suggestions in this regards.
enter image description here

The second image is the solution i had found FPGA ADC. This also uses a single ended analog input, whereas i have a differential input across a resistor.

EDIT #

  • So i am again attaching a circuit diagram to make things clear
    circuit The load shown is not the real load. The voltage across the current sensor has to be converted to digital and i have simple delta sigma ADC available which will be made using the LVDS receivers in the FPGA. So how to convert this differential voltage into digital using delta sigma ADC ? The purpose of all this is i have to sense the charging and discharging current of a lithium ion battery using a fpga that fits in a portable device.So i want to keep external components at a minimal and the fpga uses a delta sigma ADc made in the fashion shown in ADC block diagram

Best Answer

You can use the comparator to build a Delta Sigma ADC.

You have to disconnect the negative comparator input from ground and connect it to a low pass filtered digital output of your digital logic (FPGA).

EDIT:
The 2nd picture in your post (I think you added later) is exactly what I mentioned above. It represents a Delta Sigma ADC. (So I think I don't need to provide any reference any more. BTW you will find enough references if you search the web with keywors "Delta Sigma converter").

The block diagram, however, shows something that makes me wonder:
there is a LVDS receiver where a I would expect an analog comparator.

A differential receiver is some kind of comparator, but I doubt that it is well suited for this application. For its original purpose as differential receiver just has to be fast but not very exact concerning the differential voltage (offset) and probably it has considerable hysteresis.

A precision comparator would be more appropriate.

Related Topic