This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5659: ADC problem

Part Number: MSP430F5659
Other Parts Discussed in Thread: RCV420

Hello,

I am using msp430f5659 controller and interfacing level sensor of 4-20mA with adc pin of controller. resolution of pin is 12 bit. I am converting current into voltage using opamp.But this does not provide full range of count from 0 to 4096 it provides only count range from 900 to 1400.Is there any standard circuitary to convert 4-20 mA to 0-3.3v.  Please suggest some solution to the problem.

  • Show the schematic of your circuit.
  • Hello,

    In the attached schematic,  pin 6.0, 6.1 and 6.2 is connected to adc pin p6.0 p6.1 and p6.2 of microcontroller.

  • These are plain transimpedance amplifiers, where Vout = −Isensor × 47 Ω. So for currents between −4 mA and −20 mA, you get between 0.188 V and 0.94 V.

    If the P5.0/P5.1 pins are available, you can apply something like 0.12 V and 1 V to them and use them as reference voltages for the ADC.

    But it's probably easier to change the opamp configuration to get the correct output.
    To increase the gain, simply increase the resistors.
    To subtract an offset from the output voltage, add resistors to VCC from pin 2 of the opamps; the offset is VCC × R1,2,3 / Roffset. (See, e.g., I-to-V Amp with Offset for details.)


    Alternatively, check how the RCV420 does this:

    THEORY OF OPERATION

    For 0 to 5V output with 4–20mA input, the required transimpedance of the circuit is:

    VOUT/IIN = 5V/16mA = 0.3125V/mA.

    To achieve the desired output (0V for 4mA and 5V for 20mA), the output of the amplifier must be offset by an amount:

    VOS = –(4mA)(0.3125V/mA) = –1.25V.

    The input current signal is connected to either +In or –In, depending on the polarity of the signal, and returned to ground through the center tap, CT. The balanced input—two matched 75Ω sense resistors, RS—provides maximum rejection of common-mode voltage signals on CT and true differential current-to-voltage conversion. The sense resistors convert the input current signal into a proportional voltage, which is amplified by the differential amplifier. The voltage gain of the amplifier is:

    AD = 5V/(16mA)(75Ω) = 4.1667V/V.

    The tee network in the feedback path of the amplifier provides a summing junction used to generate the required –1.25V offset voltage. The input resistor network provides high-input impedance and attenuates common-mode input voltages to levels suitable for the operational amplifier’s common-mode signal capabilities

  • Hello,
    Can i use voltage more than 3.3v on ADC pin of controller? since rcv420 convert 4-20mA from 0-5V.
  • I was just quoting the RCV420 datasheet; for the MSP, you'd have to adjust the values to get 3.3 V.

**Attention** This is a public forum